forked from macrocan/rust-ipfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
76 lines (68 loc) · 3.43 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
[package]
authors = ["Rust-IPFS contributors"]
edition = "2018"
license = "MIT OR Apache-2.0"
name = "ipfs"
readme = "README.md"
repository = "https://github.com/rs-ipfs/rust-ipfs"
description = "IPFS node implementation"
version = "0.2.1"
[features]
default = []
# feature will enable sled_data_store use in ipfs::Types (default used by ipfs-http for example)
# sled dependency is not guarded by this to keep compiling and test the pinstore.
sled_data_store = []
test_go_interop = []
test_js_interop = []
[dependencies]
anyhow = { default-features = false, version = "1.0" }
async-stream = { default-features = false, version = "0.3" }
async-trait = { default-features = false, version = "0.1" }
base64 = { default-features = false, features = ["alloc"], version = "0.12" }
bitswap = { version = "0.1", path = "bitswap" }
byteorder = { default-features = false, version = "1.3" }
bytes = { default-features = false, version = "1" }
cid = { default-features = false, version = "0.5" }
domain = { default-features = false, git = "https://github.com/NLnetLabs/domain.git", features = ["resolv", "bytes"] }
either = { default-features = false, version = "1.5" }
futures = { default-features = false, version = "0.3.9", features = ["alloc", "std"] }
ipfs-unixfs = { version = "0.2", path = "unixfs" }
libp2p-rs = { git = "https://github.com/kingwel-xie/libp2p-rs.git", branch = "master", default-features = true }
#libp2p-rs = { default-features = false, features = ["floodsub", "identify", "kad", "tcp-tokio", "mplex", "noise", "ping", "yamux", "dns"], version = "0.2.1" }
#libp2p-rs = { default-features = true, path = "../../../libp2p-rs" }
multibase = { default-features = false, version = "0.8" }
multihash = { default-features = false, version = "0.11" }
prost = { default-features = false, version = "0.7" }
serde = { default-features = false, features = ["derive"], version = "1.0" }
serde_json = { default-features = false, features = ["std"], version = "1.0" }
thiserror = { default-features = false, version = "1.0" }
tokio = { default-features = false, features = ["fs", "macros", "rt-multi-thread", "sync"], version = "1.0" }
tokio-stream = { version = "0.1", features = ["fs"] }
tokio-util = { version = "0.6" }
tracing = { default-features = false, features = ["log"], version = "0.1" }
tracing-futures = { default-features = false, features = ["std-future", "std", "futures-03"], version = "0.2" }
void = { default-features = false, version = "1.0" }
fs2 = "0.4.3"
sled = "0.34"
once_cell = "1.5.2"
log = "0.4"
env_logger = "0.8.3"
[target.'cfg(windows)'.dependencies]
# required for DNS resolution
ipconfig = { default-features = false, version = "0.2" }
[build-dependencies]
prost-build = { default-features = false, version = "0.7" }
[dev-dependencies]
hex-literal = { default-features = false, version = "0.3" }
sha2 = { default-features = false, version = "0.9" }
tokio = { default-features = false, features = ["io-std", "io-util", "time"], version = "1" }
tracing-subscriber = { default-features = false, features = ["fmt", "tracing-log", "ansi", "env-filter"], version = "0.2" }
rand = { default-features = false, version = "0.8", features = ["std", "std_rng"] }
tempfile = "3.1.0"
[workspace]
members = [ "bitswap", "http", "unixfs" ]
# at least these libp2p components need to be patched if you want to use a local version
# libp2p = { path = "../libp2p" }
# libp2p-core = { path = "../libp2p" }
# libp2p-swarm = { path = "../libp2p" }
# libp2p-floodsub = { path = "../libp2p" }