| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.68.2" |
| 15 |
name = "mls-rs" |
| 16 |
version = "0.45.0" |
| 17 |
build = false |
| 18 |
exclude = ["test_data"] |
| 19 |
autolib = false |
| 20 |
autobins = false |
| 21 |
autoexamples = false |
| 22 |
autotests = false |
| 23 |
autobenches = false |
| 24 |
description = "An implementation of Messaging Layer Security (RFC 9420)" |
| 25 |
homepage = "https://github.com/awslabs/mls-rs" |
| 26 |
readme = "README.md" |
| 27 |
keywords = [ |
| 28 |
"crypto", |
| 29 |
"cryptography", |
| 30 |
"security", |
| 31 |
"mls", |
| 32 |
"e2ee", |
| 33 |
] |
| 34 |
categories = [ |
| 35 |
"no-std", |
| 36 |
"cryptography", |
| 37 |
] |
| 38 |
license = "Apache-2.0 OR MIT" |
| 39 |
repository = "https://github.com/awslabs/mls-rs" |
| 40 |
|
| 41 |
[package.metadata.docs.rs] |
| 42 |
features = [ |
| 43 |
"external_client", |
| 44 |
"sqlite", |
| 45 |
] |
| 46 |
rustdoc-args = [ |
| 47 |
"--cfg", |
| 48 |
"docsrs", |
| 49 |
] |
| 50 |
|
| 51 |
[features] |
| 52 |
arbitrary = [ |
| 53 |
"std", |
| 54 |
"dep:arbitrary", |
| 55 |
"mls-rs-core/arbitrary", |
| 56 |
] |
| 57 |
benchmark_pq_crypto = ["mls-rs-crypto-awslc/post-quantum"] |
| 58 |
benchmark_util = [ |
| 59 |
"test_util", |
| 60 |
"default", |
| 61 |
"dep:mls-rs-crypto-openssl", |
| 62 |
] |
| 63 |
by_ref_proposal = [] |
| 64 |
custom_proposal = [] |
| 65 |
default = [ |
| 66 |
"std", |
| 67 |
"rayon", |
| 68 |
"rfc_compliant", |
| 69 |
"tree_index", |
| 70 |
"fast_serialize", |
| 71 |
] |
| 72 |
external_client = ["std"] |
| 73 |
fast_serialize = ["mls-rs-core/fast_serialize"] |
| 74 |
ffi = [] |
| 75 |
fuzz_util = [ |
| 76 |
"test_util", |
| 77 |
"default", |
| 78 |
"dep:once_cell", |
| 79 |
"dep:mls-rs-crypto-openssl", |
| 80 |
] |
| 81 |
grease = ["std"] |
| 82 |
last_resort_key_package_ext = ["mls-rs-core/last_resort_key_package_ext"] |
| 83 |
non_domain_separated_hpke_encrypt_decrypt = [] |
| 84 |
out_of_order = ["private_message"] |
| 85 |
prior_epoch = [] |
| 86 |
private_message = [] |
| 87 |
psk = [] |
| 88 |
rayon = [ |
| 89 |
"std", |
| 90 |
"dep:rayon", |
| 91 |
] |
| 92 |
rfc_compliant = [ |
| 93 |
"private_message", |
| 94 |
"custom_proposal", |
| 95 |
"out_of_order", |
| 96 |
"psk", |
| 97 |
"x509", |
| 98 |
"prior_epoch", |
| 99 |
"by_ref_proposal", |
| 100 |
"mls-rs-core/rfc_compliant", |
| 101 |
] |
| 102 |
secret_tree_access = [] |
| 103 |
serde = [ |
| 104 |
"mls-rs-core/serde", |
| 105 |
"zeroize/serde", |
| 106 |
"dep:serde", |
| 107 |
"dep:hex", |
| 108 |
] |
| 109 |
sqlcipher = [ |
| 110 |
"sqlite", |
| 111 |
"mls-rs-provider-sqlite/sqlcipher", |
| 112 |
] |
| 113 |
sqlcipher-bundled = [ |
| 114 |
"sqlite", |
| 115 |
"mls-rs-provider-sqlite/sqlcipher-bundled", |
| 116 |
] |
| 117 |
sqlite = [ |
| 118 |
"std", |
| 119 |
"mls-rs-provider-sqlite/sqlite", |
| 120 |
] |
| 121 |
sqlite-bundled = [ |
| 122 |
"sqlite", |
| 123 |
"mls-rs-provider-sqlite/sqlite-bundled", |
| 124 |
] |
| 125 |
std = [ |
| 126 |
"mls-rs-core/std", |
| 127 |
"mls-rs-codec/std", |
| 128 |
"mls-rs-identity-x509?/std", |
| 129 |
"hex/std", |
| 130 |
"futures/std", |
| 131 |
"itertools/use_std", |
| 132 |
"zeroize/std", |
| 133 |
"dep:debug_tree", |
| 134 |
"dep:thiserror", |
| 135 |
"serde?/std", |
| 136 |
] |
| 137 |
test_util = [] |
| 138 |
tree_index = [] |
| 139 |
x509 = [ |
| 140 |
"mls-rs-core/x509", |
| 141 |
"dep:mls-rs-identity-x509", |
| 142 |
] |
| 143 |
|
| 144 |
[lib] |
| 145 |
name = "mls_rs" |
| 146 |
path = "src/lib.rs" |
| 147 |
|
| 148 |
[[example]] |
| 149 |
name = "basic_server_usage" |
| 150 |
path = "examples/basic_server_usage.rs" |
| 151 |
required-features = ["external_client"] |
| 152 |
|
| 153 |
[[example]] |
| 154 |
name = "basic_usage" |
| 155 |
path = "examples/basic_usage.rs" |
| 156 |
required-features = [] |
| 157 |
|
| 158 |
[[example]] |
| 159 |
name = "custom" |
| 160 |
path = "examples/custom.rs" |
| 161 |
required-features = ["std"] |
| 162 |
|
| 163 |
[[example]] |
| 164 |
name = "large_group" |
| 165 |
path = "examples/large_group.rs" |
| 166 |
required-features = [] |
| 167 |
|
| 168 |
[[example]] |
| 169 |
name = "x509" |
| 170 |
path = "examples/x509.rs" |
| 171 |
required-features = ["x509"] |
| 172 |
|
| 173 |
[[test]] |
| 174 |
name = "client_tests" |
| 175 |
path = "tests/client_tests.rs" |
| 176 |
required-features = ["test_util"] |
| 177 |
|
| 178 |
[[bench]] |
| 179 |
name = "group_add" |
| 180 |
path = "benches/group_add.rs" |
| 181 |
harness = false |
| 182 |
required-features = ["benchmark_util"] |
| 183 |
|
| 184 |
[[bench]] |
| 185 |
name = "group_application" |
| 186 |
path = "benches/group_application.rs" |
| 187 |
harness = false |
| 188 |
required-features = ["benchmark_util"] |
| 189 |
|
| 190 |
[[bench]] |
| 191 |
name = "group_commit" |
| 192 |
path = "benches/group_commit.rs" |
| 193 |
harness = false |
| 194 |
required-features = ["benchmark_util"] |
| 195 |
|
| 196 |
[[bench]] |
| 197 |
name = "group_receive_commit" |
| 198 |
path = "benches/group_receive_commit.rs" |
| 199 |
harness = false |
| 200 |
required-features = ["benchmark_util"] |
| 201 |
|
| 202 |
[[bench]] |
| 203 |
name = "group_serialize" |
| 204 |
path = "benches/group_serialize.rs" |
| 205 |
harness = false |
| 206 |
required-features = ["benchmark_util"] |
| 207 |
|
| 208 |
[dependencies] |
| 209 |
cfg-if = "1" |
| 210 |
|
| 211 |
[dependencies.arbitrary] |
| 212 |
version = "1" |
| 213 |
features = ["derive"] |
| 214 |
optional = true |
| 215 |
|
| 216 |
[dependencies.debug_tree] |
| 217 |
version = "0.4.0" |
| 218 |
optional = true |
| 219 |
|
| 220 |
[dependencies.hex] |
| 221 |
version = "^0.4.3" |
| 222 |
features = [ |
| 223 |
"serde", |
| 224 |
"alloc", |
| 225 |
] |
| 226 |
optional = true |
| 227 |
default-features = false |
| 228 |
|
| 229 |
[dependencies.itertools] |
| 230 |
version = "0.10.5" |
| 231 |
features = ["use_alloc"] |
| 232 |
default-features = false |
| 233 |
|
| 234 |
[dependencies.maybe-async] |
| 235 |
version = "0.2.10" |
| 236 |
|
| 237 |
[dependencies.mls-rs-codec] |
| 238 |
version = "0.6" |
| 239 |
path = "../mls-rs-codec" |
| 240 |
default-features = false |
| 241 |
|
| 242 |
[dependencies.mls-rs-core] |
| 243 |
version = "0.21.0" |
| 244 |
path = "../mls-rs-core" |
| 245 |
default-features = false |
| 246 |
|
| 247 |
[dependencies.mls-rs-crypto-awslc] |
| 248 |
version = "0.15" |
| 249 |
path = "../mls-rs-crypto-awslc" |
| 250 |
optional = true |
| 251 |
|
| 252 |
[dependencies.mls-rs-crypto-openssl] |
| 253 |
version = "0.14.0" |
| 254 |
path = "../mls-rs-crypto-openssl" |
| 255 |
optional = true |
| 256 |
|
| 257 |
[dependencies.mls-rs-identity-x509] |
| 258 |
version = "0.15.0" |
| 259 |
path = "../mls-rs-identity-x509" |
| 260 |
optional = true |
| 261 |
default-features = false |
| 262 |
|
| 263 |
[dependencies.mls-rs-provider-sqlite] |
| 264 |
version = "0.15.0" |
| 265 |
path = "../mls-rs-provider-sqlite" |
| 266 |
optional = true |
| 267 |
default-features = false |
| 268 |
|
| 269 |
[dependencies.once_cell] |
| 270 |
version = "1.18" |
| 271 |
optional = true |
| 272 |
|
| 273 |
[dependencies.rayon] |
| 274 |
version = "1" |
| 275 |
optional = true |
| 276 |
|
| 277 |
[dependencies.serde] |
| 278 |
version = "1.0" |
| 279 |
features = [ |
| 280 |
"alloc", |
| 281 |
"derive", |
| 282 |
] |
| 283 |
optional = true |
| 284 |
default-features = false |
| 285 |
|
| 286 |
[dependencies.thiserror] |
| 287 |
version = "1.0.40" |
| 288 |
optional = true |
| 289 |
|
| 290 |
[dependencies.zeroize] |
| 291 |
version = "1" |
| 292 |
features = [ |
| 293 |
"alloc", |
| 294 |
"zeroize_derive", |
| 295 |
] |
| 296 |
default-features = false |
| 297 |
|
| 298 |
[dev-dependencies] |
| 299 |
assert_matches = "1.5.0" |
| 300 |
rand = "0.8" |
| 301 |
serde_json = "^1.0" |
| 302 |
|
| 303 |
[dev-dependencies.criterion] |
| 304 |
version = "0.5.1" |
| 305 |
features = [ |
| 306 |
"async_futures", |
| 307 |
"html_reports", |
| 308 |
] |
| 309 |
default-features = false |
| 310 |
|
| 311 |
[dev-dependencies.hex] |
| 312 |
version = "^0.4.3" |
| 313 |
features = [ |
| 314 |
"serde", |
| 315 |
"alloc", |
| 316 |
] |
| 317 |
default-features = false |
| 318 |
|
| 319 |
[dev-dependencies.serde] |
| 320 |
version = "1.0" |
| 321 |
features = [ |
| 322 |
"alloc", |
| 323 |
"derive", |
| 324 |
] |
| 325 |
default-features = false |
| 326 |
|
| 327 |
[target."cfg(mls_build_async)".dependencies] |
| 328 |
async-trait = "^0.1" |
| 329 |
|
| 330 |
[target."cfg(mls_build_async)".dependencies.futures] |
| 331 |
version = "0.3.25" |
| 332 |
features = ["alloc"] |
| 333 |
default-features = false |
| 334 |
|
| 335 |
[target."cfg(mls_build_async)".dev-dependencies] |
| 336 |
futures-test = "0.3.25" |
| 337 |
|
| 338 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion] |
| 339 |
version = "0.5.1" |
| 340 |
features = [ |
| 341 |
"async_futures", |
| 342 |
"html_reports", |
| 343 |
] |
| 344 |
|
| 345 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.mls-rs-crypto-openssl] |
| 346 |
version = "0.14.0" |
| 347 |
path = "../mls-rs-crypto-openssl" |
| 348 |
|
| 349 |
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom] |
| 350 |
version = "0.2" |
| 351 |
features = [ |
| 352 |
"js", |
| 353 |
"custom", |
| 354 |
] |
| 355 |
default-features = false |
| 356 |
|
| 357 |
[target.'cfg(target_arch = "wasm32")'.dependencies.rand_core] |
| 358 |
version = "0.6" |
| 359 |
features = ["alloc"] |
| 360 |
default-features = false |
| 361 |
|
| 362 |
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen] |
| 363 |
version = "0.2" |
| 364 |
|
| 365 |
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.criterion] |
| 366 |
version = "0.5.1" |
| 367 |
features = [ |
| 368 |
"plotters", |
| 369 |
"cargo_bench_support", |
| 370 |
"async_futures", |
| 371 |
"html_reports", |
| 372 |
] |
| 373 |
default-features = false |
| 374 |
|
| 375 |
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.mls-rs-crypto-webcrypto] |
| 376 |
version = "0.8.0" |
| 377 |
path = "../mls-rs-crypto-webcrypto" |
| 378 |
|
| 379 |
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test] |
| 380 |
version = "0.3" |
| 381 |
|
| 382 |
[lints.rust.unexpected_cfgs] |
| 383 |
level = "warn" |
| 384 |
priority = 0 |
| 385 |
check-cfg = [ |
| 386 |
"cfg(mls_build_async)", |
| 387 |
"cfg(coverage_nightly)", |
| 388 |
] |