forked from algesten/str0m
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
97 lines (79 loc) · 3.09 KB
/
Cargo.toml
File metadata and controls
97 lines (79 loc) · 3.09 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
[package]
name = "str0m"
version = "0.15.0"
authors = ["Martin Algesten <martin@algesten.se>", "Hugo Tunius <h@tunius.se>", "Davide Bertola <dade@dadeb.it>"]
description = "WebRTC library in Sans-IO style"
license = "MIT OR Apache-2.0"
repository = "https://github.com/algesten/str0m"
readme = "README.md"
keywords = ["webrtc", "streaming", "video", "audio", "media"]
categories = ["web-programming", "multimedia", "network-programming"]
edition = "2021"
exclude = ["/cargo_deny.sh", "/deny.toml", "/run-fuzz.sh"]
# MSRV
rust-version = "1.81.0"
# Notes on OpenSSL
# - Vendored (static link source build) ensures version consistency and easier
# to build but increases size.
# - Non-vendored (dynamic link) uses system libraries, reducing size but may
# cause compatibility issues.
# Choose based on security and footprint needs.
# For large deployments sharing OS images, OS updates can be easier for
# security patching than updating statically linked software.
[features]
default = ["aws-lc-rs", "examples"]
aws-lc-rs = ["dep:str0m-aws-lc-rs"]
rust-crypto = ["dep:str0m-rust-crypto"]
openssl = ["dep:str0m-openssl"]
wincrypto = ["dep:str0m-wincrypto"]
apple-crypto = ["dep:str0m-apple-crypto"]
vendored = ["str0m-openssl?/vendored"]
unversioned = []
# Redacts personally identifiable information (PII) from logs debug and above
pii = []
# The examples require TLS for the web server via rouille.
# We use rustls instead of ssl to avoid OpenSSL dependency issues on Windows.
examples = ["rouille/rustls"]
_internal_dont_use_log_stats = []
_internal_test_exports = []
[dependencies]
tracing = "0.1.37"
fastrand = "2.0.1"
sctp-proto = "0.7.0"
combine = "4.6.6"
subtle = "2.0.0"
arrayvec = "0.7.6"
# STUN
# Pin crc to avoid 3.4 which requires rustc 1.83
crc = ">=3.0, <3.4"
serde = { version = "1.0.152", features = ["derive"] }
# DTLS made for str0m (required dependency)
dimpl = { version = "0.2.2", default-features = false }
str0m-proto = { version = "0.1.1", path = "proto" }
# Crypto providers
str0m-aws-lc-rs = { version = "0.1.1", path = "crypto/aws-lc-rs", optional = true }
str0m-rust-crypto = { version = "0.1.1", path = "crypto/rust-crypto", optional = true }
str0m-openssl = { version = "0.1.2", path = "crypto/openssl", optional = true }
[target.'cfg(target_vendor = "apple")'.dependencies]
str0m-apple-crypto = { version = "0.1.3", path = "crypto/apple-crypto", optional = true }
[target.'cfg(windows)'.dependencies]
# Windows Crypto (CNG + SChannel)
str0m-wincrypto = { version = "0.3.2", path = "crypto/wincrypto", optional = true }
[dev-dependencies]
rouille = { version = "3.6.2", features = [] }
str0m-rust-crypto = { version = "0.1.1", path = "crypto/rust-crypto" }
netem = { package = "str0m-netem", version = "0.1.1", path = "netem" }
serde_json = "1.0"
tracing-subscriber = { version = "0.3.16", features = ["env-filter", "std"] }
systemstat = "0.2.2"
pcap-file = "2.0.0"
regex = "1.11.1"
rand = "0.9.0"
# dummy package that enables "_internal_test_exports"
_str0m_test = { path = "_str0m_test" }
[[example]]
name = "chat"
required-features = ["examples"]
[[example]]
name = "http-post"
required-features = ["examples"]