-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
68 lines (57 loc) · 3.04 KB
/
Copy pathCargo.toml
File metadata and controls
68 lines (57 loc) · 3.04 KB
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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
#=======================================================================================================================
# Package
#=======================================================================================================================
[package]
name = "demikernel-proxy"
version = "0.1.0"
authors = ["Microsoft Corporation"]
edition = "2021"
description = "A TCP Proxy Application"
homepage = "https://aka.ms/demikernel"
repository = "https://github.com/demikernel/demikernel-proxy"
license-file = "LICENSE.txt"
#=======================================================================================================================
# Dependencies
#=======================================================================================================================
[dependencies]
# Third Party
anyhow = "1.0.75"
libc = "0.2.149"
# Demikernel Organization
demikernel = { git = "https://github.com/microsoft/demikernel", branch = "dev"}
#=======================================================================================================================
# Features
#=======================================================================================================================
[features]
default = [ "catnap-libos" ]
catnap-libos = [ "demikernel/catnap-libos", "demikernel/catloop-libos" ]
catnip-libos = [ "demikernel/catnip-libos", "demikernel/catloop-libos" ]
mlx4 = ["demikernel/mlx4"]
mlx5 = ["demikernel/mlx5"]
#=======================================================================================================================
# Profile
#=======================================================================================================================
# Build profile used for releases.
[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.
# Build profile used for development and debugging.
[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.