There are new things in the Cargo.toml file that we need to discuss:
[package] name = "embed_quantiles" version = "0.1.0" authors = ["Brian L. Troutwine <brian@troutwine.us>"] [dependencies] quantiles = "0.7" [lib] name = "embed_quantiles" crate-type = ["staticlib"]
Note specifically that we're building the embed_quantiles library with crate-type = ["staticlib"]. What does that mean? The Rust compiler is capable of making many kinds of linkages, and usually they're just implicit. For instance, a binary is crate-type = ["bin"]. There's a longish list of different link types, which I've included in the Further reading section. The interested reader is encouraged to look through them. What we'd like to produce here is a statically ...