Skip to content

Commit

Permalink
Update gstreamer-rs and some other deps (#24)
Browse files Browse the repository at this point in the history
* update to gstreamer-rs 0.23

* update to tracing-tracy 0.11

* update to thread_local 1.1

* fix clippy warning about QDataTracingSpan field not being used
  • Loading branch information
gdesmott authored Jul 23, 2024
1 parent e0bcae7 commit 81b25e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ libc = "0.2.69"
once_cell = "1.8.0"
tracing = "0.1.0"
tracing-core = "0.1.17"
gstreamer = "0.22"
thread_local = "1.0.0"
gstreamer = "0.23"
thread_local = "1.1"
tracing-chrome = "0.7.0"
tracing-subscriber = "0.3"

[dev-dependencies]
tracing = "0.1.0"
tracing-tracy = "0.10"
tracing-tracy = "0.11"

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "tracing_gstreamer_docs"]
Expand Down
1 change: 1 addition & 0 deletions src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ fn span_quark() -> &'static gstreamer::glib::Quark {
//
// We’re still going to be storing `tracing::Span` within the objects directly, because that’s
// just more convenient.
#[allow(dead_code)]
struct QDataTracingSpan(tracing::Span);

ELEMENT_SPAN_QUARK.get_or_init(|| {
Expand Down
8 changes: 4 additions & 4 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ fn test_with_object() {
"test_with_object",
move || {
let cat = g::DebugCategory::new("test_with_object", g::DebugColorFlags::empty(), None);
g::error!(cat, obj: &p, "with object");
g::error!(cat, obj = &p, "with object");
},
vec![Expect::GstEvent(GstEvent {
message: "with object",
Expand Down Expand Up @@ -344,7 +344,7 @@ fn test_with_upcast_object() {
move || {
let cat =
g::DebugCategory::new("test_with_upcast_object", g::DebugColorFlags::empty(), None);
g::error!(cat, obj: &obj, "with upcast object");
g::error!(cat, obj = &obj, "with upcast object");
},
vec![Expect::GstEvent(GstEvent {
message: "with upcast object",
Expand Down Expand Up @@ -375,7 +375,7 @@ fn test_with_pad() {
"test_with_pad",
move || {
let cat = g::DebugCategory::new("test_pad_cat", g::DebugColorFlags::empty(), None);
g::error!(cat, obj: &pad, "with pad object");
g::error!(cat, obj = &pad, "with pad object");
},
vec![Expect::GstEvent(GstEvent {
message: "with pad object",
Expand Down Expand Up @@ -502,7 +502,7 @@ fn test_user_span() {
unsafe { attach_span(&p, span) };

let cat = g::DebugCategory::new("test_user_span", g::DebugColorFlags::empty(), None);
g::error!(cat, obj: &p, "with object");
g::error!(cat, obj = &p, "with object");
},
vec![Expect::GstEvent(GstEvent {
message: "with object",
Expand Down

0 comments on commit 81b25e1

Please sign in to comment.