net/quinn: Enable log feature

This is required if and when we do need to capture logs from quinn for
debugging.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1634>
This commit is contained in:
Sanchayan Maity 2024-11-13 21:22:59 +05:30 committed by GStreamer Marge Bot
parent 324f3531be
commit 5bf44b6187
3 changed files with 5 additions and 2 deletions

1
Cargo.lock generated
View file

@ -2846,6 +2846,7 @@ version = "0.14.0-alpha.1"
dependencies = [ dependencies = [
"async-channel", "async-channel",
"bytes", "bytes",
"env_logger",
"futures", "futures",
"glib", "glib",
"gst-plugin-version-helper", "gst-plugin-version-helper",

View file

@ -16,8 +16,8 @@ gst.workspace = true
gst-base = { workspace = true, features = ["v1_22"] } gst-base = { workspace = true, features = ["v1_22"] }
tokio = { version = "1.36.0", default-features = false, features = ["time", "rt-multi-thread", "macros"] } tokio = { version = "1.36.0", default-features = false, features = ["time", "rt-multi-thread", "macros"] }
futures = "0.3.30" futures = "0.3.30"
quinn = { version = "0.11.5", default-features = false, features = ["ring", "rustls", "runtime-tokio"] } quinn = { version = "0.11.5", default-features = false, features = ["ring", "rustls", "runtime-tokio", "log"] }
quinn-proto ={ version = "0.11.8", default-features = false, features = ["rustls"] } quinn-proto ={ version = "0.11.8", default-features = false, features = ["rustls", "log"] }
rustls = { version = "0.23", default-features = false, features = ["std"] } rustls = { version = "0.23", default-features = false, features = ["std"] }
rustls-pemfile = "2" rustls-pemfile = "2"
rustls-pki-types = "1" rustls-pki-types = "1"
@ -26,6 +26,7 @@ bytes = "1.5.0"
thiserror = "2" thiserror = "2"
async-channel = "2.3" async-channel = "2.3"
itertools = "0.12" itertools = "0.12"
env_logger = "0.11"
[dev-dependencies] [dev-dependencies]
gst-check = { workspace = true, features = ["v1_20"] } gst-check = { workspace = true, features = ["v1_20"] }

View file

@ -29,6 +29,7 @@ mod quinnquicsrc;
mod utils; mod utils;
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
env_logger::init();
#[cfg(feature = "doc")] #[cfg(feature = "doc")]
{ {
common::QuinnQuicRole::static_type().mark_as_plugin_api(gst::PluginAPIFlags::empty()); common::QuinnQuicRole::static_type().mark_as_plugin_api(gst::PluginAPIFlags::empty());