forked from kalepail/soroban-quest--pioneer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
41 lines (38 loc) · 1.61 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
# This file serves as a manifest that describes how our project is organized,
# how it should function, dependencies, and other metadata.
# Each of the quests also has its own Cargo.toml file, with more information.
# Check one out at ./quests/0-hello-world/Cargo.toml.
# A workspace is a collection of different Rust packages that are managed
# together, using the same commands, configuration, etc.
[workspace]
# We want to use v2 of the cargo dependency resolver.
resolver = "2"
# Our workspace members include the packages in the quests directory.
members = [
"quests/0-hello-world"
]
# Here we specify our compiler settings as a "profile" that we specify when we
# build our package.
[profile.release-with-logs]
# The "release-with-logs" profile is almost identical to the "release" profile
inherits = "release"
# EXCEPT we want to include runtime validation when building for development
debug-assertions = true
# The "release" profile specifies compiler options for our production build.
[profile.release]
# Optimize for binary size, turn off loop vectorization.
opt-level = "z"
# A panic should occur in the event of a runtime integer overflow.
overflow-checks = true
# Don't include any debug into in the compiled binary.
debug = 0
# Remove auxiliary debug and symbol data from the compiled binary.
strip = "symbols"
# Don't include runtime validation when building for production.
debug-assertions = false
# Terminate the process when the code panics.
panic = "abort"
# Prefer a slow compilation time, for a faster performing binary.
codegen-units = 1
# Use link time optimizations to generate a better optimzed binary.
lto = true