tls_codec: use fully qualified name in derive macro#1103
Conversation
franziskuskiefer
left a comment
There was a problem hiding this comment.
Do you have a minimal example where this makes trouble? Generally this shouldn't be necessary.
|
I was working in adding support for the Signed Certificate Timestamp extension in x509-cert in my branch and when I comment out this line the code doesn't compile. Specifically this I also tried the same code in a fresh project where the |
|
Just checked the output of Err(
tls_codec::Error::EncodingError({
let res = ::alloc::fmt::format(
format_args!(
"Expected to serialize {0} bytes but only {1} were generated.",
expected_written, written
),
);
res
}),
)Not sure why that shouldn't be sufficient to compile the code. |
|
I think I got it. The crate |
|
@imor FWIW all of the X.509-related crates we have in this repo have a hard dependency on liballoc, so using |
|
@tarcieri thanks that makes sense, I'll add a The question about whether I will also be closing this PR since no_std compatibility is more work than what is done in this PR. |
|
Yes, the derive crate currently requires |
|
Closing this PR. A new issue for |
Using
#[derive(TlsSerialize)]on a struct forced the user to includestd::format.