[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_sync", "adaptor_reqwest", "adaptor_server_error"] }
flowy-derive = { path = "../flowy-derive" }
flowy-client-sync = { path = "../flowy-client-sync"}
folder-model = { path = "../../../shared-lib/folder-model" }
revision-model = { path = "../../../shared-lib/revision-model"}
document-model = { path = "../../../shared-lib/document-model"}
ws-model = { path = "../../../shared-lib/ws-model"}
flowy-server-sync = { path = "../../../shared-lib/flowy-server-sync"}
flowy-client-ws = { path = "../../../shared-lib/flowy-client-ws"}
flowy-client-network-config= { path = "../../../shared-lib/flowy-client-network-config"}
flowy-sync = { path = "../../../shared-lib/flowy-sync"}
user-model = { path = "../../../shared-lib/user-model"}
flowy-folder = { path = "../flowy-folder" }
flowy-user = { path = "../flowy-user" }
flowy-document = { path = "../flowy-document" }
lazy_static = "1.4.0"
lib-infra = { path = "../../../shared-lib/lib-infra" }
protobuf = {version = "2.28.0"}
lib-ws = { path = "../../../shared-lib/lib-ws" }
bytes = { version = "1.4" }
anyhow = "1.0"
tokio = { version = "1.26", features = ["sync"]}
parking_lot = "0.12.1"
strum = "0.21"
strum_macros = "0.21"
tracing = { version = "0.1", features = ["log"] }
dashmap = "5"
async-stream = "0.3.4"
futures-util = "0.3.26"
reqwest = "0.11.14"
hyper = "0.14"
config = { version = "0.10.1", default-features = false, features = ["yaml"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde-aux = "1.1.0"
nanoid = "0.4.0"
thiserror = "1.0"

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

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

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