-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCargo.toml
131 lines (113 loc) · 4.17 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[package]
name = "busrt"
version = "0.4.17"
edition = "2021"
authors = ["Serhij S. <div@altertech.com>"]
license = "Apache-2.0"
repository = "https://github.com/alttch/busrt"
description = "Local and network IPC bus"
readme = "README.md"
keywords = ["bus", "rt", "ipc", "pubsub"]
autoexamples = false
[package.metadata.docs.rs]
features = ["broker", "ipc", "rpc", "cursors"]
rustdoc-args = ["--cfg", "docsrs"]
[package.metadata.playground]
features = ["broker", "ipc", "rpc", "cursors"]
[dependencies]
tokio = { version = "1.20.1", features = ["full"] }
async-channel = "1.7.1"
log = { version = "0.4.14", optional = true }
syslog = { version = "5.0.0", optional = true }
chrono = { version = "0.4.19", optional = true }
colored = { version = "2", optional = true }
clap = { version = "3.0.7", features = ["derive"], optional = true }
submap = { version = "0.3.3", optional = true }
lazy_static = { version = "1.4.0", optional = true }
fork = { version = "0.1.18", optional = true }
rmp-serde = { version = "1.1.0", optional = true }
serde = { version = "1.0.143", features = ["derive"], optional = true }
async-trait = { version = "0.1.57", optional = true }
unix-named-pipe = { version = "0.2.0", optional = true }
serde_json = { version = "1.0.83", optional = true }
bma-benchmark = { version = "0.0.24", optional = true }
prettytable-rs = { version = "0.10", optional = true }
env_logger = { version = "0.9.0", optional = true }
hostname = { version = "0.3.1", optional = true }
hex = { version = "0.4.3", optional = true }
num-format = { version = "0.4.0", optional = true }
serde-value = { version = "0.7.0", optional = true }
atty = { version = "0.2", optional = true }
nix = { version = "0.25.0", optional = true }
ipnetwork = { version = "0.20.0", optional = true }
triggered = { version = "0.1.2", optional = true }
async-io = "1.8.0"
parking_lot = { version = "0.12.1", optional = true }
console-subscriber = { version = "0.1.7", optional = true }
uuid = { version = "1.3.0", features = ["serde", "v4"], optional = true }
sqlx = { version = "0.6.2", features = ["postgres", "runtime-tokio-rustls"], optional = true }
futures = { version = "0.3.26", optional = true }
regex = { version = "1.8.1", optional = true }
tokio-task-pool = { version = "0.1.3", optional = true }
parking_lot_rt = { version = "0.12.1", optional = true }
mimalloc = { version = "0.1.43", optional = true }
[features]
server = ["dep:log", "dep:syslog", "dep:chrono", "dep:colored",
"dep:clap", "dep:lazy_static", "dep:mimalloc", "dep:fork", "broker"]
broker = ["dep:log", "submap/native-digest", "dep:async-trait", "dep:unix-named-pipe", "dep:nix",
"dep:ipnetwork", "dep:triggered", "dep:parking_lot"]
ipc = ["dep:log", "dep:async-trait", "dep:parking_lot"]
rpc = ["dep:log", "dep:serde", "dep:rmp-serde", "dep:async-trait", "dep:serde-value", "dep:parking_lot",
"dep:regex", "dep:tokio-task-pool"]
cli = ["ipc", "rpc", "dep:colored", "dep:clap", "dep:env_logger",
"dep:bma-benchmark", "dep:prettytable-rs", "dep:hostname", "dep:hex",
"dep:num-format", "dep:mimalloc", "dep:serde_json", "dep:atty"]
openssl-vendored = ["submap/openssl-vendored"]
full = ["rpc", "ipc", "broker"]
cursors = ["rpc", "dep:uuid"]
std-alloc = []
tracing = ["tokio/tracing", "dep:console-subscriber"]
rt = ["dep:parking_lot_rt"]
#default = ["full"]
[lib]
name = "busrt"
path = "src/lib.rs"
[[bin]]
name = "busrtd"
path = "src/server.rs"
required-features = ["server"]
[[bin]]
name = "busrt"
path = "src/cli.rs"
required-features = ["cli"]
[[example]]
name = "inter_thread"
required-features = ["broker", "rpc"]
[[example]]
name = "broker_custom_rpc"
required-features = ["broker", "rpc"]
[[example]]
name = "broker_aaa"
required-features = ["broker", "rpc"]
[[example]]
name = "client_rpc_handler"
required-features = ["ipc", "rpc"]
[[example]]
name = "client_rpc"
required-features = ["ipc", "rpc"]
[[example]]
name = "client_listener"
required-features = ["ipc"]
[[example]]
name = "client_sender"
required-features = ["ipc"]
[[example]]
name = "server_cursor"
required-features = ["broker", "ipc", "rpc", "cursors", "sqlx", "futures"]
[[example]]
name = "client_cursor"
required-features = ["ipc", "rpc", "cursors"]
[profile.dev]
overflow-checks = false
[profile.release]
strip = true