Skip to content

Commit

Permalink
Cargo.toml: format the toml file
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
  • Loading branch information
Xynnn007 committed Jan 17, 2025
1 parent 4a83636 commit 125cad2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 13 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions attestation-agent/kbs_protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ 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
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

Expand All @@ -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 }
Expand All @@ -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"]
Expand Down
40 changes: 32 additions & 8 deletions confidential-data-hub/hub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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 }
Expand All @@ -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"]
Expand All @@ -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"]

Expand Down

0 comments on commit 125cad2

Please sign in to comment.