[package] name = "lafere-api" description = "A more or less simple communication protocol library." version = "0.1.0" authors = ["Sören meier "] repository = "https://github.com/chuchi-dev/lafere" edition = "2021" license = "MIT OR Apache-2.0" rust-version = "1.67" [[test]] name = "complete" required-features = ["encrypted", "json"] [[test]] name = "advanced" required-features = ["encrypted", "json"] [features] default = ["connection"] connection = ["tokio", "lafere/connection"] encrypted = ["crypto", "lafere/encrypted"] json = ["lafere/json", "serde", "serde_json"] protobuf = ["dep:protopuffer"] [dependencies] lafere = { version = "0.1.0", path = "../lafere", default-features = false } crypto = { package = "chuchi-crypto", version = "0.1", features = [ "cipher", "signature", ], optional = true } bytes = { package = "simple-bytes", version = "0.2.6" } tokio = { version = "1.0", features = [ "net", "io-util", "time", "sync", ], optional = true } codegen = { package = "lafere-api-codegen", version = "0.1.0", path = "../lafere-api-codegen" } tracing = "0.1" serde = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } protopuffer = { version = "0.1", path = "../protopuffer", optional = true } [dev-dependencies] tokio = { version = "1.0", features = [ "net", "io-util", "rt-multi-thread", "time", "macros", "sync", ] } serde = { version = "1.0", features = ["derive"] } [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]