-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
91 lines (75 loc) · 2.32 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
[package]
name = "my_rust_lib"
version = "0.1.0"
authors = ["Gokhan Simsek <[email protected]>"]
edition = "2021"
# Ref:
# From Rust Programming Language
# by Steve Klabnik and Carol Nichols (Covers Rust 2018) - 2019
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bincode = "1"
chrono = "0.4.31"
env_logger = "0.10.2"
futures = "0.3"
log = "0.4" # for env_logger
rayon = "1.7.0"
reqwest = { version = "0.11" }
serde = "1"
serde_cbor = "0.8"
serde_derive = "1"
serde_json = "1"
tokio = { version = "1.23.0", features = ["full"] }
winterfell = "=0.9.0"
[dev-dependencies]
assert_unordered = "0.3"
criterion = { version = "0.5.1", features = ["html_reports"] }
[[bench]]
name = "my_benchmark"
harness = false
[workspace]
members = [
"src/adder",
"src/add-one-lib",
"src/clap-cmd-line-parser",
"src/web-server-multi-threaded",
"src/web-server-async-and-parallel",
]
## examples/hello.rs works with `cargo r --example hello` without this section
# [[example]]
# name = "hello"
# New sytnax: since rust 1.64
# https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html
[workspace.dependencies]
# Using aliased dependency import syntax
rand_alias = { package = "rand", version = "0.3.14" }
add-one-lib = { path = "src/add-one-lib" }
clap = "4.0.32"
# Using features (aka conditional compilation with cfg)
[features]
foo = [] # feature has no explicit dependencies
aa = [] # feature has no explicit dependencies
# # All workspace members should inherit these keys for package declarations.
# [workspace.package]
# authors = ["Aptos Labs <[email protected]>"]
# edition = "2021"
# homepage = "https://aptoslabs.com"
# license = "Apache-2.0"
# publish = false
# repository = "https://github.com/aptos-labs/aptos-core"
# rust-version = "1.64"
# [workspace.dependencies]
# aptos-global-constants = { path = "config/global-constants" }
## -------------------------------------------------
[profile.release]
opt-level = 3 # Optimize for speed
# opt-level = 'z' # Optimize for size
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = 'abort' # Abort on panic
[profile.dev]
opt-level = 0
debug = true
# split-debuginfo = "unpacked" # Requires macOS ?
lto = false
incremental = true