diff options
author | Bilal Elmoussaoui <belmouss@redhat.com> | 2023-07-06 16:43:37 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-07-06 17:50:49 +0300 |
commit | dd2d7d9215494cdaac4a361b9fea8fdf01742153 (patch) | |
tree | ee335254ac492f376dbc71abb5d267b5c8f16ac6 /text | |
parent | 2cc98bf410f687a1779edb86dd259f377cca1c7b (diff) |
Use re-exported once_cell
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1268>
Diffstat (limited to 'text')
-rw-r--r-- | text/ahead/Cargo.toml | 1 | ||||
-rw-r--r-- | text/ahead/src/textahead/imp.rs | 2 | ||||
-rw-r--r-- | text/json/Cargo.toml | 1 | ||||
-rw-r--r-- | text/json/src/jsongstenc/imp.rs | 2 | ||||
-rw-r--r-- | text/json/src/jsongstparse/imp.rs | 2 | ||||
-rw-r--r-- | text/regex/Cargo.toml | 1 | ||||
-rw-r--r-- | text/regex/src/gstregex/imp.rs | 2 | ||||
-rw-r--r-- | text/wrap/Cargo.toml | 1 | ||||
-rw-r--r-- | text/wrap/src/gsttextwrap/imp.rs | 2 |
9 files changed, 5 insertions, 9 deletions
diff --git a/text/ahead/Cargo.toml b/text/ahead/Cargo.toml index c3075d5d1..c6d4e47d4 100644 --- a/text/ahead/Cargo.toml +++ b/text/ahead/Cargo.toml @@ -10,7 +10,6 @@ rust-version = "1.66" [dependencies] gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" } -once_cell = "1.0" [lib] name = "gsttextahead" diff --git a/text/ahead/src/textahead/imp.rs b/text/ahead/src/textahead/imp.rs index 90c937eaa..2d60721f1 100644 --- a/text/ahead/src/textahead/imp.rs +++ b/text/ahead/src/textahead/imp.rs @@ -9,7 +9,7 @@ use std::collections::VecDeque; use std::sync::{Mutex, MutexGuard}; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use gst::glib; use gst::prelude::*; diff --git a/text/json/Cargo.toml b/text/json/Cargo.toml index 27b273fa3..00f4af3ff 100644 --- a/text/json/Cargo.toml +++ b/text/json/Cargo.toml @@ -9,7 +9,6 @@ description = "GStreamer JSON Plugin" repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs" [dependencies] -once_cell = "1.0" serde = { version = "1.0", features = ["derive"] } serde_json = { version = "1.0", features = ["raw_value"] } diff --git a/text/json/src/jsongstenc/imp.rs b/text/json/src/jsongstenc/imp.rs index 42e870215..a0c25255f 100644 --- a/text/json/src/jsongstenc/imp.rs +++ b/text/json/src/jsongstenc/imp.rs @@ -10,7 +10,7 @@ use gst::glib; use gst::prelude::*; use gst::subclass::prelude::*; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use std::sync::Mutex; diff --git a/text/json/src/jsongstparse/imp.rs b/text/json/src/jsongstparse/imp.rs index b15bb739f..0d48277b8 100644 --- a/text/json/src/jsongstparse/imp.rs +++ b/text/json/src/jsongstparse/imp.rs @@ -10,7 +10,7 @@ use gst::glib; use gst::prelude::*; use gst::subclass::prelude::*; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use std::cmp; use std::sync::{Mutex, MutexGuard}; diff --git a/text/regex/Cargo.toml b/text/regex/Cargo.toml index ffd4834e8..5b8a56f8f 100644 --- a/text/regex/Cargo.toml +++ b/text/regex/Cargo.toml @@ -9,7 +9,6 @@ description = "GStreamer Regular Expression Plugin" repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs" [dependencies] -once_cell = "1.0" regex = "1.5" [dependencies.gst] diff --git a/text/regex/src/gstregex/imp.rs b/text/regex/src/gstregex/imp.rs index bfe7987d7..98e26a579 100644 --- a/text/regex/src/gstregex/imp.rs +++ b/text/regex/src/gstregex/imp.rs @@ -14,7 +14,7 @@ use regex::Regex; use std::default::Default; use std::sync::Mutex; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { gst::DebugCategory::new( diff --git a/text/wrap/Cargo.toml b/text/wrap/Cargo.toml index cb7622712..e40d5a018 100644 --- a/text/wrap/Cargo.toml +++ b/text/wrap/Cargo.toml @@ -9,7 +9,6 @@ description = "GStreamer Text Wrap Plugin" repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs" [dependencies] -once_cell = "1.0" textwrap = { version = "0.16", features = ["hyphenation"] } hyphenation = "0.8" diff --git a/text/wrap/src/gsttextwrap/imp.rs b/text/wrap/src/gsttextwrap/imp.rs index de98e2b8e..685ca424d 100644 --- a/text/wrap/src/gsttextwrap/imp.rs +++ b/text/wrap/src/gsttextwrap/imp.rs @@ -16,7 +16,7 @@ use std::io; use std::mem; use std::sync::Mutex; -use once_cell::sync::Lazy; +use gst::glib::once_cell::sync::Lazy; use hyphenation::{Load, Standard}; |