[package]
edition = "2018"
rust-version = "1.85.0"
name = "sev"
version = "7.1.0"
authors = [
"Nathaniel McCallum <npmccallum@redhat.com>",
"The VirTEE Project Developers",
]
build = "build.rs"
exclude = [
".gitignore",
".github/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library for AMD SEV"
homepage = "https://github.com/virtee/sev"
readme = "README.md"
keywords = [
"amd",
"sev",
]
categories = [
"os",
"os::linux-apis",
"parsing",
"network-programming",
"hardware-support",
]
license = "Apache-2.0"
repository = "https://github.com/virtee/sev"
[badges.github]
repository = "virtee/sev"
workflow = "test"
[badges.is-it-maintained-issue-resolution]
repository = "virtee/sev"
[badges.is-it-maintained-open-issues]
repository = "virtee/sev"
[badges.maintenance]
status = "actively-developed"
[features]
crypto_nossl = [
"dep:p384",
"dep:rsa",
"dep:sha2",
"dep:x509-cert",
]
dangerous_hw_tests = [
"hw_tests",
"dep:reqwest",
"dep:tokio",
]
default = [
"sev",
"snp",
"openssl?/vendored",
]
hw_tests = []
openssl = [
"dep:openssl",
"dep:rdrand",
]
serde = [
"dep:serde",
"dep:serde-big-array",
]
sev = []
snp = []
[lib]
name = "sev"
path = "src/lib.rs"
doc = false
[[test]]
name = "api"
path = "tests/api.rs"
[[test]]
name = "certs"
path = "tests/certs.rs"
[[test]]
name = "guest"
path = "tests/guest.rs"
[[test]]
name = "id-block"
path = "tests/id-block.rs"
[[test]]
name = "measurement"
path = "tests/measurement.rs"
[[test]]
name = "session"
path = "tests/session.rs"
[[test]]
name = "sev_launch"
path = "tests/sev_launch.rs"
[[test]]
name = "snp_launch"
path = "tests/snp_launch.rs"
[dependencies.base64]
version = "0.22.1"
[dependencies.bitfield]
version = "^0.19"
[dependencies.bitflags]
version = "2.9.0"
[dependencies.byteorder]
version = "1.4.3"
[dependencies.dirs]
version = "^6.0"
[dependencies.hex]
version = "0.4.3"
[dependencies.lazy_static]
version = "1.4.0"
[dependencies.libc]
version = "0.2.172"
[dependencies.openssl]
version = "0.10"
optional = true
[dependencies.p384]
version = "0.13.0"
optional = true
[dependencies.rdrand]
version = "^0.8"
optional = true
[dependencies.reqwest]
version = "^0.12"
features = ["blocking"]
optional = true
[dependencies.rsa]
version = "0.9.6"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.serde-big-array]
version = "0.5.1"
optional = true
[dependencies.sha2]
version = "0.10.9"
optional = true
[dependencies.static_assertions]
version = "^1.1.0"
[dependencies.tokio]
version = "1.29.1"
features = ["rt-multi-thread"]
optional = true
[dependencies.uuid]
version = "^1.11"
features = ["serde"]
[dependencies.x509-cert]
version = "0.2.5"
optional = true
[dev-dependencies.serial_test]
version = "3.0"
[target.'cfg(target_os = "linux")'.dependencies.iocuddle]
version = "^0.1"
[target.'cfg(target_os = "linux")'.dev-dependencies.kvm-bindings]
version = "^0.11"
[target.'cfg(target_os = "linux")'.dev-dependencies.kvm-ioctls]
version = ">=0.16"