forked from magic-wormhole/magic-wormhole.rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
85 lines (72 loc) · 2.52 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
[package]
name = "magic-wormhole"
version = "0.6.0"
authors = [
"piegames <[email protected]>",
"Brian Warner <[email protected]>"
]
description = "Get things from one computer to another, safely"
keywords = ["magic-wormhole", "wormhole", "file-transfer", "transfer"]
categories = ["network-programming", "command-line-utilities"]
readme = "README.md"
homepage = "http://magic-wormhole.io/"
repository = "https://github.com/magic-wormhole/magic-wormhole.rs"
documentation = "https://docs.rs/magic-wormhole/latest/"
license = "EUPL-1.2"
edition = "2021"
rust-version = "1.61" # MSRV (also change in CI)
[dependencies]
serde = { version = "1.0.120", features = ["rc"] }
serde_json = "1.0.61"
serde_derive = "1.0.120"
xsalsa20poly1305 = "0.8.0"
spake2 = "0.3.1"
sha-1 = "0.10.0"
sha2 = "0.10.0"
hkdf = "0.12.2"
hex = { version = "0.4.2", features = ["serde"] }
rand = "0.8.3"
log = "0.4.13"
# zeroize = { version = "1.2.0", features = ["zeroize_derive"] }
base64 = "0.20.0"
futures_ringbuf = "0.3.1"
time = { version = "0.3.7", features = ["formatting"] }
derive_more = { version = "0.99.0", default-features = false, features = ["display", "deref", "from"] }
thiserror = "1.0.24"
futures = "0.3.12"
async-std = { version = "1.12.0", features = ["attributes", "unstable"] }
async-tungstenite = { version = "0.17.1", features = ["async-std-runtime", "async-tls"] }
async-io = "1.6.0"
libc = "0.2.101"
url = { version = "2.2.2", features = ["serde"] }
percent-encoding = { version = "2.1.0" }
# Transit dependencies
socket2 = { version = "0.4.1", optional = true }
stun_codec = { version = "0.2.0", optional = true }
if-addrs = { version = "0.7.0", optional = true }
bytecodec = { version = "0.4.15", optional = true }
async-trait = { version = "0.1.57", optional = true }
noise-protocol = { version = "0.1.4", optional = true }
noise-rust-crypto = { version = "0.5.0", optional = true }
# Transfer dependencies
async-tar = { version = "0.4.2", optional = true }
rmp-serde = { version = "1.0.0", optional = true }
# Forwarding dependencies
# rmp-serde = … # defined above
# for some tests
[dev-dependencies]
env_logger = "0.10.0"
eyre = "0.6.5"
[features]
transit = ["socket2", "stun_codec", "if-addrs", "bytecodec", "async-trait", "noise-protocol", "noise-rust-crypto"]
transfer = ["transit", "async-tar", "rmp-serde"]
forwarding = ["transit", "rmp-serde"]
default = ["transit", "transfer"]
all = ["default", "forwarding"]
[profile.release]
overflow-checks = true
strip = "debuginfo"
lto = "thin"
[workspace]
members = [".", "cli"]
default-members = ["cli"]