chirpstack/api/rust/Cargo.toml
Orne Brocaar 8fe0c7c6c2 Improve Rust SDK build flags / reduce dependencies.
This reduces the amount of dependencies in case not all features are
being used. E.g. tonic is only needed if using gRPC and pbjson,
pbjson-types and serde are only needed if using the JSON serialization.
2023-03-28 21:11:54 +01:00

32 lines
960 B
TOML
Vendored

[package]
name = "chirpstack_api"
description = "ChirpStack Protobuf / gRPC API definitions."
version = "4.3.0"
authors = ["Orne Brocaar <info@brocaar.com>"]
license = "MIT"
homepage = "https://www.chirpstack.io"
repository = "https://github.com/chirpstack/chirpstack"
edition = "2021"
[features]
default = ["api", "json"]
api = ["tonic/transport", "tonic-build/transport", "tokio"]
json = ["pbjson", "pbjson-types", "serde"]
internal = []
[dependencies]
prost = "0.11"
prost-types = "0.11"
hex = "0.4"
rand = "0.8"
tonic = { version = "0.8", features = ["codegen", "prost"], default-features = false, optional = true }
tokio = { version = "1.25", features = ["macros"], optional = true }
pbjson = { version = "0.5", optional = true }
pbjson-types = { version = "0.5", optional = true }
serde = { version = "1.0", optional = true }
[build-dependencies]
tonic-build = { version = "0.8", features = ["prost"], default-features = false }
pbjson-build = "0.5"