[package]
name = "indradb-proto"
version = "4.0.0"
authors = ["Yusuf Simonson <simonson@gmail.com>"]
description = "Protobuf/gRPC interfaces for IndraDB"
homepage = "https://indradb.github.io"
repository = "https://github.com/indradb/indradb"
keywords = ["graph", "database"]
categories = ["database", "database-implementations"]
license = "MPL-2.0"
build = "build.rs"
edition = "2021"
readme = "../README.md"

[lib]
name = "indradb_proto"
path = "src/lib.rs"

[features]
default = ["client"]
server = ["tokio", "tokio-stream", "libloading", "indradb-plugin-host", "glob"]
client = ["tokio", "tokio-stream"]
test-suite = ["indradb-lib/test-suite", "client", "server"]

[dependencies]
serde_json = "^1.0.57"
uuid = "^1.2.2"
prost = "0.11.3"
prost-derive = "0.11.2"
prost-types = "0.11.2"
tonic = "0.8.3"
tokio = { version = "^1.24.2", features = ["rt-multi-thread"], optional = true }
tokio-stream = { version = "0.1.11", features = ["net"], optional = true }
libloading = { version = "0.7.4", optional = true }
glob = { version = "0.3.0", optional = true }

[dependencies.indradb-lib]
path = "../lib"
version = "4.0.0"

[dependencies.indradb-plugin-host]
path = "../plugins/host"
version = "0.3.0"
optional = true

[build-dependencies]
tonic-build = "0.8.0"