Skip to content

Commit

Permalink
disable overflow checks in debug profile
Browse files Browse the repository at this point in the history
  • Loading branch information
IceDynamix committed Dec 4, 2024
1 parent e7b9f4e commit 77cde7f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ base64 = "0.22.1"
clap = { version = "4.5.17", features = ["derive"] }
color-eyre = "0.6.3"
pcap = "2.2.0"
protobuf = "~3.4.0" # match the protobuf version used in reliquary-codegen
protobuf = "~3.4.0" # match the protobuf version used in reliquary-codegen
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.128"
tracing = "0.1.40"
Expand All @@ -27,7 +27,13 @@ reliquary = { git = "https://github.com/IceDynamix/reliquary", tag = "v5.1.0" }
ureq = { version = "2.10.1", features = ["json"] }
reliquary = { git = "https://github.com/IceDynamix/reliquary", tag = "v5.1.0" }

[profile.dev]
# theres a field in the kcp protocol that hyv uses differently from the default implementation
# (some kind of timestamp), except that i don't know what it is exactly and i havent bothered
# to circumvent the addition that happens in the kcp library
overflow-checks = false

[profile.release]
opt-level = "z" # optimize for size
opt-level = "z" # optimize for size
lto = true
overflow-checks = false # Disable integer overflow checks.
overflow-checks = false # see comment above

0 comments on commit 77cde7f

Please sign in to comment.