PACKAGING.md

27 lines · 807 bytes

 1# Notes For Package Maintainers
 2
 3## Linking Against System Packages
 4
 5The default Cargo features for __iamb__ will bundle SQLite and use [rustls] for
 6TLS. Package maintainers may want to link against the system's native SQLite
 7and TLS libraries instead. To do so, you'll want to build without the default
 8features and specify that it should build with `native-tls`:
 9
10```
11% cargo build --release --no-default-features --features=native-tls
12```
13
14## Enabling LTO
15
16Enabling LTO can result in smaller binaries. There is a separate profile to
17enable it when building:
18
19```
20% cargo build --profile release-lto
21```
22
23Note that this [can fail][ring-lto] in some build environments if both Clang
24and GCC are present.
25
26[ring-lto]: https://github.com/briansmith/ring/issues/1444
27[rustls]: https://crates.io/crates/rustls