From b60f2962eb087646f4a4c6a61314219933edf4e2 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Tue, 24 Sep 2024 17:06:42 +0530 Subject: [PATCH] feat: Added some dep options --- Cargo.lock | 3 ++- Cargo.toml | 6 ++++-- mnn-bridge/Cargo.toml | 2 +- mnn-sync/Cargo.toml | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a43dae8..cc4d735 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -373,7 +373,7 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "mnn" -version = "0.1.0" +version = "0.2.0" dependencies = [ "anyhow", "bytemuck", @@ -403,6 +403,7 @@ dependencies = [ "flume", "mnn", "oneshot", + "tracing", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index c5dd66c..ba0cca1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,13 +9,15 @@ version = "0.2.0" edition = "2021" license = { workspace = true } -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[workspace.dependencies] +mnn = { version = "0.2.0", path = "." } +error-stack = { version = "0.5" } [dependencies] libc = "0.2" mnn-sys = { version = "0.1", path = "mnn-sys", features = [] } thiserror = "1.0" -error-stack = { version = "0.5" } +error-stack.workspace = true oneshot = "0.1" tracing = { version = "0.1.40", optional = true } dunce = "1.0.5" diff --git a/mnn-bridge/Cargo.toml b/mnn-bridge/Cargo.toml index 2a84bf4..7a180ba 100644 --- a/mnn-bridge/Cargo.toml +++ b/mnn-bridge/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = { workspace = true } [dependencies] -mnn = { version = "0.1.0", path = "..", default-features = false } +mnn = { workspace = true, default-features = false } ndarray = { version = "0.16", optional = true } # opencv = { version = "0.92.3", default-features = false, optional = true } diff --git a/mnn-sync/Cargo.toml b/mnn-sync/Cargo.toml index b9a16d6..75ad77b 100644 --- a/mnn-sync/Cargo.toml +++ b/mnn-sync/Cargo.toml @@ -5,12 +5,12 @@ edition = "2021" license.workspace = true [dependencies] -error-stack = "0.5.0" +error-stack.workspace = true flume = { version = "0.11.0", default-features = false, features = [ "eventual-fairness", "nanorand", ] } -mnn = { version = "0.1.0", path = ".." } +mnn.workspace = true oneshot = "0.1.8" tracing = { version = "0.1", optional = true }