-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
77 lines (63 loc) · 2.07 KB
/
Cargo.toml
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
[workspace]
members = [
"common",
"ui",
"contracts/room-contract",
"contracts/web-container-contract",
"contracts/web-container-contract/web-container-tool",
"delegates/chat-delegate",
]
resolver = "2"
[workspace.dependencies]
# Serialization
ciborium = "0.2.2"
serde = { version = "1.0.130", features = ["derive"] }
# Cryptography
ed25519-dalek = { version = "2.1.1", default-features = false }
blake3 = { version = "1.5.3", features = ["serde"] }
x25519-dalek = { version = "2.0.0", features = ["static_secrets"] }
curve25519-dalek = { version = "4.1.3" }
sha2 = "0.10.8"
aes-gcm = { version = "0.10.3", features = ["std"] }
bs58 = "0.5.1"
# Utilities
byteorder = "1.5.0"
rand = { version = "0.8.5", features = ["getrandom"], default-features = true }
base64 = "0.22.1"
once_cell = "1.18.0"
data-encoding = "2.3.3"
tracing = "0.1.40"
chrono = { version = "0.4", features = ["serde"] }
# Web-related
web-sys = { version = "0.3.64", features = ["HtmlInputElement", "WindowClient", "Navigator", "Window", "UrlSearchParams", "Location"] }
wasm-bindgen = "0.2.73"
wasm-bindgen-futures = "0.4.43"
futures-timer = "3.0.2"
# Internal dependencies
river-common = { path = "common", package = "river-common", default-features = true }
# Freenet dependencies
freenet-scaffold = "0.2.1"
freenet-scaffold-macro = "0.2.1"
freenet-stdlib = { version = "0.1.5", features = ["contract"] }
[workspace.package]
version = "0.1.0"
edition = "2021"
[profile.release]
opt-level = 'z' # Optimize for size
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations
panic = 'abort' # Abort on panic
strip = true # Strip symbols from binary
# Optimize dependencies in release mode
[profile.release.package."*"]
opt-level = 'z' # Optimize all dependencies for size as well
[profile.wasm-dev]
inherits = "dev"
opt-level = 1
[profile.server-dev]
inherits = "dev"
[profile.android-dev]
inherits = "dev"
[workspace.metadata.dx]
toolchain = "nightly"
# We need to pin specific versions to resolve dependency conflicts