From afc591079fdcfce8a2747ee492e7242890d82b76 Mon Sep 17 00:00:00 2001 From: ivan770 Date: Mon, 7 Oct 2024 09:57:08 -0400 Subject: [PATCH] Cleanup ssi-json-ld dependencies --- crates/json-ld/Cargo.toml | 10 +--------- crates/json-ld/src/lib.rs | 8 ++++---- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/crates/json-ld/Cargo.toml b/crates/json-ld/Cargo.toml index 05ab91db3..7e3f463ba 100644 --- a/crates/json-ld/Cargo.toml +++ b/crates/json-ld/Cargo.toml @@ -10,25 +10,17 @@ documentation = "https://docs.rs/ssi-json-ld/" [dependencies] thiserror.workspace = true -async-std = { version = "1.9", features = ["attributes"] } json-ld = { version = "0.21.1", features = ["serde"] } iref.workspace = true static-iref.workspace = true -rdf-types.workspace = true -xsd-types.workspace = true -locspan.workspace = true json-syntax = { workspace = true, features = ["serde"] } linked-data.workspace = true -futures = "0.3" lazy_static = "1.4" combination = "0.1" ssi-contexts.workspace = true -ssi-crypto.workspace = true ssi-rdf.workspace = true serde.workspace = true [dev-dependencies] -difference = "2.0" -nquads-syntax.workspace = true serde_json.workspace = true -tokio = { version = "1.27.0", features = ["rt", "macros"] } \ No newline at end of file +tokio = { version = "1.27.0", features = ["rt", "macros"] } diff --git a/crates/json-ld/src/lib.rs b/crates/json-ld/src/lib.rs index 9554881e2..327275029 100644 --- a/crates/json-ld/src/lib.rs +++ b/crates/json-ld/src/lib.rs @@ -243,7 +243,7 @@ impl WithContext { mod tests { use crate::{CompactJsonLd, ContextLoader, Expandable}; - #[async_std::test] + #[tokio::test] async fn accept_defined_type() { let input = CompactJsonLd(json_syntax::json!({ "@context": { "Defined": "http://example.org/#Defined" }, @@ -253,7 +253,7 @@ mod tests { assert!(input.expand(&ContextLoader::default()).await.is_ok()); } - #[async_std::test] + #[tokio::test] async fn reject_undefined_type() { let input = CompactJsonLd(json_syntax::json!({ "@type": ["Undefined"] @@ -262,7 +262,7 @@ mod tests { assert!(input.expand(&ContextLoader::default()).await.is_err()); } - #[async_std::test] + #[tokio::test] async fn accept_defined_property() { let input = CompactJsonLd(json_syntax::json!({ "@context": { "defined": "http://example.org/#defined" }, @@ -272,7 +272,7 @@ mod tests { assert!(input.expand(&ContextLoader::default()).await.is_ok()); } - #[async_std::test] + #[tokio::test] async fn reject_undefined_property() { let input = CompactJsonLd(json_syntax::json!({ "undefined": "foo"