mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-31 04:54:21 +01:00
Update the `agent-ctl` tool to allow API fields to be specified in JSON format, either directly on the command-line, or via a file URI. This feature is made possible by enabling `serde` support in the agent `protocols` crate. Careful use of the `serde` macros allows the `agent-ctl` tool to accept _partially_ specified API objects in JSON format; fields that are not specified are set to the default value for their respective types. `build.rs` changes based on work by Fupan. Fixes: #2978. Contributions-by: Fupan Li <lifupan@gmail.com> Contributions-by: Bin Liu <bin@hyper.sh> Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
42 lines
993 B
TOML
42 lines
993 B
TOML
# Copyright (c) 2020 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
[package]
|
|
name = "kata-agent-ctl"
|
|
version = "0.0.1"
|
|
authors = ["The Kata Containers community <kata-dev@lists.katacontainers.io>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
protocols = { path = "../../src/agent/protocols", features = ["with-serde"] }
|
|
rustjail = { path = "../../src/agent/rustjail" }
|
|
oci = { path = "../../src/agent/oci" }
|
|
|
|
clap = "2.33.0"
|
|
lazy_static = "1.4.0"
|
|
anyhow = "1.0.31"
|
|
hex = "0.4.2"
|
|
byteorder = "1.3.4"
|
|
|
|
# Note: this crate sets the slog 'max_*' features which allows the log level
|
|
# to be modified at runtime.
|
|
logging = { path = "../../pkg/logging" }
|
|
slog = "2.5.2"
|
|
slog-scope = "4.3.0"
|
|
rand = "0.7.3"
|
|
protobuf = "2.14.0"
|
|
|
|
nix = "0.21.0"
|
|
libc = "0.2.69"
|
|
# XXX: Must be the same as the version used by the agent
|
|
ttrpc = { version = "0.5.0" }
|
|
|
|
# For parsing timeouts
|
|
humantime = "2.0.0"
|
|
|
|
# For Options (state passing)
|
|
serde = { version = "1.0.130", features = ["derive"] }
|
|
serde_json = "1.0.68"
|