[package]
name = "flowy-net"
version = "0.1.0"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
lib-dispatch = { path = "../lib-dispatch" }
flowy-error = { path = "../flowy-error", features = ["adaptor_reqwest", "adaptor_server_error"] }
flowy-derive = { path = "../../../shared-lib/flowy-derive" }
protobuf = {version = "2.28.0"}
anyhow = "1.0"
thiserror = "1.0"
bytes = { version = "1.4" }
strum_macros = "0.21"
tracing = { version = "0.1"}

[features]
http_server = []
dart = [
    "flowy-codegen/dart",
    "flowy-error/dart",
]

ts = [
    "flowy-codegen/ts",
    "flowy-error/ts",
]

[build-dependencies]
flowy-codegen = { path = "../../../shared-lib/flowy-codegen"}