2 ms·
I actually don't think we even need zero.rs anymore. Its purpose was to provide noop implementations for all the "lang items" that the compiler expects to find
by kibwen 13y ago
I actually don't think we even need zero.rs anymore. Its purpose was to provide noop implementations for all the "lang items" that the compiler expects to find in the stdlib. However, post-0.7 the compiler no longer requires a lang item to be provided unless you actually use a feature that requires it.
For an example, see the code at https://github.com/doublec/rust-from-c-example https://github.com/doublec/rust-from-c-example , which is fully runtimeless.
- dbaupp 13y agozero.rs (or something like it) is still required, because there's certain lang items that are required/useful (e.g. #[start], destructors, failure, vector bounds checks). (e.g. https://github.com/huonw/rust-malloc/blob/master/zero.rs https://github.com/huonw/rust-malloc/blob/master/zero.rs)