Skip to content

Commit

Permalink
reactivated 'identity_resolver' dependency for feature iota-client on…
Browse files Browse the repository at this point in the history
… non-wasm platforms
  • Loading branch information
chrisgitiota committed Jan 17, 2025
1 parent 8fd0dd6 commit 3fe3a33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions identity_iota/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ identity_credential = { version = "=1.4.0", path = "../identity_credential", fea
identity_did = { version = "=1.4.0", path = "../identity_did", default-features = false }
identity_document = { version = "=1.4.0", path = "../identity_document", default-features = false }
identity_iota_core = { version = "=1.4.0", path = "../identity_iota_core", default-features = false }
identity_resolver = { version = "=1.4.0", path = "../identity_resolver", default-features = false, optional = true }
identity_storage = { version = "=1.4.0", path = "../identity_storage", default-features = false, features = ["iota-document"] }
identity_verification = { version = "=1.4.0", path = "../identity_verification", default-features = false }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
identity_iota_interaction = { version = "=1.4.0", path = "../identity_iota_interaction" }
identity_resolver = { version = "=1.4.0", path = "../identity_resolver", default-features = false, optional = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
identity_iota_interaction = { version = "=1.4.0", path = "../identity_iota_interaction", default-features = false }
Expand All @@ -41,7 +41,7 @@ default = ["revocation-bitmap", "iota-client", "send-sync", "resolver"]
# Enables the IOTA client integration, and the `DidResolutionHandler` trait.
iota-client = [
"identity_iota_core/iota-client",
# "identity_resolver/iota",
"identity_resolver?/iota",
"identity_storage/storage-signer",
]

Expand Down
6 changes: 3 additions & 3 deletions identity_iota/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ pub mod prelude {
pub use identity_iota_core::IotaDID;
pub use identity_iota_core::IotaDocument;

#[cfg(feature = "resolver")]
#[cfg(all(feature = "resolver", not(target_arch = "wasm32")))]
#[cfg_attr(docsrs, doc(cfg(feature = "resolver")))]
pub use identity_iota_core::DidResolutionHandler;

#[cfg(feature = "resolver")]
#[cfg(all(feature = "resolver", not(target_arch = "wasm32")))]
#[cfg_attr(docsrs, doc(cfg(feature = "resolver")))]
pub use identity_resolver::Resolver;
}

#[cfg(feature = "resolver")]
#[cfg(all(feature = "resolver", not(target_arch = "wasm32")))]
#[cfg_attr(docsrs, doc(cfg(feature = "resolver")))]
pub mod resolver {
//! DID resolution utilities
Expand Down

0 comments on commit 3fe3a33

Please sign in to comment.