-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
206 lines (178 loc) · 5.56 KB
/
Cargo.toml
File metadata and controls
206 lines (178 loc) · 5.56 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
[workspace]
resolver = "2"
members = [
"crates/fula-crypto",
"crates/fula-blockstore",
"crates/fula-core",
"crates/fula-cli",
"crates/fula-client",
"crates/fula-flutter",
"crates/fula-js",
]
# Root package for examples
[package]
name = "fula-api"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
authors.workspace = true
rust-version.workspace = true
publish = false
[dependencies]
fula-client = { path = "crates/fula-client" }
fula-crypto = { path = "crates/fula-crypto" }
fula-blockstore = { path = "crates/fula-blockstore" }
tokio = { workspace = true }
anyhow = { workspace = true }
serde_json = { workspace = true }
tracing-subscriber = { workspace = true }
rand = { workspace = true }
bytes = { workspace = true }
chrono = { workspace = true }
serde = { workspace = true }
[dev-dependencies]
fula-blockstore = { path = "crates/fula-blockstore" }
fula-core = { path = "crates/fula-core" }
fula-cli = { path = "crates/fula-cli" }
fula-client = { path = "crates/fula-client", features = ["test-fault-injection"] }
fula-crypto = { path = "crates/fula-crypto" }
# Added by issue #11 repro test (tests/issue_11_share_token_offline_test.rs)
fula-flutter = { path = "crates/fula-flutter" }
chrono = { workspace = true }
reqwest = { workspace = true, features = ["json", "multipart"] }
axum = { workspace = true }
base64 = { workspace = true }
md-5 = { workspace = true }
blake3 = { workspace = true }
hex = { workspace = true }
jsonwebtoken = { workspace = true }
serde = { workspace = true }
tempfile = { workspace = true }
fs2 = "0.4"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[[example]]
name = "encrypted_storage"
path = "examples/encrypted_storage.rs"
[[example]]
name = "multipart_upload"
path = "examples/multipart_upload.rs"
[[example]]
name = "s3_compatible"
path = "examples/s3_compatible.rs"
[[example]]
name = "ipfs_pinning_test"
path = "examples/ipfs_pinning_test.rs"
[[example]]
name = "encrypted_upload_test"
path = "examples/encrypted_upload_test.rs"
[workspace.package]
version = "0.6.6"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/functionland/fula-api"
authors = ["Functionland <hi@fx.land>"]
rust-version = "1.83"
[workspace.dependencies]
# Async runtime
tokio = { version = "1.42", features = ["full"] }
async-trait = "0.1"
async-recursion = "1.1"
futures = "0.3"
# Cryptography
blake3 = "1.5"
bao-tree = "0.13"
hpke = { version = "0.13", features = ["std"] }
rand = "0.8"
rand_core = { version = "0.6", features = ["getrandom"] }
aes-gcm = "0.10"
chacha20poly1305 = "0.10"
sha2 = "0.10"
md-5 = "0.10"
x25519-dalek = { version = "2.0", features = ["static_secrets"] }
ed25519-dalek = { version = "2.1", features = ["serde"] }
# NFKC normalization for user-entered seeds (Mode B / Mode C identity).
# Visually-identical passwords typed with different Unicode codepoints
# (e.g., precomposed vs decomposed accents) must hash to the same
# effective_user_id. Pure-Rust, no_std, ~100 KB.
unicode-normalization = "0.1"
# IPFS/IPLD
cid = "0.11"
multihash = "0.19"
multihash-codetable = { version = "0.1", features = ["blake3", "sha2", "sha3"] }
libipld = "0.16"
ipld-core = "0.4"
serde_ipld_dagcbor = "0.6"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_bytes = "0.11"
postcard = { version = "1.0", features = ["alloc"] }
quick-xml = { version = "0.37", features = ["serialize"] }
base64 = "0.22"
hex = "0.4"
uuid = { version = "1.11", features = ["v4", "serde"] }
# Web framework
axum = { version = "0.8", features = ["multipart", "tokio"] }
axum-extra = { version = "0.10", features = ["typed-header"] }
tower = { version = "0.5", features = ["full"] }
tower-http = { version = "0.6", features = ["cors", "trace", "limit"] }
hyper = { version = "1.5", features = ["full"] }
# Rate limiting
governor = "0.8"
# Database/Storage
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "json", "chrono", "uuid"] }
redis = { version = "0.27", features = ["tokio-comp", "connection-manager"] }
# HTTP client for IPFS (rustls for cross-compilation to Android/iOS)
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "multipart", "rustls-tls"] }
# Authentication
jsonwebtoken = "9.3"
oauth2 = "5.0"
# Time handling
chrono = { version = "0.4", features = ["serde"] }
time = "0.3"
# Logging/Tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Error handling
thiserror = "2.0"
anyhow = "1.0"
# Configuration
config = "0.14"
dotenvy = "0.15"
clap = { version = "4.5", features = ["derive", "env"] }
# Utilities
bytes = "1.9"
pin-project-lite = "0.2"
parking_lot = "0.12"
dashmap = "6.1"
lru = "0.12"
semver = "1.0"
bitvec = "1.0"
# Embedded persistent KV (block cache, Phase 2.2 of master-independent reads).
# Pinned to 2.6.x to avoid silent file-format drift in routine cargo update.
# A 2.x bump is a deliberate decision (verify file-format compatibility before
# upgrading; cache files in production may need migration handling).
redb = "~2.6"
# Testing
criterion = "0.5"
proptest = "1.5"
test-log = "0.2"
wiremock = "0.6"
tempfile = "3.14"
rstest = "0.23"
mockall = "0.13"
[profile.release]
# LTO disabled to preserve FFI symbols in iOS static libraries
# With lto = true, the linker removes "unused" extern "C" functions
lto = false
opt-level = 3
codegen-units = 1
# Use "debuginfo" instead of "true" to preserve FFI symbols in static libraries
# Full stripping removes symbols needed for iOS static library linking
strip = "debuginfo"
[profile.dev]
opt-level = 0
debug = true