diff --git a/Cargo.toml b/Cargo.toml index ce07a86f..2871672e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,21 +7,63 @@ version = "0.2.0" edition = "2021" license = "AGPL-3.0" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[workspace.dependencies] +# Internal dependencies +attestation = { path = "crates/attestation", version = "0.2.0" } +steward-server = { path = "crates/server", version = "0.2.0" } -[dependencies] +# External dependencies anyhow = { version = "^1.0.66", default-features = false } -attestation = { path = "crates/attestation", features = ["sgx", "snp"] } -axum = { version = "^0.5.17", features = ["headers"], default-features = false } -clap = { version = "^4.0.29", features = ["help", "usage", "error-context", "std", "derive", "env"], default-features = false } +axum = { version = "^0.5.17", default-features = false } +clap = { version = "^4.0.29", default-features = false } confargs = { version = "^0.1.3", default-features = false } -steward-server = { path = "crates/server" } -tokio = { version = "^1.23.0", features = ["rt", "macros"], default-features = false } -tower-http = { version = "^0.3.5", features = ["trace"], default-features = false } +const-oid = { version = "0.9.1", default-features = false } +der = { version = "0.6", default-features = false } +flagset = { version = "0.4.3", default-features = false } +hex = { version = "0.4.3", default-features = false } +http = { version = "^0.2.6", default-features = false } +hyper = { git = "https://github.com/rjzak/hyper", branch = "wasi_wip", default-features = false } +memoffset = { version = "0.7.1", default-features = false } +p256 = { version = "0.11", default-features = false } +p384 = { version = "0.11", default-features = false } +rand = { version = "0.8", default-features = false } +rsa = {version = "0.7.2", default-features = false } +rstest = { version = "0.16", default-features = false } +rustls-pemfile = {version = "1.0.1", default-features = false } +sec1 = { version = "0.3", default-features = false } +semver = { version = "1.0", default-features = false } +serde = { version = "1.0", default-features = false } +sgx = { version = "0.6.0", default-features = false } +sha2 = { version = "^0.10.2", default-features = false } +signature = {version = "1.6", default-features = false } +spki = { version = "0.6", default-features = false } +testaso = { version = "0.1", default-features = false } +tokio = { version = "^1.23.0", default-features = false } +toml = { version = "0.5", default-features = false } +tower = { version = "^0.4.11", default-features = false } +tower-http = { version = "^0.3.5", default-features = false } tracing = { version = "^0.1.29", default-features = false } +tracing-subscriber = { version="^0.3.15", default-features = false } +uuid = { version = "^1.2.2", default-features = false } +x509 = { version = "0.1", package = "x509-cert", default-features = false } +zeroize = { version = "^1.5.2", default-features = false } + +[dependencies] +# Internal dependencies +attestation = { workspace = true } +steward-server = { workspace = true } + +# External dependencies +anyhow = { workspace = true } +axum = { workspace = true, features = ["headers"] } +clap = { workspace = true, features = ["help", "usage", "error-context", "std", "derive", "env"] } +confargs = { workspace = true } +tokio = { workspace = true, features = ["rt", "macros"] } +tower-http = { workspace = true, features = ["trace"] } +tracing = { workspace = true } [target.'cfg(not(target_os = "wasi"))'.dependencies] -tokio = { version = "^1.23.0", features = ["rt-multi-thread", "macros"], default-features = false } +tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } [profile.release] incremental = false diff --git a/crates/attestation/Cargo.toml b/crates/attestation/Cargo.toml index 2061205a..717bcbae 100644 --- a/crates/attestation/Cargo.toml +++ b/crates/attestation/Cargo.toml @@ -11,26 +11,26 @@ sgx = ["dep:sgx", "dep:rustls-pemfile"] snp = ["dep:flagset", "dep:semver"] [dependencies] -anyhow = { version = "^1.0.55", features = ["std"], default-features = false } -const-oid = { version = "0.9.1", features = ["db"], default-features = false } -der = { version = "0.6", features = ["std"], default-features = false } -flagset = { version = "0.4.3", default-features = false, optional = true } -hex = { version = "0.4.3", features = ["alloc"], default-features = false } -rand = { version = "0.8", features = ["std"], default-features = false } -rsa = {version = "0.7.2", features = ["std"], default-features = false } -rustls-pemfile = {version = "1.0.1", default-features = false, optional = true } -sec1 = { version = "0.3", features = ["std", "pkcs8"], default-features = false } -semver = { version = "1.0", features = ["serde"], default-features = false, optional = true } -serde = { version = "1.0", features = ["derive", "std"], default-features = false } -sgx = { version = "0.6.0", default-features = false, optional = true } -sha2 = { version = "^0.10.2", default-features = false } -signature = {version = "1.6", default-features = false } -spki = { version = "0.6", default-features = false } -p256 = { version = "0.11", features = ["ecdsa", "std", "pem"], default-features = false } -p384 = { version = "0.11", features = ["ecdsa", "std", "pem"], default-features = false } -x509 = { version = "0.1", features = ["std"], package = "x509-cert", default-features = false } -zeroize = { version = "^1.5.2", features = ["alloc"], default-features = false } +anyhow = { workspace = true, features = ["std"] } +const-oid = { workspace = true } +der = { workspace = true, features = ["std"] } +flagset = { workspace = true, optional = true } +hex = { workspace = true, features = ["alloc"] } +p256 = { workspace = true, features = ["ecdsa", "std", "pem"] } +p384 = { workspace = true, features = ["ecdsa", "std", "pem"] } +rand = { workspace = true, features = ["std"] } +rsa = { workspace = true, features = ["std"] } +rustls-pemfile = { workspace = true, optional = true } +sec1 = { workspace = true, features = ["std", "pkcs8"] } +semver = { workspace = true, features = ["serde"], optional = true } +serde = { workspace = true, features = ["derive", "std"] } +sgx = { workspace = true, optional = true } +sha2 = { workspace = true } +signature = { workspace = true} +spki = { workspace = true } +x509 = { workspace = true, features = ["std"] } +zeroize = { workspace = true, features = ["alloc"] } [dev-dependencies] -testaso = { version = "0.1", default-features = false } -toml = { version = "0.5", default-features = false } +testaso = { workspace = true } +toml = { workspace = true } diff --git a/crates/server/Cargo.toml b/crates/server/Cargo.toml index b892af0c..8e0f8c81 100644 --- a/crates/server/Cargo.toml +++ b/crates/server/Cargo.toml @@ -6,29 +6,32 @@ license = "AGPL-3.0" description = "Server library for Steward" [dependencies] -anyhow = { version = "^1.0.66", default-features = false } -attestation = { path = "../../crates/attestation", features = ["sgx", "snp"] } -axum = { version = "^0.5.17", features = ["headers"], default-features = false } -const-oid = { version = "0.9.1", features = ["db"], default-features = false } -der = { version = "0.6", features = ["std"], default-features = false } -hyper = { git = "https://github.com/rjzak/hyper", branch = "wasi_wip", features = ["http1", "server"], default-features = false } -rustls-pemfile = {version = "1.0.1", default-features = false } -sec1 = { version = "0.3", features = ["std", "pkcs8"], default-features = false } -serde = { version = "1.0", features = ["derive"], default-features = false } -tokio = { version = "^1.23.0", features = ["rt", "macros"], default-features = false } -toml = { version = "0.5", default-features = false } -tower-http = { version = "^0.3.5", features = ["trace"], default-features = false } -tracing = { version = "^0.1.29", default-features = false } -tracing-subscriber = { version="^0.3.15", features = ["env-filter", "json", "fmt"], default-features = false } -uuid = { version = "^1.2.2", features = ["v4"], default-features = false } -x509 = { version = "0.1", features = ["std"], package = "x509-cert", default-features = false } -zeroize = { version = "^1.5.2", features = ["alloc"], default-features = false } +# Internal dependencies +attestation = { workspace = true } + +# External dependencies +anyhow = { workspace = true } +axum = { workspace = true, features = ["headers"] } +const-oid = { workspace = true, features = ["db"] } +der = { workspace = true, features = ["std"] } +hyper = { workspace = true, features = ["http1", "server"] } +rustls-pemfile = { workspace = true } +sec1 = { workspace = true, features = ["std", "pkcs8"] } +serde = { workspace = true, features = ["derive", "std"] } +tokio = { workspace = true, features = ["rt", "macros"] } +toml = { workspace = true } +tower-http = { workspace = true, features = ["trace"] } +tracing = { workspace = true } +tracing-subscriber = { workspace = true, features = ["env-filter", "json", "fmt"] } +uuid = { workspace = true, features = ["v4"] } +x509 = { workspace = true, features = ["std"] } +zeroize = { workspace = true, features = ["alloc"] } [dev-dependencies] -axum = { version = "^0.5.17", default-features = false } -http = { version = "^0.2.6", default-features = false } -memoffset = { version = "0.7.1", default-features = false } -rstest = { version = "0.16", default-features = false } -sgx = { version = "0.6.0", default-features = false } -testaso = { version = "0.1", default-features = false } -tower = { version = "^0.4.11", features = ["util"], default-features = false } +axum = { workspace = true } +http = { workspace = true } +memoffset = { workspace = true } +rstest = { workspace = true } +sgx = { workspace = true } +tower = { workspace = true, features = ["util"] } +testaso = { workspace = true }