-
Notifications
You must be signed in to change notification settings - Fork 51
/
Cargo.toml
84 lines (69 loc) · 2.65 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
[package]
name = "str0m"
version = "0.6.3"
authors = ["Martin Algesten <[email protected]>", "Hugo Tunius <[email protected]>", "Davide Bertola <[email protected]>"]
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.71.1"
# 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 = ["openssl", "vendored", "sha1"]
openssl = ["dep:openssl", "dep:openssl-sys", "dep:libc", "rouille/ssl"]
vendored = ["openssl?/vendored"]
# Without the sha1 feature, str0m uses the openssl sha1 impl which is slower.
sha1 = ["dep:sha1"]
# Uses native Windows API to implement cryptographic features, use instead on openssl and sha1.
wincrypto = ["dep:str0m-wincrypto"]
_internal_dont_use_log_stats = []
_internal_test_exports = []
[dependencies]
thiserror = "1.0.69"
tracing = "0.1.37"
fastrand = "2.0.1"
once_cell = "1.17.0" # NB: Can be dropped in MSRV 1.80 using LazyLock.
sctp-proto = "0.3.0"
combine = "4.6.6"
# Sadly no DTLS support in rustls.
openssl = { version = "0.10.66", optional = true }
openssl-sys = { version = "0.9.80", optional = true }
libc = { version = "0.2", optional = true }
# STUN
hmac = "0.12.1"
crc = "3.0.0"
serde = { version = "1.0.152", features = ["derive"] }
[target.'cfg(unix)'.dependencies]
sha1 = { version = "0.10.6", features = ["asm"], optional = true }
[target.'cfg(windows)'.dependencies]
# The ASM feature is broken on windows. Unclear where in the rust-crypto project
# we're supposed to check when it gets sorted out.
sha1 = { version = "0.10.6", optional = true }
# Windows Crypto (CNG + SChannel)
str0m-wincrypto = { path = "wincrypto", optional = true }
[dev-dependencies]
rouille = { version = "3.5.0", features = [] }
serde_json = "1.0"
tracing-subscriber = { version = "0.3.16", features = ["env-filter", "std"] }
systemstat = "0.2.2"
pcap-file = "2.0.0"
# dummy package that enables "_internal_test_exports"
_str0m_test = { path = "_str0m_test" }
[[example]]
name = "chat"
required-features = ["openssl"]
[[example]]
name = "http-post"
required-features = ["openssl"]