From e53561e3b8dabc9ec80653d21c459d8f0205ad40 Mon Sep 17 00:00:00 2001 From: Enrico Marconi <31142849+UMR1352@users.noreply.github.com> Date: Tue, 26 Mar 2024 11:18:14 +0100 Subject: [PATCH] allow large result err variants (#1342) --- Cargo.toml | 3 +++ identity_core/Cargo.toml | 3 +++ identity_credential/Cargo.toml | 3 +++ identity_did/Cargo.toml | 3 +++ identity_document/Cargo.toml | 3 +++ identity_eddsa_verifier/Cargo.toml | 3 +++ identity_iota/Cargo.toml | 3 +++ identity_iota_core/Cargo.toml | 3 +++ identity_jose/Cargo.toml | 3 +++ identity_resolver/Cargo.toml | 3 +++ identity_storage/Cargo.toml | 3 +++ identity_stronghold/Cargo.toml | 3 +++ identity_verification/Cargo.toml | 3 +++ 13 files changed, 39 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d4726e0d4c..ef98ae8be8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,3 +31,6 @@ homepage = "https://www.iota.org" license = "Apache-2.0" repository = "https://github.com/iotaledger/identity.rs" rust-version = "1.65" + +[workspace.lints.clippy] +result_large_err = "allow" diff --git a/identity_core/Cargo.toml b/identity_core/Cargo.toml index 120d6dc9be..7fcba9777c 100644 --- a/identity_core/Cargo.toml +++ b/identity_core/Cargo.toml @@ -35,3 +35,6 @@ quickcheck_macros = { version = "1.0" } # RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --workspace --open all-features = true rustdoc-args = ["--cfg", "docsrs"] + +[lints] +workspace = true diff --git a/identity_credential/Cargo.toml b/identity_credential/Cargo.toml index 3d894edf19..38c65045e5 100644 --- a/identity_credential/Cargo.toml +++ b/identity_credential/Cargo.toml @@ -55,3 +55,6 @@ validator = ["dep:itertools", "dep:serde_repr", "credential", "presentation"] domain-linkage = ["validator"] domain-linkage-fetch = ["domain-linkage", "dep:reqwest", "dep:futures"] sd-jwt = ["credential", "validator", "sd-jwt-payload"] + +[lints] +workspace = true diff --git a/identity_did/Cargo.toml b/identity_did/Cargo.toml index bed6f9012a..31c636b70f 100644 --- a/identity_did/Cargo.toml +++ b/identity_did/Cargo.toml @@ -27,3 +27,6 @@ serde_json.workspace = true # RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --workspace --open all-features = true rustdoc-args = ["--cfg", "docsrs"] + +[lints] +workspace = true diff --git a/identity_document/Cargo.toml b/identity_document/Cargo.toml index bebbd8f070..6605cc8325 100644 --- a/identity_document/Cargo.toml +++ b/identity_document/Cargo.toml @@ -28,3 +28,6 @@ serde_json.workspace = true [[bench]] name = "deserialize_document" harness = false + +[lints] +workspace = true diff --git a/identity_eddsa_verifier/Cargo.toml b/identity_eddsa_verifier/Cargo.toml index 257fa5d5a4..69ba2ff005 100644 --- a/identity_eddsa_verifier/Cargo.toml +++ b/identity_eddsa_verifier/Cargo.toml @@ -18,3 +18,6 @@ iota-crypto = { version = "0.23", default-features = false, features = ["std"] } [features] ed25519 = ["iota-crypto/ed25519"] default = ["ed25519"] + +[lints] +workspace = true diff --git a/identity_iota/Cargo.toml b/identity_iota/Cargo.toml index bd5aa25125..9910b03c5e 100644 --- a/identity_iota/Cargo.toml +++ b/identity_iota/Cargo.toml @@ -69,3 +69,6 @@ sd-jwt = ["identity_credential/sd-jwt"] # RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --workspace --open all-features = true rustdoc-args = ["--cfg", "docsrs"] + +[lints] +workspace = true diff --git a/identity_iota_core/Cargo.toml b/identity_iota_core/Cargo.toml index c5fbfa1f89..6c55db6b12 100644 --- a/identity_iota_core/Cargo.toml +++ b/identity_iota_core/Cargo.toml @@ -53,3 +53,6 @@ revocation-bitmap = ["identity_credential/revocation-bitmap"] send-sync-client-ext = [] # Disables the blanket implementation of `IotaIdentityClientExt`. test = ["client"] + +[lints] +workspace = true diff --git a/identity_jose/Cargo.toml b/identity_jose/Cargo.toml index aa2a53f13a..5465f93473 100644 --- a/identity_jose/Cargo.toml +++ b/identity_jose/Cargo.toml @@ -29,3 +29,6 @@ signature = { version = "2", default-features = false } [[example]] name = "jws_encoding_decoding" test = true + +[lints] +workspace = true diff --git a/identity_resolver/Cargo.toml b/identity_resolver/Cargo.toml index bd28b248ad..76c88ca6c1 100644 --- a/identity_resolver/Cargo.toml +++ b/identity_resolver/Cargo.toml @@ -40,3 +40,6 @@ default = ["revocation-bitmap", "iota"] revocation-bitmap = ["identity_credential/revocation-bitmap", "identity_iota_core?/revocation-bitmap"] # Enables the IOTA integration for the resolver. iota = ["dep:identity_iota_core"] + +[lints] +workspace = true diff --git a/identity_storage/Cargo.toml b/identity_storage/Cargo.toml index 75086ccab9..d0f62b08c2 100644 --- a/identity_storage/Cargo.toml +++ b/identity_storage/Cargo.toml @@ -42,3 +42,6 @@ memstore = ["dep:tokio", "dep:rand", "dep:iota-crypto"] send-sync-storage = [] # Implements the JwkStorageDocumentExt trait for IotaDocument iota-document = ["dep:identity_iota_core"] + +[lints] +workspace = true diff --git a/identity_stronghold/Cargo.toml b/identity_stronghold/Cargo.toml index e45a6d4eb7..dccb20b695 100644 --- a/identity_stronghold/Cargo.toml +++ b/identity_stronghold/Cargo.toml @@ -30,3 +30,6 @@ tokio = { version = "1.29.0", default-features = false, features = ["macros", "s default = [] # Enables `Send` + `Sync` bounds for the trait implementations on `StrongholdStorage`. send-sync-storage = ["identity_storage/send-sync-storage"] + +[lints] +workspace = true diff --git a/identity_verification/Cargo.toml b/identity_verification/Cargo.toml index e400aeebeb..0e19f1fadf 100644 --- a/identity_verification/Cargo.toml +++ b/identity_verification/Cargo.toml @@ -18,3 +18,6 @@ strum.workspace = true thiserror.workspace = true [dev-dependencies] + +[lints] +workspace = true