From e5021f9ffefb01328727c5f79f43bdf16a72c91e Mon Sep 17 00:00:00 2001 From: sebasti810 Date: Tue, 17 Dec 2024 11:34:35 +0100 Subject: [PATCH] fix: udeps --- Cargo.lock | 1 - node-uniffi/Cargo.toml | 8 +++++--- node/Cargo.toml | 2 +- types/Cargo.toml | 2 -- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 75ca3570..a9bd83bf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -942,7 +942,6 @@ dependencies = [ "tendermint-proto", "thiserror 1.0.69", "time", - "uniffi", "wasm-bindgen-test", ] diff --git a/node-uniffi/Cargo.toml b/node-uniffi/Cargo.toml index 05c5333e..57b77bbc 100644 --- a/node-uniffi/Cargo.toml +++ b/node-uniffi/Cargo.toml @@ -13,12 +13,14 @@ path = "./src/bin/uniffi-bindgen.rs" [dependencies] lumina-node = { workspace = true, features = ["uniffi"] } -celestia-types = { workspace = true, features = ["uniffi"] } +celestia-types.workspace = true tendermint.workspace = true libp2p.workspace = true redb = "2.1.1" thiserror = "1.0.61" serde_json = "1.0.64" -directories = "5.0.1" uniffi = { version = "0.28.3", features = ["bindgen", "tokio", "cli"] } -tokio = { version = "1.38.0", features = ["macros", "sync"] } \ No newline at end of file +tokio = { version = "1.38.0", features = ["macros", "sync"] } + +[target.'cfg(target_os = "ios")'.dependencies] +directories = "5.0.1" \ No newline at end of file diff --git a/node/Cargo.toml b/node/Cargo.toml index 6cf8af2e..1a36d7e3 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -116,7 +116,7 @@ tempfile = "3.10.1" [features] test-utils = ["celestia-types/test-utils"] -uniffi = ["dep:uniffi", "celestia-types/uniffi"] +uniffi = ["dep:uniffi"] [package.metadata.docs.rs] features = ["test-utils"] diff --git a/types/Cargo.toml b/types/Cargo.toml index dc18003d..3084e80e 100644 --- a/types/Cargo.toml +++ b/types/Cargo.toml @@ -40,7 +40,6 @@ serde_repr = { version = "0.1.19", optional = true } sha2 = "0.10.6" thiserror = "1.0.61" time = { version = "0.3.36", default-features = false } -uniffi = { version = "0.28.0", optional = true } [dev-dependencies] ed25519-consensus = "2.1.0" @@ -63,7 +62,6 @@ wasm-bindgen = ["time/wasm-bindgen"] [package.metadata.docs.rs] features = ["p2p", "test-utils"] rustdoc-args = ["--cfg", "docsrs"] -uniffi = ["dep:uniffi"] [package.metadata.cargo-udeps.ignore] development = ["indoc"]