You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a musl based linux system , cross compilation will fail when using proc-macro
Steps
1.Cargo.toml:
[package]
name = "demo"version = "0.1.0"edition = "2018"
[dependencies]
serde= { version = "1.0", features = ["derive"] }
2.src/main.rs:
fnmain(){}
$ RUSTFLAGS="-C target-feature=-crt-static" cargo build --target=wasm32-wasi
error: cannot produce proc-macro for `serde_derive v1.0.102` as the target `x86_64-unknown-linux-musl` does not support these crate types