-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
48 lines (40 loc) · 1.68 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
[package]
name = "pubky-app-specs"
version = "0.3.0"
edition = "2021"
description = "Pubky.app Data Model Specifications"
homepage = "https://pubky.app"
repository = "https://github.com/pubky/pubky-app-specs"
license = "MIT"
documentation = "https://github.com/pubky/pubky-app-specs"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
pkarr = { git = "https://github.com/pubky/pkarr", branch = "v3-rc1", package = "pkarr", default-features = false }
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.138"
url = "2.5.4"
base32 = "0.5.1"
blake3 = "1.5.5"
mime = "0.3"
utoipa = { git = "https://github.com/juhaku/utoipa", rev = "d522f744259dc4fde5f45d187983fb68c8167029", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.100"
serde-wasm-bindgen = "0.6.5"
js-sys = "0.3.77"
web-sys = "0.3.77"
[dev-dependencies]
pubky-common = "0.1.0"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3.50"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
pubky = "0.3.0"
tokio = { version = "1.43.0", features = ["full"] }
anyhow = "1.0.95"
[features]
openapi = ["utoipa"]
[profile.release]
opt-level = "z" # Requests maximum optimization for binary size (“z” stands for “size”), rather than speed.
lto = true # Enables link-time optimization, allowing the compiler to do more aggressive inlining/dead-code elimination across crates.
codegen-units = 1 # Forces compilation into a single code-generation unit, further helping inlining and dead-code elimination at link time.
panic = "abort" # Ensures panics do not generate extra stack-unwinding code, reducing binary bloat. Panics will simply abort execution.