Cargo.toml:
[package]
name = "proba"
version = "0.1.0"
[lib]
name = "mycoollib"
path = "src/mycoollib.rs"
crate-type = ["cdylib"]
src/mycoollib.rs:
#![no_std]
fn func(v: i32) -> i32 {
v + 10
}
When I try to run cargo build:
error: language item required, but not found: `panic_fmt`
error: language item required, but not found: `eh_personality`
A nightly build is needed to implement panic_fmt and eh_personality, but "Using Rust Without the Standard Library" of the Rust book says that libs can build on stable.