-
Notifications
You must be signed in to change notification settings - Fork 120
/
Cargo.toml
160 lines (136 loc) · 4.22 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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
[package]
name = "demikernel"
version = "1.5.13"
authors = ["Microsoft Corporation"]
edition = "2021"
description = "Kernel-Bypass LibOS Architecture"
readme = "README.md"
homepage = "https://aka.ms/demikernel"
repository = "https://github.com/demikernel/demikernel"
license-file = "LICENSE.txt"
[dependencies]
# Third-party crates.
anyhow = "1.0.89"
arrayvec = "0.7.6"
async-trait = "0.1.83"
bit-iter = "1.2.0"
cfg-if = "1.0.0"
clap = "4.5.18"
crc = "3.2.1"
crossbeam-channel = "0.5.13"
eui48 = "1.1.0"
flexi_logger = "0.29.0"
futures = "0.3.30"
histogram = "0.11.0"
libc = "0.2.159"
log = "0.4.22"
mimalloc = { version = "0.1.43", default-features = false }
rand = { version = "0.8.5", features = ["small_rng"] }
slab = "0.4.9"
socket2 = "0.5.7"
x86 = "0.52.0"
yaml-rust = "0.4.5"
# Demikernel crates (published on crates.io).
demikernel-dpdk-bindings = { version = "1.1.6", optional = true }
demikernel-network-simulator = { version = "0.1.0" }
# Windows-specific dependencies.
[target.'cfg(windows)'.dependencies]
# libc implementation in Rust is quite different for Windows and Linux. This library provides the relevant networking
# constants and data structures for Windows.
windows = { version = "0.57.0", features = [
"Win32_Foundation",
"Win32_Networking_WinSock",
"Win32_Security",
"Win32_Storage_FileSystem",
"Win32_System_IO",
"Win32_System_Pipes",
"Win32_System_SystemInformation",
"Win32_System_Threading",
] }
demikernel-xdp-bindings = { version = "1.0.0", optional = true }
# for interacting with socket2.
windows-sys = { version = "0.52.0", features = ["Win32_Networking_WinSock"] }
# Targets
[lib]
crate-type = ["cdylib", "rlib"]
path = "src/rust/lib.rs"
[[test]]
name = "tcp-tests"
path = "tests/rust/tcp-tests/main.rs"
harness = false
[[test]]
name = "udp-tests"
path = "tests/rust/udp-tests/main.rs"
harness = false
[[test]]
name = "tcp"
path = "tests/rust/tcp.rs"
[[test]]
name = "udp"
path = "tests/rust/udp.rs"
[[test]]
name = "sga"
path = "tests/rust/sga.rs"
[[example]]
name = "udp-dump"
path = "examples/rust/udp-dump.rs"
[[example]]
name = "udp-echo"
path = "examples/rust/udp-echo.rs"
[[example]]
name = "udp-pktgen"
path = "examples/rust/udp-pktgen.rs"
[[example]]
name = "udp-relay"
path = "examples/rust/udp-relay.rs"
[[example]]
name = "udp-push-pop"
path = "examples/rust/udp-push-pop.rs"
[[example]]
name = "udp-ping-pong"
path = "examples/rust/udp-ping-pong.rs"
[[example]]
name = "tcp-dump"
path = "examples/rust/tcp-dump.rs"
[[example]]
name = "tcp-pktgen"
path = "examples/rust/tcp-pktgen.rs"
[[example]]
name = "tcp-push-pop"
path = "examples/rust/tcp-push-pop.rs"
[[example]]
name = "tcp-ping-pong"
path = "examples/rust/tcp-ping-pong.rs"
[features]
default = ["catnap-libos"]
catnap-libos = []
catpowder-libos = []
catnip-libos = ["libdpdk"]
libdpdk = ["demikernel-dpdk-bindings"]
libxdp = ["demikernel-xdp-bindings"]
mlx4 = ["demikernel-dpdk-bindings/mlx4"]
mlx5 = ["demikernel-dpdk-bindings/mlx5"]
profiler = []
auto-calibrate = []
[profile.release]
opt-level = 3 # Enable all compiler optimizations.
debug = false # Do not include any debug info in the binary.
debug-assertions = false # Do not include any debug assertions in the binary.
overflow-checks = false # Do not check for overflows at runtime.
lto = "fat" # Perform link time optimizations across all dependencies (overridden).
panic = "abort" # Terminate the process upon panic (overridden).
incremental = false # Disable incremental compilation.
codegen-units = 1 # Produce a single code generation unit (overridden).
rpath = false # Disable runtime search path.
[profile.dev]
opt-level = 0 # Disable all compiler optimizations.
debug = true # Output full debug info in the binary.
debug-assertions = true # Include debug assertions in the binary.
overflow-checks = true # Check for overflows at runtime.
lto = "off" # Disable link time optimization (overridden).
panic = 'unwind' # Unwind the stack upon panic.
incremental = true # Incremental build.
codegen-units = 256 # Produce multiple code generation units.
rpath = false # Disable runtime search path.