forked from rsonquery/rsonpath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
36 lines (29 loc) · 987 Bytes
/
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
[workspace]
members = [
"crates/rsonpath",
"crates/rsonpath-lib",
"crates/rsonpath-test"
]
exclude = [
"crates/rsonpath-benchmarks",
"crates/rsonpath-test-codegen"
]
resolver = "2"
[profile.dev]
lto = false
# Release should be used for benching, but not actually distributed.
[profile.release]
lto = "thin"
debug = 1
# This is the profile used for final binaries distributed via package managers.
# It prioritizes performance, and then binary size. We generally don't care about
# compile times for these, as they are built once on release in the CI and then distributed.
# The time impact of build is not large (~33% time increase).
[profile.distribution]
inherits = "release"
lto = "fat" # Better codegen, much slower compile time.
codegen-units = 1 # Better codegen, much slower compile time.
debug = 0 # Smaller binary size.
strip = "debuginfo" # Smaller binary size.
[patch.crates-io]
rsonpath-lib = { path = "./crates/rsonpath-lib" }