-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathCargo.toml
More file actions
88 lines (73 loc) · 3.49 KB
/
Cargo.toml
File metadata and controls
88 lines (73 loc) · 3.49 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[workspace]
members = ["crates/*"]
default-members = ["crates/*"]
resolver = "2"
[workspace.package]
authors = ["Jeff Gardner <j@jeffg.me>", "MDK Developers"]
homepage = "https://github.com/marmot-protocol/mdk"
repository = "https://github.com/marmot-protocol/mdk"
license = "MIT"
rust-version = "1.90.0"
[workspace.dependencies]
# Internal crates
mdk-memory-storage = { version = "0.8.0", path = "./crates/mdk-memory-storage", default-features = false }
mdk-sqlite-storage = { version = "0.8.0", path = "./crates/mdk-sqlite-storage", default-features = false }
mdk-storage-traits = { version = "0.8.0", path = "./crates/mdk-storage-traits", default-features = false }
mdk-core = { version = "0.8.0", path = "./crates/mdk-core", default-features = false }
mdk-macros = { version = "0.8.0", path = "./crates/mdk-macros" }
# OpenMLS family — pinned to a post-#1959 rev for public
# `MlsGroup::treesync().full_leaves()` (merged upstream 2026-02-16).
# Published crates currently verify against OpenMLS 0.8.1 from crates.io, so
# mdk-core carries a temporary exported-ratchet-tree compatibility shim until
# crates.io OpenMLS includes that public full-leaf API.
# All four crates must move in lockstep on the same rev.
# Do not move to upstream tip until openmls #1972's MessageSecretsStore
# shape has a postcard-compatible storage path, or MDK migrates codecs.
openmls = { version = "0.8.1", git = "https://github.com/openmls/openmls", rev = "04c50d7fb12d52f4f9aee26de5f5234f3df29fa8", default-features = false }
openmls_traits = { version = "0.5.0", git = "https://github.com/openmls/openmls", rev = "04c50d7fb12d52f4f9aee26de5f5234f3df29fa8", default-features = false }
openmls_basic_credential = { version = "0.5.0", git = "https://github.com/openmls/openmls", rev = "04c50d7fb12d52f4f9aee26de5f5234f3df29fa8", default-features = false }
openmls_rust_crypto = { version = "0.5.1", git = "https://github.com/openmls/openmls", rev = "04c50d7fb12d52f4f9aee26de5f5234f3df29fa8", default-features = false }
# Nostr
nostr = { version = "0.44", default-features = false }
# Serialization
serde = { version = "1.0", default-features = false }
serde_json = { version = "1.0", default-features = false }
postcard = { version = "1.1", default-features = false }
tls_codec = "0.4"
# Cryptography
base64 = "0.22"
chacha20poly1305 = "0.10"
hkdf = "0.12"
sha2 = "0.10"
# Image processing (optional features)
image = { version = "0.25", default-features = false }
blurhash = "0.2"
fast-thumbhash = "0.2"
kamadak-exif = "0.6"
# Storage
rusqlite = { version = "0.37", default-features = false }
refinery = "0.9"
# Random number generation
getrandom = "0.4"
# Secure credential storage
keyring-core = "1"
# Utilities
hex = { version = "0.4", default-features = false }
lru = { version = "0.16", default-features = false }
parking_lot = "0.12"
pastey = "0.2"
thiserror = "2"
zeroize = { version = "1.8", features = ["zeroize_derive"] }
# Async
tokio = { version = "1.47", default-features = false }
# Logging
tracing = { version = "0.1", default-features = false }
tracing-subscriber = "0.3"
# Testing
tempfile = "3.20"
[profile.release]
opt-level = "z" # Optimize for binary size over speed
lto = "thin" # Thin LTO: cross-crate optimization without embedding full IR in .a archives
codegen-units = 1 # Single codegen unit for maximum optimization
panic = "abort" # No unwinding machinery; safe at UniFFI FFI boundary
strip = "debuginfo" # Strip DWARF debug info but keep .symtab — uniffi-bindgen --library reads UNIFFI_META_* symbols from it on Linux