|
|
|
|
|
by kibwen
4693 days 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 , which is fully runtimeless. |
|
(e.g. https://github.com/huonw/rust-malloc/blob/master/zero.rs)