Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
60 lines (53 loc) · 1.98 KB
/
Copy pathCargo.toml
File metadata and controls
60 lines (53 loc) · 1.98 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
[workspace]
members = ["stellar-contract", "backend"]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/drips-network/scavenger"
[workspace.dependencies]
# Pinned to a single version so every workspace member resolves the same
# soroban-sdk (and its transitive deps) — avoids duplicate crate versions in
# the lockfile. See issue #1563.
soroban-sdk = "=21.7.7"
# ---------------------------------------------------------------------------
# Workspace-wide lint configuration (issue #1308)
#
# All crates opt in with `lints = { workspace = true }` in their Cargo.toml.
# The deny list here mirrors what clippy.toml previously enforced, so that
# the same set of lints is applied uniformly across every workspace member
# without each crate needing to repeat the declarations.
# ---------------------------------------------------------------------------
[workspace.lints.rust]
# Treat unused imports/variables as errors to catch dead code early.
unused = "warn"
# Forbid unsafe code at the workspace level; individual crates can opt out
# with an explicit `unsafe_code = "allow"` in their own [lints.rust] section.
unsafe_code = "warn"
[workspace.lints.clippy]
# These four mirror the `deny` list in clippy.toml so that they are enforced
# through Cargo's lint machinery in addition to the .toml deny file.
unwrap_used = "warn"
expect_used = "warn"
panic = "warn"
# `integer_arithmetic` was removed from clippy in newer toolchains; the
# equivalent check is `arithmetic_side_effects`.
arithmetic_side_effects = "warn"
# Additional quality lints applied to all crates.
pedantic = "warn"
# Allow the few patterns that `pedantic` flags but are common project-wide.
module_name_repetitions = "allow"
must_use_candidate = "allow"
[profile.release]
opt-level = "z"
overflow-checks = true
debug = 0
strip = "symbols"
debug-assertions = false
panic = "abort"
codegen-units = 1
lto = true
[profile.release-with-logs]
inherits = "release"
debug-assertions = true