-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathCargo.toml
More file actions
49 lines (42 loc) · 1.53 KB
/
Copy pathCargo.toml
File metadata and controls
49 lines (42 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[package]
name = "agntcy-slim-mls"
edition = { workspace = true }
license = { workspace = true }
version = "0.2.1"
description = "Messaging Layer Security for SLIM data plane."
[lib]
name = "slim_mls"
[features]
default = []
# Use Curve25519 (X25519 + Ed25519) MLS ciphersuite instead of the
# default NIST P-256 ciphersuite.
curve25519 = []
[dependencies]
agntcy-slim-auth = { workspace = true }
agntcy-slim-version = { workspace = true }
base64 = { workspace = true }
hex = "0.4"
mls-rs = { workspace = true }
mls-rs-core = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
# `mls-rs` is sync on native and async on wasm32 (where `mls_build_async` is set
# via rustflags in data-plane/.cargo/config.toml). `maybe-async` lets us write
# each MLS method once and select the right shape per target: the `is_sync`
# feature strips `async`/`await` on native, keeping the async form on wasm32.
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
maybe-async = { workspace = true, features = ["is_sync"] }
mls-rs-crypto-awslc = { workspace = true }
# Browser SubtleCrypto crypto provider (async-only) for wasm32.
[target.'cfg(target_arch = "wasm32")'.dependencies]
async-trait = { workspace = true }
getrandom = { workspace = true }
maybe-async = { workspace = true }
mls-rs-crypto-webcrypto = { workspace = true }
[dev-dependencies]
tempfile = "3.3"
tokio = { workspace = true, features = ["macros", "rt"] }
[lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = ["cfg(mls_build_async)"]