Skip to content

Commit

Permalink
Cleanup ssi-json-ld dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan770 committed Oct 7, 2024
1 parent d031802 commit afc5910
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
10 changes: 1 addition & 9 deletions crates/json-ld/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
tokio = { version = "1.27.0", features = ["rt", "macros"] }
8 changes: 4 additions & 4 deletions crates/json-ld/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl<T> WithContext<T> {
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" },
Expand All @@ -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"]
Expand All @@ -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" },
Expand All @@ -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"
Expand Down

0 comments on commit afc5910

Please sign in to comment.