From 77cde7f23448d8c229d9b819c1c604e6b8e0975f Mon Sep 17 00:00:00 2001 From: IceDynamix <22303902+IceDynamix@users.noreply.github.com> Date: Wed, 4 Dec 2024 03:10:17 +0100 Subject: [PATCH] disable overflow checks in debug profile --- Cargo.toml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1e9a2b6..c5709b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" @@ -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