Created
May 27, 2025 17:32
-
-
Save wdouglass/58d910684a555fd10749d8b8d32a43a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 2094b6f751b780d6e6f5599764f45dc40ce16932 Mon Sep 17 00:00:00 2001 | |
From: Woodrow Douglass <[email protected]> | |
Date: Fri, 23 May 2025 08:22:41 -0400 | |
Subject: [PATCH] console_subscriber | |
--- | |
Cargo.lock | 495 +++++++++++++++++- | |
examples/Cargo.toml | 1 + | |
.../data-channels-flow-control.rs | 2 + | |
3 files changed, 483 insertions(+), 15 deletions(-) | |
diff --git a/Cargo.lock b/Cargo.lock | |
index 1cba509e..549fb2d2 100644 | |
--- a/Cargo.lock | |
+++ b/Cargo.lock | |
@@ -316,6 +316,53 @@ version = "1.4.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" | |
+[[package]] | |
+name = "axum" | |
+version = "0.7.9" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f" | |
+dependencies = [ | |
+ "async-trait", | |
+ "axum-core", | |
+ "bytes", | |
+ "futures-util", | |
+ "http 1.3.1", | |
+ "http-body 1.0.1", | |
+ "http-body-util", | |
+ "itoa", | |
+ "matchit", | |
+ "memchr", | |
+ "mime", | |
+ "percent-encoding", | |
+ "pin-project-lite", | |
+ "rustversion", | |
+ "serde", | |
+ "sync_wrapper", | |
+ "tower 0.5.2", | |
+ "tower-layer", | |
+ "tower-service", | |
+] | |
+ | |
+[[package]] | |
+name = "axum-core" | |
+version = "0.4.5" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199" | |
+dependencies = [ | |
+ "async-trait", | |
+ "bytes", | |
+ "futures-util", | |
+ "http 1.3.1", | |
+ "http-body 1.0.1", | |
+ "http-body-util", | |
+ "mime", | |
+ "pin-project-lite", | |
+ "rustversion", | |
+ "sync_wrapper", | |
+ "tower-layer", | |
+ "tower-service", | |
+] | |
+ | |
[[package]] | |
name = "backtrace" | |
version = "0.3.75" | |
@@ -337,6 +384,12 @@ version = "0.2.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" | |
+[[package]] | |
+name = "base64" | |
+version = "0.21.7" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" | |
+ | |
[[package]] | |
name = "base64" | |
version = "0.22.1" | |
@@ -601,6 +654,45 @@ dependencies = [ | |
"crossbeam-utils", | |
] | |
+[[package]] | |
+name = "console-api" | |
+version = "0.8.1" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "8030735ecb0d128428b64cd379809817e620a40e5001c54465b99ec5feec2857" | |
+dependencies = [ | |
+ "futures-core", | |
+ "prost", | |
+ "prost-types", | |
+ "tonic", | |
+ "tracing-core", | |
+] | |
+ | |
+[[package]] | |
+name = "console-subscriber" | |
+version = "0.4.1" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "6539aa9c6a4cd31f4b1c040f860a1eac9aa80e7df6b05d506a6e7179936d6a01" | |
+dependencies = [ | |
+ "console-api", | |
+ "crossbeam-channel", | |
+ "crossbeam-utils", | |
+ "futures-task", | |
+ "hdrhistogram", | |
+ "humantime", | |
+ "hyper-util", | |
+ "prost", | |
+ "prost-types", | |
+ "serde", | |
+ "serde_json", | |
+ "thread_local", | |
+ "tokio", | |
+ "tokio-stream", | |
+ "tonic", | |
+ "tracing", | |
+ "tracing-core", | |
+ "tracing-subscriber", | |
+] | |
+ | |
[[package]] | |
name = "const-oid" | |
version = "0.9.6" | |
@@ -637,6 +729,15 @@ version = "2.4.0" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" | |
+[[package]] | |
+name = "crc32fast" | |
+version = "1.4.2" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" | |
+dependencies = [ | |
+ "cfg-if", | |
+] | |
+ | |
[[package]] | |
name = "criterion" | |
version = "0.5.1" | |
@@ -674,6 +775,15 @@ dependencies = [ | |
"itertools", | |
] | |
+[[package]] | |
+name = "crossbeam-channel" | |
+version = "0.5.15" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" | |
+dependencies = [ | |
+ "crossbeam-utils", | |
+] | |
+ | |
[[package]] | |
name = "crossbeam-deque" | |
version = "0.8.6" | |
@@ -935,8 +1045,9 @@ dependencies = [ | |
"bytes", | |
"chrono", | |
"clap 3.2.25", | |
+ "console-subscriber", | |
"env_logger", | |
- "hyper", | |
+ "hyper 0.14.32", | |
"lazy_static", | |
"log", | |
"memchr", | |
@@ -971,6 +1082,16 @@ version = "0.2.9" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" | |
+[[package]] | |
+name = "flate2" | |
+version = "1.1.1" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "7ced92e76e966ca2fd84c8f7aa01a4aea65b0eb6648d72f7c8f3e2764a67fece" | |
+dependencies = [ | |
+ "crc32fast", | |
+ "miniz_oxide", | |
+] | |
+ | |
[[package]] | |
name = "fnv" | |
version = "1.0.7" | |
@@ -1175,7 +1296,26 @@ dependencies = [ | |
"futures-core", | |
"futures-sink", | |
"futures-util", | |
- "http", | |
+ "http 0.2.12", | |
+ "indexmap 2.9.0", | |
+ "slab", | |
+ "tokio", | |
+ "tokio-util", | |
+ "tracing", | |
+] | |
+ | |
+[[package]] | |
+name = "h2" | |
+version = "0.4.10" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "a9421a676d1b147b16b82c9225157dc629087ef8ec4d5e2960f9437a90dac0a5" | |
+dependencies = [ | |
+ "atomic-waker", | |
+ "bytes", | |
+ "fnv", | |
+ "futures-core", | |
+ "futures-sink", | |
+ "http 1.3.1", | |
"indexmap 2.9.0", | |
"slab", | |
"tokio", | |
@@ -1205,6 +1345,19 @@ version = "0.15.3" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "84b26c544d002229e640969970a2e74021aadf6e2f96372b9c58eff97de08eb3" | |
+[[package]] | |
+name = "hdrhistogram" | |
+version = "7.5.4" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "765c9198f173dd59ce26ff9f95ef0aafd0a0fe01fb9d72841bc5066a4c06511d" | |
+dependencies = [ | |
+ "base64 0.21.7", | |
+ "byteorder", | |
+ "flate2", | |
+ "nom", | |
+ "num-traits", | |
+] | |
+ | |
[[package]] | |
name = "hermit-abi" | |
version = "0.1.19" | |
@@ -1261,6 +1414,17 @@ dependencies = [ | |
"itoa", | |
] | |
+[[package]] | |
+name = "http" | |
+version = "1.3.1" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565" | |
+dependencies = [ | |
+ "bytes", | |
+ "fnv", | |
+ "itoa", | |
+] | |
+ | |
[[package]] | |
name = "http-body" | |
version = "0.4.6" | |
@@ -1268,7 +1432,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" | |
dependencies = [ | |
"bytes", | |
- "http", | |
+ "http 0.2.12", | |
+ "pin-project-lite", | |
+] | |
+ | |
+[[package]] | |
+name = "http-body" | |
+version = "1.0.1" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" | |
+dependencies = [ | |
+ "bytes", | |
+ "http 1.3.1", | |
+] | |
+ | |
+[[package]] | |
+name = "http-body-util" | |
+version = "0.1.3" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" | |
+dependencies = [ | |
+ "bytes", | |
+ "futures-core", | |
+ "http 1.3.1", | |
+ "http-body 1.0.1", | |
"pin-project-lite", | |
] | |
@@ -1297,6 +1484,12 @@ dependencies = [ | |
"webrtc-util", | |
] | |
+[[package]] | |
+name = "humantime" | |
+version = "2.2.0" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "9b112acc8b3adf4b107a8ec20977da0273a8c386765a3ec0229bd500a1443f9f" | |
+ | |
[[package]] | |
name = "hyper" | |
version = "0.14.32" | |
@@ -1307,9 +1500,9 @@ dependencies = [ | |
"futures-channel", | |
"futures-core", | |
"futures-util", | |
- "h2", | |
- "http", | |
- "http-body", | |
+ "h2 0.3.26", | |
+ "http 0.2.12", | |
+ "http-body 0.4.6", | |
"httparse", | |
"httpdate", | |
"itoa", | |
@@ -1321,6 +1514,60 @@ dependencies = [ | |
"want", | |
] | |
+[[package]] | |
+name = "hyper" | |
+version = "1.6.0" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" | |
+dependencies = [ | |
+ "bytes", | |
+ "futures-channel", | |
+ "futures-util", | |
+ "h2 0.4.10", | |
+ "http 1.3.1", | |
+ "http-body 1.0.1", | |
+ "httparse", | |
+ "httpdate", | |
+ "itoa", | |
+ "pin-project-lite", | |
+ "smallvec", | |
+ "tokio", | |
+ "want", | |
+] | |
+ | |
+[[package]] | |
+name = "hyper-timeout" | |
+version = "0.5.2" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" | |
+dependencies = [ | |
+ "hyper 1.6.0", | |
+ "hyper-util", | |
+ "pin-project-lite", | |
+ "tokio", | |
+ "tower-service", | |
+] | |
+ | |
+[[package]] | |
+name = "hyper-util" | |
+version = "0.1.12" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "cf9f1e950e0d9d1d3c47184416723cf29c0d1f93bd8cccf37e4beb6b44f31710" | |
+dependencies = [ | |
+ "bytes", | |
+ "futures-channel", | |
+ "futures-util", | |
+ "http 1.3.1", | |
+ "http-body 1.0.1", | |
+ "hyper 1.6.0", | |
+ "libc", | |
+ "pin-project-lite", | |
+ "socket2", | |
+ "tokio", | |
+ "tower-service", | |
+ "tracing", | |
+] | |
+ | |
[[package]] | |
name = "iana-time-zone" | |
version = "0.1.63" | |
@@ -1614,6 +1861,21 @@ version = "0.4.27" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" | |
+[[package]] | |
+name = "matchers" | |
+version = "0.1.0" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" | |
+dependencies = [ | |
+ "regex-automata 0.1.10", | |
+] | |
+ | |
+[[package]] | |
+name = "matchit" | |
+version = "0.7.3" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" | |
+ | |
[[package]] | |
name = "md-5" | |
version = "0.10.6" | |
@@ -1639,6 +1901,12 @@ dependencies = [ | |
"autocfg", | |
] | |
+[[package]] | |
+name = "mime" | |
+version = "0.3.17" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" | |
+ | |
[[package]] | |
name = "minimal-lexical" | |
version = "0.2.1" | |
@@ -1877,7 +2145,7 @@ version = "3.0.5" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "38af38e8470ac9dee3ce1bae1af9c1671fffc44ddfd8bd1d0a3445bf349a8ef3" | |
dependencies = [ | |
- "base64", | |
+ "base64 0.22.1", | |
"serde", | |
] | |
@@ -1896,6 +2164,26 @@ version = "2.3.1" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" | |
+[[package]] | |
+name = "pin-project" | |
+version = "1.1.10" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a" | |
+dependencies = [ | |
+ "pin-project-internal", | |
+] | |
+ | |
+[[package]] | |
+name = "pin-project-internal" | |
+version = "1.1.10" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861" | |
+dependencies = [ | |
+ "proc-macro2", | |
+ "quote", | |
+ "syn", | |
+] | |
+ | |
[[package]] | |
name = "pin-project-lite" | |
version = "0.2.16" | |
@@ -2058,6 +2346,38 @@ dependencies = [ | |
"unicode-ident", | |
] | |
+[[package]] | |
+name = "prost" | |
+version = "0.13.5" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "2796faa41db3ec313a31f7624d9286acf277b52de526150b7e69f3debf891ee5" | |
+dependencies = [ | |
+ "bytes", | |
+ "prost-derive", | |
+] | |
+ | |
+[[package]] | |
+name = "prost-derive" | |
+version = "0.13.5" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d" | |
+dependencies = [ | |
+ "anyhow", | |
+ "itertools", | |
+ "proc-macro2", | |
+ "quote", | |
+ "syn", | |
+] | |
+ | |
+[[package]] | |
+name = "prost-types" | |
+version = "0.13.5" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "52c2c1bf36ddb1a1c396b3601a3cec27c2462e45f07c386894ec3ccf5332bd16" | |
+dependencies = [ | |
+ "prost", | |
+] | |
+ | |
[[package]] | |
name = "quote" | |
version = "1.0.40" | |
@@ -2154,8 +2474,17 @@ checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" | |
dependencies = [ | |
"aho-corasick", | |
"memchr", | |
- "regex-automata", | |
- "regex-syntax", | |
+ "regex-automata 0.4.9", | |
+ "regex-syntax 0.8.5", | |
+] | |
+ | |
+[[package]] | |
+name = "regex-automata" | |
+version = "0.1.10" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" | |
+dependencies = [ | |
+ "regex-syntax 0.6.29", | |
] | |
[[package]] | |
@@ -2166,9 +2495,15 @@ checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" | |
dependencies = [ | |
"aho-corasick", | |
"memchr", | |
- "regex-syntax", | |
+ "regex-syntax 0.8.5", | |
] | |
+[[package]] | |
+name = "regex-syntax" | |
+version = "0.6.29" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" | |
+ | |
[[package]] | |
name = "regex-syntax" | |
version = "0.8.5" | |
@@ -2415,6 +2750,15 @@ dependencies = [ | |
"digest", | |
] | |
+[[package]] | |
+name = "sharded-slab" | |
+version = "0.1.7" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" | |
+dependencies = [ | |
+ "lazy_static", | |
+] | |
+ | |
[[package]] | |
name = "shlex" | |
version = "1.3.0" | |
@@ -2426,8 +2770,8 @@ name = "signal" | |
version = "0.1.0" | |
dependencies = [ | |
"anyhow", | |
- "base64", | |
- "hyper", | |
+ "base64 0.22.1", | |
+ "hyper 0.14.32", | |
"lazy_static", | |
"tokio", | |
] | |
@@ -2511,7 +2855,7 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" | |
name = "stun" | |
version = "0.8.0" | |
dependencies = [ | |
- "base64", | |
+ "base64 0.22.1", | |
"clap 3.2.25", | |
"crc", | |
"criterion", | |
@@ -2553,6 +2897,12 @@ dependencies = [ | |
"unicode-ident", | |
] | |
+[[package]] | |
+name = "sync_wrapper" | |
+version = "1.0.2" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" | |
+ | |
[[package]] | |
name = "synstructure" | |
version = "0.13.2" | |
@@ -2599,6 +2949,16 @@ dependencies = [ | |
"syn", | |
] | |
+[[package]] | |
+name = "thread_local" | |
+version = "1.1.8" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" | |
+dependencies = [ | |
+ "cfg-if", | |
+ "once_cell", | |
+] | |
+ | |
[[package]] | |
name = "time" | |
version = "0.3.41" | |
@@ -2665,6 +3025,7 @@ dependencies = [ | |
"signal-hook-registry", | |
"socket2", | |
"tokio-macros", | |
+ "tracing", | |
"windows-sys 0.52.0", | |
] | |
@@ -2716,6 +3077,76 @@ dependencies = [ | |
"tokio", | |
] | |
+[[package]] | |
+name = "tonic" | |
+version = "0.12.3" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "877c5b330756d856ffcc4553ab34a5684481ade925ecc54bcd1bf02b1d0d4d52" | |
+dependencies = [ | |
+ "async-stream", | |
+ "async-trait", | |
+ "axum", | |
+ "base64 0.22.1", | |
+ "bytes", | |
+ "h2 0.4.10", | |
+ "http 1.3.1", | |
+ "http-body 1.0.1", | |
+ "http-body-util", | |
+ "hyper 1.6.0", | |
+ "hyper-timeout", | |
+ "hyper-util", | |
+ "percent-encoding", | |
+ "pin-project", | |
+ "prost", | |
+ "socket2", | |
+ "tokio", | |
+ "tokio-stream", | |
+ "tower 0.4.13", | |
+ "tower-layer", | |
+ "tower-service", | |
+ "tracing", | |
+] | |
+ | |
+[[package]] | |
+name = "tower" | |
+version = "0.4.13" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" | |
+dependencies = [ | |
+ "futures-core", | |
+ "futures-util", | |
+ "indexmap 1.9.3", | |
+ "pin-project", | |
+ "pin-project-lite", | |
+ "rand", | |
+ "slab", | |
+ "tokio", | |
+ "tokio-util", | |
+ "tower-layer", | |
+ "tower-service", | |
+ "tracing", | |
+] | |
+ | |
+[[package]] | |
+name = "tower" | |
+version = "0.5.2" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" | |
+dependencies = [ | |
+ "futures-core", | |
+ "futures-util", | |
+ "pin-project-lite", | |
+ "sync_wrapper", | |
+ "tower-layer", | |
+ "tower-service", | |
+] | |
+ | |
+[[package]] | |
+name = "tower-layer" | |
+version = "0.3.3" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" | |
+ | |
[[package]] | |
name = "tower-service" | |
version = "0.3.3" | |
@@ -2729,9 +3160,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" | |
dependencies = [ | |
"pin-project-lite", | |
+ "tracing-attributes", | |
"tracing-core", | |
] | |
+[[package]] | |
+name = "tracing-attributes" | |
+version = "0.1.28" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" | |
+dependencies = [ | |
+ "proc-macro2", | |
+ "quote", | |
+ "syn", | |
+] | |
+ | |
[[package]] | |
name = "tracing-core" | |
version = "0.1.33" | |
@@ -2739,6 +3182,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |
checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" | |
dependencies = [ | |
"once_cell", | |
+ "valuable", | |
+] | |
+ | |
+[[package]] | |
+name = "tracing-subscriber" | |
+version = "0.3.19" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" | |
+dependencies = [ | |
+ "matchers", | |
+ "once_cell", | |
+ "regex", | |
+ "sharded-slab", | |
+ "thread_local", | |
+ "tracing", | |
+ "tracing-core", | |
] | |
[[package]] | |
@@ -2752,7 +3211,7 @@ name = "turn" | |
version = "0.10.0" | |
dependencies = [ | |
"async-trait", | |
- "base64", | |
+ "base64 0.22.1", | |
"chrono", | |
"clap 3.2.25", | |
"criterion", | |
@@ -2832,6 +3291,12 @@ dependencies = [ | |
"getrandom 0.3.3", | |
] | |
+[[package]] | |
+name = "valuable" | |
+version = "0.1.1" | |
+source = "registry+https://github.com/rust-lang/crates.io-index" | |
+checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" | |
+ | |
[[package]] | |
name = "vcpkg" | |
version = "0.2.15" | |
@@ -3068,7 +3533,7 @@ dependencies = [ | |
"clap 3.2.25", | |
"crc", | |
"env_logger", | |
- "hyper", | |
+ "hyper 0.14.32", | |
"ipnet", | |
"lazy_static", | |
"log", | |
diff --git a/examples/Cargo.toml b/examples/Cargo.toml | |
index a9c54789..edee0817 100644 | |
--- a/examples/Cargo.toml | |
+++ b/examples/Cargo.toml | |
@@ -10,6 +10,7 @@ homepage = "https://webrtc.rs" | |
repository = "https://github.com/webrtc-rs/webrtc/tree/master/examples" | |
[dependencies] | |
+console-subscriber = "0.4.1" | |
[dev-dependencies] | |
diff --git a/examples/examples/data-channels-flow-control/data-channels-flow-control.rs b/examples/examples/data-channels-flow-control/data-channels-flow-control.rs | |
index f33a4119..03a56f7a 100644 | |
--- a/examples/examples/data-channels-flow-control/data-channels-flow-control.rs | |
+++ b/examples/examples/data-channels-flow-control/data-channels-flow-control.rs | |
@@ -3,6 +3,7 @@ use std::sync::Arc; | |
use std::time::{Duration, SystemTime}; | |
use bytes::Bytes; | |
+use console_subscriber; | |
use webrtc::api::interceptor_registry::register_default_interceptors; | |
use webrtc::api::media_engine::MediaEngine; | |
use webrtc::api::APIBuilder; | |
@@ -161,6 +162,7 @@ async fn create_responder() -> anyhow::Result<RTCPeerConnection> { | |
#[tokio::main] | |
async fn main() -> anyhow::Result<()> { | |
env_logger::init(); | |
+ console_subscriber::init(); | |
let requester = Arc::new(create_requester().await?); | |
let responder = Arc::new(create_responder().await?); | |
-- | |
2.39.5 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment