Commit 9c6ff58b96
Unregistered key
Layout: unified · split
Cargo.toml +7 −1
| @@ -14,6 +14,12 @@ categories = ["command-line-utilities"] | ||
| 14 | 14 | rust-version = "1.70" |
| 15 | 15 | build = "build.rs" |
| 16 | 16 | |
| 17 | [features] | |
| 18 | default = ["bundled"] | |
| 19 | bundled = ["matrix-sdk/bundled-sqlite", "rustls-tls"] | |
| 20 | native-tls = ["matrix-sdk/native-tls"] | |
| 21 | rustls-tls = ["matrix-sdk/rustls-tls"] | |
| 22 | ||
| 17 | 23 | [build-dependencies] |
| 18 | 24 | mandown = "0.1.3" |
| 19 | 25 | |
| @@ -71,7 +77,7 @@ version = "0.0.18" | ||
| 71 | 77 | [dependencies.matrix-sdk] |
| 72 | 78 | version = "0.7.1" |
| 73 | 79 | default-features = false |
| 74 | features = ["e2e-encryption", "rustls-tls", "bundled-sqlite", "sso-login"] | |
| 80 | features = ["e2e-encryption", "sqlite", "sso-login"] | |
| 75 | 81 | |
| 76 | 82 | [dependencies.tokio] |
| 77 | 83 | version = "1.24.1" |
PACKAGING.md added +27
| @@ -0,0 +1,27 @@ | ||
| 1 | # Notes For Package Maintainers | |
| 2 | ||
| 3 | ## Linking Against System Packages | |
| 4 | ||
| 5 | The default Cargo features for __iamb__ will bundle SQLite and use [rustls] for | |
| 6 | TLS. Package maintainers may want to link against the system's native SQLite | |
| 7 | and TLS libraries instead. To do so, you'll want to build without the default | |
| 8 | features 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 | ||
| 16 | Enabling LTO can result in smaller binaries. There is a separate profile to | |
| 17 | enable it when building: | |
| 18 | ||
| 19 | ``` | |
| 20 | % cargo build --profile release-lto | |
| 21 | ``` | |
| 22 | ||
| 23 | Note that this [can fail][ring-lto] in some build environments if both Clang | |
| 24 | and GCC are present. | |
| 25 | ||
| 26 | [ring-lto]: https://github.com/briansmith/ring/issues/1444 | |
| 27 | [rustls]: https://crates.io/crates/rustls | |