forked from ineiti/fledger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
74 lines (67 loc) · 1.9 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
[package]
authors = ["Linus Gasser <[email protected]>"]
description = "Common implementations for libc and wasm"
edition = "2021"
homepage = "https://fledg.re"
keywords = ["arch", "common", "fledger"]
license = "MIT OR Apache-2.0"
name = "flarch"
readme = "README.md"
repository = "https://github.com/ineiti/fledger"
version = "0.8.0"
[features]
node = []
[dependencies]
flarch_macro = { version = "0.8", path = "../flarch_macro" }
chrono = "0.4"
env_logger = "0.11"
futures = "0.3"
log = "0.4"
thiserror = "1"
tokio = { version = "1", features = ["rt", "macros", "time", "sync"] }
async-trait = "0.1"
rand = { version = "0.8" }
# serde_with version 2 doesn't work with old configs
serde_with = { version = "3", features = ["json", "base64", "hex"] }
# serde_yaml 0.9 uses tags in yaml, which fails here
serde_yaml = "0.8"
serde_json = "1"
serde = { version = "1", features = ["derive"] }
sha2 = "0.10"
# For libc
[target.'cfg(target_family="unix")'.dependencies]
webrtc = { version = "0.11" }
tokio-tungstenite = { version = "0.23", features = ["rustls-tls-native-roots"] }
# For wasm
[target.'cfg(target_family="wasm")'.dependencies]
js-sys = { version = "0.3" }
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
wasm-bindgen-futures = { version = "0.4" }
wasm-bindgen-test = "0.3"
wasmtimer = "0.2.0"
serde-wasm-bindgen = { version = "0.6" }
web-sys = { version = "0.3", features = [
'Window',
"Storage",
"console",
"MessageEvent",
"RtcConfiguration",
"RtcDataChannel",
"RtcDataChannelEvent",
"RtcDataChannelState",
"RtcIceCandidate",
"RtcIceCandidateInit",
"RtcIceConnectionState",
"RtcIceGatheringState",
"RtcPeerConnection",
"RtcPeerConnectionIceEvent",
"RtcSdpType",
"RtcSessionDescriptionInit",
"RtcSignalingState",
"ErrorEvent",
"MessageEvent",
"WebSocket",
] }
# [dev-dependencies]
# flexi_logger = "0.28"
# wasm-bindgen-test = "0.3"