Skip to content

tls_codec: no_std support #64

Closed
Closed

Description

@franziskuskiefer

Allow building tls-codec with no_std.

I now see this is a bit more std-dependent than I realized due to the extensive use of std::io::{Read, Write}.

Originally posted by @tarcieri in #56 (review)

Activity

  1. changed the title [-]no_std builds for tls-codec[/-] [+]tls_codec: `no_std` support[/+] on Oct 17, 2021
  2. tarcieri commented on Mar 25, 2022

    @tarcieri
    Member

    I did an initial pass on this in #291. However as I noted on that PR:

    Unfortunately all serialization/deserialization is currently performed in terms of the Read and Write traits from std::io, so this doesn't result in something immediately useful on no_std targets. However, it does provide the initial boilerplate and first steps towards making that possible.

    The next steps I'd suggest after this would be defining replacement traits for std::io::{Read, Write} which provide the subset of functionality currently used by this crate, so that they can always be available regardless of whether or not the std feature is enabled.

    When the std feature is enabled, blanket impls of these traits can be defined for the corresponding std::io traits, so everything continues to work with them.

  3. tarcieri commented on Aug 18, 2024

    @tarcieri
    Member

    I think we can close this as having initial no_std support in place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions