-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
162 lines (130 loc) · 3.53 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
[package]
name = "d3"
# When publishing a new version:
# - Update CHANGELOG.md
# - Update README.md
# - Create "d3-X.Y.Z" git tag
version = "0.1.3"
authors = ["Bruce Brown <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/BruceBrown/d3"
homepage = "https://github.com/BruceBrown/d3"
documentation = "https://docs.rs/d3"
description = "A framework for server development"
keywords = ["non-blocking", "server", "framework"]
categories = ["asynchronous", "concurrency"]
exclude = ["/ci/*", "/bors.toml"]
# Cargo default release + lto = true
[profile.release]
opt-level = 3
debug = true
debug-assertions = false
overflow-checks = false
lto = true
panic = 'unwind'
incremental = false
codegen-units = 16
rpath = false
# Cargo test, this is the default
[profile.test]
opt-level = 0
debug = 2
debug-assertions = true
overflow-checks = true
lto = false
#panic = 'unwind' # This setting is always ignored.
incremental = true
codegen-units = 256
rpath = false
[profile.bench]
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
lto = true
incremental = false
codegen-units = 16
rpath = false
[[bench]]
name = "forwarder"
harness = false
[dependencies]
crossbeam = "0.8"
smart-default = "0.6"
atomic_refcell = "0.1"
log = "0.4"
simplelog = "0.8"
rand = "0.7"
parking_lot = "0.11"
enum_dispatch = "0.3"
d3-core = {version = "0.1.3", path = "./d3-core"}
d3-derive = {version = "0.1.3", path = "./d3-derive"}
d3-components = {version = "0.1.3", path = "./d3-components"}
[patch.crates-io]
# Add patches here
[dev-dependencies]
# used in test and bench
criterion = "0.3"
d3-dev-instruction-sets = {path = "./d3-dev-instruction-sets"}
d3-test-drivers = {path = "./d3-test-drivers"}
# services for the test server
alice-service = {path = "./examples/alice-service"}
chat-service = {path = "./examples/chat-service"}
echo-service = {path = "./examples/echo-service"}
udp-echo-service = {path = "./examples/udp-echo-service"}
monitor-service = {path = "./examples/monitor-service"}
# used in example
httparse = "1.3.4"
uuid = { version = "0.8", default-features = false, features = ["v4"] }
[[example]]
name = "alice-service"
crate-type = ["staticlib"]
path = "./examples/alice-service/src/lib.rs"
[[example]]
name = "chat-service"
crate-type = ["staticlib"]
path = "./examples/chat-service/src/lib.rs"
[[example]]
name = "echo-service"
crate-type = ["staticlib"]
path = "./examples/echo-service/src/lib.rs"
[[example]]
name = "udp-echo-service"
crate-type = ["staticlib"]
path = "./examples/udp-echo-service/src/lib.rs"
[[example]]
name = "monitor-service"
crate-type = ["staticlib"]
path = "./examples/monitor-service/src/lib.rs"
[[example]]
name = "test-server"
path = "./examples/test-server/src/main.rs"
[[example]]
# Conway's Game of Life -- each cell is a machine
#
name = "d3-life"
path = "./examples/d3-life/src/main.rs"
# d3-life links with SDL2, use the vcpkg manager to help with linking
[package.metadata.vcpkg]
dependencies = ["sdl2", "sdl2-image[libjpeg-turbo,tiff,libwebp]", "sdl2-ttf", "sdl2-gfx", "sdl2-mixer"]
git = "https://github.com/microsoft/vcpkg"
rev = "a0518036077baa4"
[package.metadata.vcpkg.target]
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-md" }
[workspace]
members = [
"d3-core",
"d3-derive",
"d3-components",
"d3-dev-instruction-sets",
"d3-test-drivers",
"examples/chat-service",
"examples/echo-service",
"examples/udp-echo-service",
"examples/monitor-service",
"examples/alice-service",
"examples/test-server",
"examples/d3-life",
]