2021-06-24 16:32:36 +08:00
|
|
|
[package]
|
2021-11-19 14:38:11 +08:00
|
|
|
name = "lib-dispatch"
|
2021-06-24 16:32:36 +08:00
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
2024-01-22 13:34:15 +08:00
|
|
|
[lib]
|
|
|
|
crate-type = ["cdylib", "rlib"]
|
2021-06-24 16:32:36 +08:00
|
|
|
|
|
|
|
[dependencies]
|
2022-12-19 10:47:40 +08:00
|
|
|
pin-project = "1.0"
|
2021-06-24 16:32:36 +08:00
|
|
|
futures-core = { version = "0.3", default-features = false }
|
2023-03-03 20:38:31 +08:00
|
|
|
futures-channel = "0.3.26"
|
2023-11-12 21:18:27 +08:00
|
|
|
futures.workspace = true
|
2023-03-03 20:38:31 +08:00
|
|
|
futures-util = "0.3.26"
|
2024-06-14 11:34:23 +08:00
|
|
|
bytes = { version = "1.4", features = ["serde"] }
|
2022-04-11 15:27:03 +08:00
|
|
|
nanoid = "0.4.0"
|
2024-01-06 00:37:26 +08:00
|
|
|
|
2021-06-28 22:56:15 +08:00
|
|
|
dyn-clone = "1.0"
|
2021-06-30 23:11:27 +08:00
|
|
|
derivative = "2.2.0"
|
2023-11-12 21:18:27 +08:00
|
|
|
serde_json = { workspace = true, optional = true }
|
2022-07-06 13:27:33 +08:00
|
|
|
serde = { version = "1.0", features = ["derive"], optional = true }
|
2023-11-12 21:18:27 +08:00
|
|
|
serde_repr = { workspace = true, optional = true }
|
2023-10-25 21:35:47 +08:00
|
|
|
validator = "0.16.1"
|
2023-11-12 21:18:27 +08:00
|
|
|
tracing.workspace = true
|
|
|
|
parking_lot = "0.12"
|
2024-06-14 11:34:23 +08:00
|
|
|
bincode = { version = "1.3", optional = true }
|
2023-11-12 21:18:27 +08:00
|
|
|
protobuf = { workspace = true, optional = true }
|
2024-01-06 00:37:26 +08:00
|
|
|
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
|
|
thread-id = "3.3.0"
|
2024-06-14 11:34:23 +08:00
|
|
|
tokio = { workspace = true, features = ["full", "rt-multi-thread"] }
|
2021-06-29 23:21:25 +08:00
|
|
|
|
2024-01-06 11:50:05 +08:00
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
2024-06-14 11:34:23 +08:00
|
|
|
getrandom = { version = "0.2", features = ["js"] }
|
2024-01-06 11:50:05 +08:00
|
|
|
wasm-bindgen = { version = "0.2.89" }
|
2024-01-30 05:36:27 +08:00
|
|
|
wasm-bindgen-futures = "0.4"
|
2024-06-14 11:34:23 +08:00
|
|
|
tokio = { workspace = true, features = ["rt", "sync"] }
|
2024-01-06 11:50:05 +08:00
|
|
|
|
2021-06-24 23:37:45 +08:00
|
|
|
[dev-dependencies]
|
2024-01-06 00:37:26 +08:00
|
|
|
tokio = { workspace = true, features = ["rt"] }
|
2023-03-03 20:38:31 +08:00
|
|
|
futures-util = "0.3.26"
|
2021-06-29 23:21:25 +08:00
|
|
|
|
|
|
|
[features]
|
2024-01-06 00:37:26 +08:00
|
|
|
default = ["use_protobuf"]
|
2023-01-17 16:27:17 +08:00
|
|
|
use_serde = ["bincode", "serde_json", "serde", "serde_repr"]
|
2024-06-14 11:34:23 +08:00
|
|
|
use_protobuf = ["protobuf"]
|
2024-02-04 05:50:23 +08:00
|
|
|
local_set = []
|
2024-01-06 00:37:26 +08:00
|
|
|
|
|
|
|
|