agent: move the oci crate to upper libs

Move the oci crate to upper libs thus it can be
shared between agent and other rust runtimes.

Fixes: #3348

Signed-off-by: Fupan Li <fupan.lfp@antgroup.com>
This commit is contained in:
Fupan Li 2021-12-24 17:37:47 +08:00
parent 3339ba90cf
commit 330e3dcc93
6 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,7 @@ authors = ["The Kata Containers community <kata-dev@lists.katacontainers.io>"]
edition = "2018"
[dependencies]
oci = { path = "oci" }
oci = { path = "../libs/oci" }
rustjail = { path = "rustjail" }
protocols = { path = "protocols" }
lazy_static = "1.3.0"
@ -66,7 +66,6 @@ tempfile = "3.1.0"
[workspace]
members = [
"oci",
"protocols",
"rustjail",
]

View File

@ -8,7 +8,7 @@ edition = "2018"
serde = "1.0.91"
serde_json = "1.0.39"
serde_derive = "1.0.91"
oci = { path = "../oci" }
oci = { path = "../../libs/oci" }
protocols = { path ="../protocols" }
caps = "0.5.0"
nix = "0.23.0"

View File

@ -12,7 +12,7 @@ edition = "2018"
[dependencies]
protocols = { path = "../../agent/protocols", features = ["with-serde"] }
rustjail = { path = "../../agent/rustjail" }
oci = { path = "../../agent/oci" }
oci = { path = "../../libs/oci" }
clap = "2.33.0"
lazy_static = "1.4.0"