cdylib crates for C interoperability

Minimum Rust version: 1.10 for rustc

Minimum Rust version: 1.11 for cargo

If you're producing a library that you intend to be used from C (or anotherlanguage through a C FFI), there's no need for Rust to include Rust-specificstuff in the final object code. For libraries like that, you'll want to usethe cdylib crate type in your Cargo.toml:

  1. [lib]
  2. crate-type = ["cdylib"]

This will produce a smaller binary, with no Rust-specific information insideof it.