File
Blob: firmware/vendor/str0m/Cargo.toml.orig
| 1 | [package] |
| 2 | name = "str0m" |
| 3 | version = "0.23.1" |
| 4 | authors = ["Martin Algesten <martin@algesten.se>", "Hugo Tunius <h@tunius.se>", "Davide Bertola <dade@dadeb.it>"] |
| 5 | description = "WebRTC library in Sans-IO style" |
| 6 | license = "MIT OR Apache-2.0" |
| 7 | repository = "https://github.com/algesten/str0m" |
| 8 | readme = "README.md" |
| 9 | keywords = ["webrtc", "streaming", "video", "audio", "media"] |
| 10 | categories = ["web-programming", "multimedia", "network-programming"] |
| 11 | edition = "2024" |
| 12 | exclude = ["/cargo_deny.sh", "/deny.toml", "/run-fuzz.sh"] |
| 13 | |
| 14 | # MSRV |
| 15 | rust-version = "1.85.0" |
| 16 | |
| 17 | # Notes on OpenSSL |
| 18 | # - Vendored (static link source build) ensures version consistency and easier |
| 19 | # to build but increases size. |
| 20 | # - Non-vendored (dynamic link) uses system libraries, reducing size but may |
| 21 | # cause compatibility issues. |
| 22 | # Choose based on security and footprint needs. |
| 23 | # For large deployments sharing OS images, OS updates can be easier for |
| 24 | # security patching than updating statically linked software. |
| 25 | |
| 26 | [workspace] |
| 27 | members = [ |
| 28 | "crates/proto", |
| 29 | "crates/is", |
| 30 | "crates/netem", |
| 31 | "crates/_str0m_test", |
| 32 | "crypto/aws-lc-rs", |
| 33 | "crypto/rust-crypto", |
| 34 | "crypto/openssl", |
| 35 | "crypto/apple-crypto", |
| 36 | "crypto/wincrypto" |
| 37 | ] |
| 38 | exclude = ["crates/fuzz"] |
| 39 | |
| 40 | [workspace.dependencies] |
| 41 | # Internal crates |
| 42 | str0m = { version = "0.23.1", path = ".", default-features = false } |
| 43 | str0m-proto = { version = "0.7.0", path = "crates/proto", default-features = false } |
| 44 | is = { version = "0.11.0", path = "crates/is", default-features = false } |
| 45 | str0m-netem = { version = "0.4.0", path = "crates/netem" } |
| 46 | str0m-aws-lc-rs = { version = "0.6.0", path = "crypto/aws-lc-rs" } |
| 47 | str0m-rust-crypto = { version = "0.6.0", path = "crypto/rust-crypto" } |
| 48 | str0m-openssl = { version = "0.6.0", path = "crypto/openssl" } |
| 49 | str0m-apple-crypto = { version = "0.6.0", path = "crypto/apple-crypto" } |
| 50 | str0m-wincrypto = { version = "0.8.0", path = "crypto/wincrypto" } |
| 51 | _str0m_test = { path = "crates/_str0m_test" } |
| 52 | |
| 53 | # Core dependencies |
| 54 | tracing = "0.1.37" |
| 55 | fastrand = "2.0.1" |
| 56 | sctp-proto = "0.10.4" |
| 57 | combine = "4.6.6" |
| 58 | subtle = "2.0.0" |
| 59 | arrayvec = "0.7.6" |
| 60 | serde = { version = "1.0.152", features = ["derive"] } |
| 61 | dimpl = { version = "0.7.1", default-features = false } |
| 62 | drv = { version = "0.4.3" } |
| 63 | time = "0.3" |
| 64 | base64ct = "1" |
| 65 | |
| 66 | # Proto dependencies |
| 67 | openssl = "0.10.78" |
| 68 | |
| 69 | # IS dependencies |
| 70 | crc = "3" |
| 71 | hmac = "0.12.1" |
| 72 | sha1 = "0.10" |
| 73 | |
| 74 | # Crypto backend dependencies |
| 75 | aws-lc-rs = { version = "1", default-features = false, features = ["aws-lc-sys", "prebuilt-nasm"] } |
| 76 | aes-gcm = "0.10" |
| 77 | aes = "0.8" |
| 78 | ctr = "0.9" |
| 79 | p256 = { version = "0.13", features = ["ecdh"] } |
| 80 | sha2 = "0.10" |
| 81 | openssl-sys = "0.9.80" |
| 82 | libc = "0.2" |
| 83 | der = "0.7" |
| 84 | pkcs8 = { version = "0.10", features = ["pem"] } |
| 85 | sec1 = "0.7" |
| 86 | spki = "0.7" |
| 87 | x509-cert = { version = "0.2", default-features = false } |
| 88 | |
| 89 | # Dev/test dependencies |
| 90 | rouille = "3.6.2" |
| 91 | tempfile = "3" |
| 92 | url = "2" |
| 93 | serde_json = "1.0" |
| 94 | tracing-subscriber = { version = "0.3.16", features = ["env-filter", "std"] } |
| 95 | systemstat = "0.2.2" |
| 96 | pcap-file = "2.0.0" |
| 97 | regex = "1.11.1" |
| 98 | rand = "0.9.0" |
| 99 | |
| 100 | [features] |
| 101 | default = ["aws-lc-rs", "examples"] |
| 102 | aws-lc-rs = ["dep:str0m-aws-lc-rs"] |
| 103 | rust-crypto = ["dep:str0m-rust-crypto"] |
| 104 | openssl = ["dep:str0m-openssl"] |
| 105 | openssl-dimpl = ["dep:str0m-openssl", "str0m-openssl/dimpl"] |
| 106 | wincrypto = ["dep:str0m-wincrypto"] |
| 107 | wincrypto-dimpl = ["dep:str0m-wincrypto", "str0m-wincrypto/dimpl"] |
| 108 | apple-crypto = ["dep:str0m-apple-crypto"] |
| 109 | vendored = ["str0m-openssl?/vendored"] |
| 110 | unversioned = [] |
| 111 | |
| 112 | # Redacts personally identifiable information (PII) from logs debug and above |
| 113 | pii = ["str0m-proto/pii", "is/pii"] |
| 114 | |
| 115 | # The examples require TLS for the web server via rouille. |
| 116 | # We use rustls instead of ssl to avoid OpenSSL dependency issues on Windows. |
| 117 | examples = ["rouille/rustls"] |
| 118 | |
| 119 | _internal_dont_use_log_stats = [] |
| 120 | _internal_test_exports = ["str0m-proto/_internal_test_exports", "is/_internal_test_exports"] |
| 121 | |
| 122 | # Derives `drv::Input` (drv's memoization cache-key plumbing) on the public |
| 123 | # identity types — Mid, Rid, Ssrc, Pt, SessionId, SeqNo, Direction, MediaKind, |
| 124 | # Frequency, Codec, CodecSpec, FormatParams, VideoOrientation, and the H265 |
| 125 | # profile types — so downstream `#[drv::memo]` queries can take them by value. |
| 126 | # Off by default. |
| 127 | drv = ["dep:drv"] |
| 128 | |
| 129 | [dependencies] |
| 130 | tracing.workspace = true |
| 131 | fastrand.workspace = true |
| 132 | sctp-proto.workspace = true |
| 133 | combine.workspace = true |
| 134 | subtle.workspace = true |
| 135 | arrayvec.workspace = true |
| 136 | serde.workspace = true |
| 137 | time.workspace = true |
| 138 | base64ct.workspace = true |
| 139 | |
| 140 | # DTLS made for str0m (required dependency) |
| 141 | dimpl.workspace = true |
| 142 | |
| 143 | str0m-proto = { workspace = true, features = ["dtls"] } |
| 144 | is.workspace = true |
| 145 | |
| 146 | drv = { workspace = true, optional = true } |
| 147 | |
| 148 | # Crypto providers |
| 149 | str0m-aws-lc-rs = { workspace = true, optional = true } |
| 150 | str0m-rust-crypto = { workspace = true, optional = true } |
| 151 | str0m-openssl = { workspace = true, optional = true } |
| 152 | |
| 153 | [target.'cfg(target_vendor = "apple")'.dependencies] |
| 154 | str0m-apple-crypto = { workspace = true, optional = true } |
| 155 | |
| 156 | [target.'cfg(windows)'.dependencies] |
| 157 | # Windows Crypto (CNG + SChannel) |
| 158 | str0m-wincrypto = { workspace = true, optional = true } |
| 159 | |
| 160 | [dev-dependencies] |
| 161 | rouille.workspace = true |
| 162 | str0m-rust-crypto.workspace = true |
| 163 | tempfile.workspace = true |
| 164 | url.workspace = true |
| 165 | serde_json.workspace = true |
| 166 | tracing-subscriber.workspace = true |
| 167 | systemstat.workspace = true |
| 168 | pcap-file.workspace = true |
| 169 | regex.workspace = true |
| 170 | rand.workspace = true |
| 171 | |
| 172 | # Package rename not supported with workspace inheritance |
| 173 | netem = { package = "str0m-netem", version = "0.4.0", path = "crates/netem" } |
| 174 | |
| 175 | # dummy package that enables "_internal_test_exports" |
| 176 | _str0m_test = { path = "crates/_str0m_test" } |
| 177 | |
| 178 | [[example]] |
| 179 | name = "chat" |
| 180 | required-features = ["examples"] |
| 181 | |
| 182 | [[example]] |
| 183 | name = "http-post" |
| 184 | required-features = ["examples"] |