From 782276120208646f6b686b0fc04a4fa0e6385e1b Mon Sep 17 00:00:00 2001 From: wmedrano Date: Sat, 14 Jan 2023 22:10:41 -0800 Subject: [PATCH] Implement send and sync for features. --- Cargo.toml | 2 +- src/features/mod.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3f324c6..917d16c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" name = "livi" readme = "README.md" repository = "https://github.com/wmedrano/livi-rs" -version = "0.6.0" +version = "0.6.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/features/mod.rs b/src/features/mod.rs index 76724c3..0fed72e 100644 --- a/src/features/mod.rs +++ b/src/features/mod.rs @@ -89,6 +89,9 @@ pub struct Features { keep_worker_thread_alive: Arc, } +unsafe impl Send for Features {} +unsafe impl Sync for Features {} + impl Features { /// Get the URIs for all supported features. pub fn supported_features() -> HashSet<&'static str> {