Merge pull request #815 from thesimplekid/fix_wallet_sig

fix: signatory is not required for wallet
This commit is contained in:
thesimplekid
2025-06-15 08:21:53 +01:00
committed by GitHub
3 changed files with 8 additions and 3 deletions

View File

@@ -2,5 +2,10 @@ fn main() {
println!("cargo:rerun-if-changed=src/proto/signatory.proto");
#[cfg(feature = "grpc")]
tonic_build::compile_protos("proto/signatory.proto").unwrap();
tonic_build::configure()
.protoc_arg("--experimental_allow_proto3_optional")
.type_attribute(".", "#[allow(missing_docs)]")
.field_attribute(".", "#[allow(missing_docs)]")
.compile_protos(&["src/proto/signatory.proto"], &["src/proto"])
.unwrap();
}

View File

@@ -13,7 +13,7 @@ license.workspace = true
[features]
default = ["mint", "wallet", "auth"]
wallet = ["dep:reqwest", "cdk-common/wallet"]
mint = ["dep:futures", "dep:reqwest", "cdk-common/mint"]
mint = ["dep:futures", "dep:reqwest", "cdk-common/mint", "cdk-signatory"]
auth = ["dep:jsonwebtoken", "cdk-common/auth", "cdk-common/auth"]
# We do not commit to a MSRV with swagger enabled
swagger = ["mint", "dep:utoipa", "cdk-common/swagger"]
@@ -55,7 +55,7 @@ tokio = { workspace = true, features = [
"sync",
] }
getrandom = { version = "0.2" }
cdk-signatory = { workspace = true, features = ["grpc"] }
cdk-signatory = { workspace = true, features = ["grpc"], optional = true }
tokio-tungstenite = { workspace = true, features = [
"rustls",
"rustls-tls-native-roots",