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