Repository navigation
tls_codec: preliminary no_std support - #291
Conversation
Adds initial support for `no_std` targets (currently with a hard `alloc` dependency) by gating all `std`-related functionality on a newly added eponymous crate feature. 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.
no_std support
|
The next steps I'd suggest after this would be defining replacement traits for When the |
franziskuskiefer
left a comment
There was a problem hiding this comment.
Thanks! Definitely a good start for tackling this.
Right now there's no good way to do this without Read and Write I'm afraid.
There's some discussion around this happening. It's all over the place but rust-lang/rfcs#2262 looks like a good issue to follow.
If we want to have something done before there's a solution that allows us using the traits, we could add a separate API that operates on byte slices/vectors.
|
Cool. Will merge this and we can follow up on what to do about new |
Adds initial support for
no_stdtargets (currently with a hardallocdependency) by gating allstd-related functionality on a newly added eponymous crate feature.Unfortunately all serialization/deserialization is currently performed in terms of the
ReadandWritetraits fromstd::io, so this doesn't result in something immediately useful onno_stdtargets. However, it does provide the initial boilerplate and first steps towards making that possible.