Have all Cargo-built crates pass `--cfg cargobuild` and then add appropriate `#[cfg]` definitions to all crates to avoid linking anything if this is passed. This should help allow libstd to compile with both the makefiles and with Cargo. |
||
|---|---|---|
| .. | ||
| build.rs | ||
| Cargo.toml | ||
| lib.rs | ||