-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
111 lines (100 loc) · 3.54 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
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
[package]
name = "banyan-cli"
license = "MIT"
description = "Banyan manages data and security for use with Filecoin"
homepage = "https://banyan.computer"
repository = "https://github.com/banyancomputer/tomb"
version = "1.1.1"
readme = "README.md"
edition = "2021"
# Cargo publication optionals
categories = [
"compression",
"cryptography",
"encoding",
"filesystem"
]
keywords = [
"decentralization",
"filecoin",
"ipfs",
"storage"
]
# These dependencies are specific to the CLI or would break WASM
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tracing-appender = "^0.2"
base58 = { version = "^0.2" }
bytesize = { version = "^1.3" }
clap = { version = "^4", features = ["derive"] }
dir-assert = { git = "https://github.com/banyancomputer/dir-assert.git", branch = "non-utf8", version = "^0.2" }
fclones = { version = "^0.34" }
fs_extra = { version = "^1" }
futures-core = { version = "^0.3" }
hex = { version = "^0.4" }
indicatif = { version = "^0.17" }
jwalk = { version = "^0.8" }
log = { version = "^0.4" }
open = { version = "^5" }
sha1 = { version = "^0.10" }
sha2 = { version = "^0.10" }
tokio = { version = "^1", features = ["full", "io-util", "fs"]}
# These dependencies are specific to the CLI or would break WASM for testing
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
fake-file = { version = "^0.1" }
serial_test = { version = "^2" }
# Dependencies that must exist independent of architecture
[dependencies]
tracing = { version = "^0.1" }
tracing-subscriber = { version = "^0.3", features = ["env-filter", "fmt", "time", "json"] }
base64 = { version = "^0.21" }
async-recursion = { version = "^1" }
async-trait = { version = "^0.1" }
blake3 = { version = "^1" }
bytes = { version = "^1.5" }
chrono = { version = "^0.4", default-features = false, features = ["clock", "std"] }
colored = { version = "^2" }
futures = { version = "^0.3" }
futures-core = { version = "^0.3" }
futures-util = { version = "^0.3" }
lz4_flex = { version = "^0.11" }
mime_guess = { version = "^2" }
rand = { version = "^0.8" }
reqwest = { version = "^0.11", features = ["blocking", "multipart", "json", "stream"] }
serde = {version= "^1", features = ["derive"]}
serde_json = { version = "^1", features = ["std"]}
thiserror = { version = "^1" }
tomb-crypt = { git = "https://github.com/banyancomputer/tomb-crypt", branch = "main", version = "^0.1" }
unsigned-varint = { version = "^0.8" }
url = { version = "^2", features = ["serde"] }
uuid = { version = "^1", features = ["serde", "v4"] }
wnfs = { git = "https://github.com/banyancomputer/rs-wnfs", branch = "main", version = "^0.1" }
# Native features
[features]
cli = []
integration-tests = []
# Dependencies that only need to exist when we are in WASM
[target.'cfg(target_arch = "wasm32")'.dependencies]
tracing-web = { version = "^0.1" }
time = { version = "0.3", features = ["wasm-bindgen", "macros"] }
async-trait = { version = "^0.1" }
console_error_panic_hook = { version = "^0.1" }
getrandom = { version = "^0.2", features = ["js"] }
js-sys = { version = "^0.3" }
pem = { version = "^3" }
tokio-util = { version = "^0.7", features = ["compat"] }
wasm-bindgen = { version = "^0.2" }
wasm-bindgen-futures = { version = "^0.4" }
# Dependencies that only need to exist when we are testing WASM
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = { version = "^0.3" }
gloo-timers = { version = "^0.3", features = ["futures"] }
[[bin]]
name = "banyan"
path = "src/main.rs"
[lib]
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
[profile.dev]
split-debuginfo = "unpacked"
[profile.release]
lto = true