AppFlowy/frontend/rust-lib/lib-dispatch/Cargo.toml
Nathan.fooo e08a1a6974
feat: enable dispatch event using single thread (#3828)
* refactor: lib dispatch

* chore: type def

* chore: type def

* fix: local set spawn

* chore: replace tokio spawn

* chore: update log

* chore: boxed event

* chore: tauri lock
2023-10-30 12:35:06 +08:00

40 lines
1.1 KiB
TOML

[package]
name = "lib-dispatch"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
pin-project = "1.0"
futures-core = { version = "0.3", default-features = false }
futures-channel = "0.3.26"
futures = "0.3.26"
futures-util = "0.3.26"
bytes = {version = "1.4", features = ["serde"]}
tokio = { version = "1.26", features = ["full"] }
nanoid = "0.4.0"
log = "0.4.17"
thread-id = "3.3.0"
dyn-clone = "1.0"
derivative = "2.2.0"
serde_json = {version = "1.0", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_repr = { version = "0.1", optional = true }
validator = "0.16.1"
tracing = { version = "0.1"}
#optional crate
bincode = { version = "1.3", optional = true}
protobuf = {version = "2.28.0", optional = true}
[dev-dependencies]
tokio = { version = "1.26", features = ["full"] }
futures-util = "0.3.26"
[features]
default = ["use_protobuf", ]
use_serde = ["bincode", "serde_json", "serde", "serde_repr"]
use_protobuf= ["protobuf"]
single_thread = []