vector: 0.38.0 → 0.39.0:

Drop patch, use variables instead.
This commit is contained in:
Jonathan Davies 2024-06-17 15:46:53 +01:00
parent 77545ae726
commit c1d8b65552
No known key found for this signature in database
3 changed files with 921 additions and 522 deletions

File diff suppressed because it is too large Load Diff

View File

@ -36,7 +36,7 @@
let
pname = "vector";
version = "0.38.0";
version = "0.39.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
@ -45,15 +45,9 @@ rustPlatform.buildRustPackage {
owner = "vectordotdev";
repo = pname;
rev = "v${version}";
hash = "sha256-sJgryN6/XaM1qXxv76/5RGanUpBYxIsGYGToOCXDvwA=";
hash = "sha256-S6yzh8ISIh6xzw5DwQaoZdpfmDHE9gfjlEtxIZerSak=";
};
patches = [
# Enable LTO to bring down binary size
# Adapted from https://github.com/vectordotdev/vector/pull/20034
./vector-lto.patch
];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
@ -83,6 +77,9 @@ rustPlatform.buildRustPackage {
# needed to dynamically link rdkafka
CARGO_FEATURE_DYNAMIC_LINKING=1;
CARGO_PROFILE_RELEASE_LTO = "fat";
CARGO_PROFILE_RELEASE_CODEGEN_UNITS = "1";
buildNoDefaultFeatures = true;
buildFeatures = features;

View File

@ -1,12 +0,0 @@
--- ./Cargo.toml 2024-04-10 00:01:12.033806583 +0100
+++ ./Cargo.toml 2024-04-10 00:01:48.324228125 +0100
@@ -45,7 +45,8 @@ path = "tests/e2e/mod.rs"
# This results in roughly a 5% reduction in performance when compiling locally vs when
# compiled via the CI pipeline.
[profile.release]
-debug = false # Do not include debug symbols in the executable.
+lto = true
+codegen-units = 1
[profile.bench]
debug = true