Make this crate no_std - #10
Conversation
linkmauve
commented
Jun 22, 2024
Ah oops, that works in nightly but doesn’t yet in stable, due to |
sfackler
commented
Jun 23, 2024
I think a |
linkmauve
commented
Jun 23, 2024
There, I have added an optional but enabled by default |
sfackler
commented
Jun 23, 2024
Can you also update the CI logic to also test with the std feature disabled? LGTM otherwise |
074d7bc to
92838fdComparelinkmauve
commented
Sep 20, 2024
Hi, sorry for the delay, but in the meantime |
sfackler
commented
Sep 21, 2024
I think it'd be safer to have an enabled-by-default |
Hi, sorry for the very long delay, I’ve added back the std feature to support Rust versions older than 1.81.0, although nowadays that’s a bit old and most of the ecosystem won’t build on such ancient versions any longer. I’ve added a test in CI for |
8d6d2d1 to
1130cfbCompareThis allows users such as the jid crate to actually be no_std as well. core::error::Error got stabilized back in Rust 1.81.0, but in order to support older Rust versions we added a std feature.
linkmauve
commented
Dec 25, 2025
I’ve also disabled the |
As nothing actually depends on
std, there is no need to keep a dependency on it. This allows users such as the jid crate to actually beno_stdas well.