From c57b252ce5ac26500b9c4b6d7a3d5bdb938b3318 Mon Sep 17 00:00:00 2001 From: "Charles E. Lehner" Date: Wed, 2 Mar 2022 12:53:06 -0500 Subject: [PATCH] Use default ssi/ring in DID method crates --- Cargo.toml | 1 - did-ethr/Cargo.toml | 3 +++ did-ion/Cargo.toml | 1 + did-key/Cargo.toml | 1 + did-onion/Cargo.toml | 1 + did-pkh/Cargo.toml | 3 +++ did-web/Cargo.toml | 3 +++ 7 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 22170d145..8f4f830d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -116,7 +116,6 @@ members = [ blake2_old = { package = "blake2", version = "0.8" } # for bbs doctest uuid = { version = "0.8", features = ["v4", "serde"] } difference = "2.0" -did-method-key = { path = "./did-key" } tokio = { version = "1.0", features = ["macros"] } hyper = { version = "0.14", features = ["server", "http1", "stream"] } diff --git a/did-ethr/Cargo.toml b/did-ethr/Cargo.toml index d39b99b17..9137f1895 100644 --- a/did-ethr/Cargo.toml +++ b/did-ethr/Cargo.toml @@ -11,6 +11,9 @@ repository = "https://github.com/spruceid/ssi/" homepage = "https://github.com/spruceid/ssi/tree/main/did-ethr/" documentation = "https://docs.rs/did-ethr/" +[features] +default = ["ssi/ring"] + [dependencies] ssi = { version = "0.4", path = "../", default-features = false, features = ["secp256k1", "keccak"] } chrono = { version = "0.4", features = ["serde"] } diff --git a/did-ion/Cargo.toml b/did-ion/Cargo.toml index 142561046..e04dd5999 100644 --- a/did-ion/Cargo.toml +++ b/did-ion/Cargo.toml @@ -12,6 +12,7 @@ homepage = "https://github.com/spruceid/ssi/tree/main/did-ion/" documentation = "https://docs.rs/did-ion/" [features] +default = ["ssi/ring"] [dependencies] ssi = { version = "0.4", path = "../", default-features = false, features = ["http-did", "secp256k1"] } diff --git a/did-key/Cargo.toml b/did-key/Cargo.toml index 736f9765d..aa2851345 100644 --- a/did-key/Cargo.toml +++ b/did-key/Cargo.toml @@ -12,6 +12,7 @@ homepage = "https://github.com/spruceid/ssi/tree/main/did-key/" documentation = "https://docs.rs/did-key/" [features] +default = ["ssi/ring"] secp256k1 = ["k256", "ssi/secp256k1"] secp256r1 = ["p256", "ssi/secp256r1"] diff --git a/did-onion/Cargo.toml b/did-onion/Cargo.toml index 32a318095..e977b918c 100644 --- a/did-onion/Cargo.toml +++ b/did-onion/Cargo.toml @@ -11,6 +11,7 @@ homepage = "https://github.com/spruceid/ssi/tree/main/did-onion/" documentation = "https://docs.rs/did-onion/" [features] +default = ["ssi/ring"] tor-tests = [] [dependencies] diff --git a/did-pkh/Cargo.toml b/did-pkh/Cargo.toml index de8ff13b4..604dc8d28 100644 --- a/did-pkh/Cargo.toml +++ b/did-pkh/Cargo.toml @@ -11,6 +11,9 @@ repository = "https://github.com/spruceid/ssi/" homepage = "https://github.com/spruceid/ssi/tree/main/did-pkh/" documentation = "https://docs.rs/did-pkh/" +[features] +default = ["ssi/ring"] + [dependencies] ssi = { version = "0.4", path = "../", default-features = false, features = ["secp256k1", "keccak-hash", "secp256r1", "ripemd160"] } chrono = { version = "0.4", features = ["serde"] } diff --git a/did-web/Cargo.toml b/did-web/Cargo.toml index 02add813f..f3e89bd60 100644 --- a/did-web/Cargo.toml +++ b/did-web/Cargo.toml @@ -11,6 +11,9 @@ repository = "https://github.com/spruceid/ssi/" homepage = "https://github.com/spruceid/ssi/tree/main/did-web/" documentation = "https://docs.rs/did-web/" +[features] +default = ["ssi/ring"] + [dependencies] ssi = { version = "0.4", path = "../", default-features = false } async-trait = "0.1"