3 ms·
> If you are using no_std isn't that the same as just not having a C standard library No. no_std means that all standard library functions that involve allocat
by nindalf 6y ago
> If you are using no_std isn't that the same as just not having a C standard library
No. no_std means that all standard library functions that involve allocation aren't available. Things like std::collections::{Vec, HashMap} etc. You have access to std::core (https://doc.rust-lang.org/core/index.html https://doc.rust-lang.org/core/index.html), which is pretty useful.
- chrismorgan 6y agoTechnical correction: core is a crate, not a module in the std crate. Your paths will be core::, not std::core::.
- saurik 6y agoThe context was with respect to memory overhead, so can you explain this difference with respect to that axis, showing that C with no standard library somehow has higher memory overhead than Rust with no_std? With respect to the actual conversational context, I stand by my comparison.
- strbean 6y agoI think the point is that running no stdlib in C is throwing the baby out with the bathwater.