From 125cad21d486e85cbae21976787085c4975f85ac Mon Sep 17 00:00:00 2001 From: Xynnn007 Date: Mon, 6 Jan 2025 15:37:04 +0800 Subject: [PATCH] Cargo.toml: format the toml file Signed-off-by: Xynnn007 --- Cargo.toml | 4 ++- attestation-agent/kbs_protocol/Cargo.toml | 8 ++--- confidential-data-hub/hub/Cargo.toml | 40 ++++++++++++++++++----- 3 files changed, 39 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9e81cc55d..e54ea94aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,9 @@ ctr = "0.9.2" env_logger = "0.11.6" hex = "0.4.3" hmac = "0.12.1" -jwt-simple = { version = "0.12", default-features = false, features = ["pure-rust"] } +jwt-simple = { version = "0.12", default-features = false, features = [ + "pure-rust", +] } kbs-types = "0.7.0" log = "0.4.25" nix = "0.29" diff --git a/attestation-agent/kbs_protocol/Cargo.toml b/attestation-agent/kbs_protocol/Cargo.toml index 667969a72..98837421d 100644 --- a/attestation-agent/kbs_protocol/Cargo.toml +++ b/attestation-agent/kbs_protocol/Cargo.toml @@ -16,7 +16,7 @@ env_logger = { workspace = true, optional = true } jwt-simple.workspace = true kbs-types.workspace = true log.workspace = true -protobuf = { workspace = true, optional = true} +protobuf = { workspace = true, optional = true } reqwest = { workspace = true, features = ["cookies", "json"], optional = true } resource_uri.path = "../deps/resource_uri" serde.workspace = true @@ -24,7 +24,7 @@ serde_json.workspace = true sha2.workspace = true thiserror.workspace = true tokio.workspace = true -ttrpc = { workspace = true, optional = true} +ttrpc = { workspace = true, optional = true } url.workspace = true zeroize.workspace = true @@ -33,7 +33,7 @@ rstest.workspace = true serial_test.workspace = true tempfile.workspace = true testcontainers.workspace = true -tokio = { workspace = true, features = [ "rt", "macros", "fs", "process" ]} +tokio = { workspace = true, features = ["rt", "macros", "fs", "process"] } [build-dependencies] ttrpc-codegen = { workspace = true, optional = true } @@ -58,7 +58,7 @@ az-tdx-vtpm-attester = ["attester/az-tdx-vtpm-attester"] snp-attester = ["attester/snp-attester"] csv-attester = ["attester/csv-attester"] cca-attester = ["attester/cca-attester"] -se-attester = ["attester/se-attester"] +se-attester = ["attester/se-attester"] rust-crypto = ["reqwest/rustls-tls", "crypto/rust-crypto"] openssl = ["reqwest/native-tls-vendored", "crypto/openssl"] diff --git a/confidential-data-hub/hub/Cargo.toml b/confidential-data-hub/hub/Cargo.toml index 817b5876f..fc9c96211 100644 --- a/confidential-data-hub/hub/Cargo.toml +++ b/confidential-data-hub/hub/Cargo.toml @@ -39,15 +39,21 @@ base64.workspace = true bincode = { workspace = true, optional = true } cfg-if = { workspace = true, optional = true } chrono = { workspace = true, optional = true } -clap = { workspace = true, features = [ "derive" ], optional = true } +clap = { workspace = true, features = ["derive"], optional = true } config = { workspace = true, optional = true } const_format.workspace = true crypto.path = "../../attestation-agent/deps/crypto" -ehsm_client = {git = "https://github.com/intel/ehsm", rev = "3454cac66b968a593c3edc43410c0b52416bbd3e", optional = true } +ehsm_client = { git = "https://github.com/intel/ehsm", rev = "3454cac66b968a593c3edc43410c0b52416bbd3e", optional = true } env_logger = { workspace = true, optional = true } hex = { workspace = true, optional = true } -image-rs = { path = "../../image-rs", default-features = false, features = ["kata-cc-rustls-tls"] } -kbs_protocol = { path = "../../attestation-agent/kbs_protocol", default-features = false, features = ["passport", "aa_token", "openssl"], optional = true } +image-rs = { path = "../../image-rs", default-features = false, features = [ + "kata-cc-rustls-tls", +] } +kbs_protocol = { path = "../../attestation-agent/kbs_protocol", default-features = false, features = [ + "passport", + "aa_token", + "openssl", +], optional = true } log.workspace = true p12 = { version = "0.6.3", optional = true } prost = { workspace = true, optional = true } @@ -63,7 +69,14 @@ sha2 = { workspace = true, optional = true } strum = { workspace = true, features = ["derive"] } tempfile = { workspace = true, optional = true } thiserror.workspace = true -tokio = { workspace = true, features = [ "fs", "macros", "io-util", "process", "rt-multi-thread", "sync" ] } +tokio = { workspace = true, features = [ + "fs", + "macros", + "io-util", + "process", + "rt-multi-thread", + "sync", +] } toml.workspace = true tonic = { workspace = true, optional = true } ttrpc = { workspace = true, features = ["async"], optional = true } @@ -84,13 +97,24 @@ nix.workspace = true rstest.workspace = true serial_test.workspace = true tempfile.workspace = true -tokio = { workspace = true, features = ["rt", "macros" ] } +tokio = { workspace = true, features = ["rt", "macros"] } [features] default = ["aliyun", "kbs", "bin", "ttrpc", "grpc", "cli"] # support aliyun stacks (KMS, ..) -aliyun = ["chrono", "hex", "p12", "prost", "reqwest/rustls-tls", "sha2", "tempfile", "tonic", "url", "yasna"] +aliyun = [ + "chrono", + "hex", + "p12", + "prost", + "reqwest/rustls-tls", + "sha2", + "tempfile", + "tonic", + "url", + "yasna", +] # support coco-KBS to provide confidential resources kbs = ["kbs_protocol"] @@ -102,7 +126,7 @@ sev = ["bincode", "dep:sev", "prost", "tonic", "uuid"] ehsm = ["ehsm_client"] # Binary RPC type -bin = [ "anyhow", "cfg-if", "clap", "config", "env_logger", "serde" ] +bin = ["anyhow", "cfg-if", "clap", "config", "env_logger", "serde"] ttrpc = ["dep:ttrpc", "protobuf", "ttrpc-codegen", "tokio/signal"] grpc = ["prost", "tonic", "tokio/signal"]