mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-22 12:29:49 +00:00
cdi: Add Crate remove Github Hash
Use CDI exclusively from crates.io and not from a GH repository. Cargo can easily check if a new version is available and we can far more easier bump it if needed. Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
committed by
Fabiano Fidêncio
parent
3507b2038e
commit
10f8ec0c20
51
src/agent/Cargo.lock
generated
51
src/agent/Cargo.lock
generated
@@ -665,30 +665,6 @@ dependencies = [
|
|||||||
"shlex",
|
"shlex",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "cdi"
|
|
||||||
version = "0.1.0"
|
|
||||||
source = "git+https://github.com/cncf-tags/container-device-interface-rs?rev=3b1e83dda5efcc83c7a4f134466ec006b37109c9#3b1e83dda5efcc83c7a4f134466ec006b37109c9"
|
|
||||||
dependencies = [
|
|
||||||
"anyhow",
|
|
||||||
"clap",
|
|
||||||
"const_format",
|
|
||||||
"jsonschema",
|
|
||||||
"lazy_static",
|
|
||||||
"libc",
|
|
||||||
"nix 0.24.3",
|
|
||||||
"notify",
|
|
||||||
"oci-spec",
|
|
||||||
"once_cell",
|
|
||||||
"path-clean",
|
|
||||||
"regex",
|
|
||||||
"semver",
|
|
||||||
"serde",
|
|
||||||
"serde_derive",
|
|
||||||
"serde_json",
|
|
||||||
"serde_yaml",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cfg-if"
|
name = "cfg-if"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
@@ -808,6 +784,31 @@ dependencies = [
|
|||||||
"unicode-xid",
|
"unicode-xid",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "container-device-interface"
|
||||||
|
version = "0.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "653849f0c250f73d9afab4b2a9a6b07adaee1f34c44ffa6f2d2c3f9392002c1a"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"clap",
|
||||||
|
"const_format",
|
||||||
|
"jsonschema",
|
||||||
|
"lazy_static",
|
||||||
|
"libc",
|
||||||
|
"nix 0.24.3",
|
||||||
|
"notify",
|
||||||
|
"oci-spec",
|
||||||
|
"once_cell",
|
||||||
|
"path-clean",
|
||||||
|
"regex",
|
||||||
|
"semver",
|
||||||
|
"serde",
|
||||||
|
"serde_derive",
|
||||||
|
"serde_json",
|
||||||
|
"serde_yaml",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "core-foundation-sys"
|
name = "core-foundation-sys"
|
||||||
version = "0.8.7"
|
version = "0.8.7"
|
||||||
@@ -2049,11 +2050,11 @@ dependencies = [
|
|||||||
"async-trait",
|
"async-trait",
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
"capctl",
|
"capctl",
|
||||||
"cdi",
|
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"cgroups-rs",
|
"cgroups-rs",
|
||||||
"clap",
|
"clap",
|
||||||
"const_format",
|
"const_format",
|
||||||
|
"container-device-interface",
|
||||||
"derivative",
|
"derivative",
|
||||||
"futures",
|
"futures",
|
||||||
"ipnetwork",
|
"ipnetwork",
|
||||||
|
@@ -167,9 +167,6 @@ clap.workspace = true
|
|||||||
strum.workspace = true
|
strum.workspace = true
|
||||||
strum_macros.workspace = true
|
strum_macros.workspace = true
|
||||||
|
|
||||||
# Agent Policy
|
|
||||||
cdi = { git = "https://github.com/cncf-tags/container-device-interface-rs", rev = "3b1e83dda5efcc83c7a4f134466ec006b37109c9" }
|
|
||||||
|
|
||||||
# Local dependencies
|
# Local dependencies
|
||||||
kata-agent-policy = { workspace = true, optional = true }
|
kata-agent-policy = { workspace = true, optional = true }
|
||||||
mem-agent.workspace = true
|
mem-agent.workspace = true
|
||||||
@@ -189,6 +186,8 @@ base64 = "0.22"
|
|||||||
sha2 = "0.10.8"
|
sha2 = "0.10.8"
|
||||||
async-compression = { version = "0.4.22", features = ["tokio", "gzip"] }
|
async-compression = { version = "0.4.22", features = ["tokio", "gzip"] }
|
||||||
|
|
||||||
|
container-device-interface = "0.1.0"
|
||||||
|
|
||||||
[target.'cfg(target_arch = "s390x")'.dependencies]
|
[target.'cfg(target_arch = "s390x")'.dependencies]
|
||||||
pv_core = { git = "https://github.com/ibm-s390-linux/s390-tools", rev = "4942504a9a2977d49989a5e5b7c1c8e07dc0fa41", package = "s390_pv_core" }
|
pv_core = { git = "https://github.com/ibm-s390-linux/s390-tools", rev = "4942504a9a2977d49989a5e5b7c1c8e07dc0fa41", package = "s390_pv_core" }
|
||||||
|
|
||||||
|
@@ -15,6 +15,7 @@ use anyhow::{anyhow, Context, Result};
|
|||||||
use cdi::annotations::parse_annotations;
|
use cdi::annotations::parse_annotations;
|
||||||
use cdi::cache::{new_cache, with_auto_refresh, CdiOption};
|
use cdi::cache::{new_cache, with_auto_refresh, CdiOption};
|
||||||
use cdi::spec_dirs::with_spec_dirs;
|
use cdi::spec_dirs::with_spec_dirs;
|
||||||
|
use container_device_interface as cdi;
|
||||||
use kata_types::device::DeviceHandlerManager;
|
use kata_types::device::DeviceHandlerManager;
|
||||||
use nix::sys::stat;
|
use nix::sys::stat;
|
||||||
use oci::{LinuxDeviceCgroup, Spec};
|
use oci::{LinuxDeviceCgroup, Spec};
|
||||||
|
Reference in New Issue
Block a user