[package] authors = ["Florian Lemaitre "] description = "Rust bindings for the ArmoniK API" edition = "2021" include = ["**/*.rs", "Cargo.toml", "LICENSE", "README.md", "protos/**"] license = "Apache-2.0" readme = "README.md" name = "armonik" repository = "https://github.com/aneoconsulting/ArmoniK.Api" version = "3.21.0-beta-3" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] default = ["client"] client = ["_gen-client"] server = ["_gen-server"] agent = ["_gen-client", "_gen-server"] worker = ["_gen-client", "_gen-server"] _gen-client = ["tonic/channel", "dep:rustls", "dep:hyper-rustls", "dep:hyper"] _gen-server = ["tonic/server", "dep:tokio-util", "dep:tokio"] [dependencies] tonic = { version = "0.12", features = [ "codegen", "prost", ], default-features = false } prost = "0.13" prost-types = "0.13" futures = "0.3" snafu = "0.8" tracing = "0.1" hyper = { version = "1.5", features = [ "client", "http1", "http2", ], optional = true } hyper-rustls = { version = "0.27", features = [ "http1", "http2", ], optional = true } rustls = { version = "0.23", features = ["ring"], optional = true } tokio-util = { version = "0.7", optional = true } tokio = { version = "1.42", default-features = false, optional = true } [dev-dependencies] eyre = "0.6" tracing-subscriber = { version = "0.3", features = ["env-filter"] } hyper-util = { version = "0.1", features = ["client", "http1"] } http-body-util = "0.1" serde_json = "1.0" serial_test = "3.1" async-stream = "0.3" tokio = { version = "1.41", features = [ "rt-multi-thread", "macros", "sync", "time", ] } [build-dependencies] tonic-build = "0.12" [[test]] name = "agent" required-features = ["agent", "worker"] [[test]] name = "applications" required-features = ["client", "server"] [[test]] name = "auth" required-features = ["client", "server"] [[test]] name = "events" required-features = ["client", "server"] [[test]] name = "partitions" required-features = ["client", "server"] [[test]] name = "results" required-features = ["client", "server"] [[test]] name = "sessions" required-features = ["client", "server"] [[test]] name = "submitter" required-features = ["client", "server"] [[test]] name = "tasks" required-features = ["client", "server"] [[test]] name = "versions" required-features = ["client", "server"] [[test]] name = "worker" required-features = ["agent", "worker"]