Unverified Commit dcd3248b authored by Yt's avatar Yt Committed by GitHub
Browse files

Merge pull request #320605 from jpds/vector-0.39.0

vector: 0.38.0 → 0.39.0
parents b4d313ce c1d8b655
Loading
Loading
Loading
Loading
+916 −502

File changed.

Preview size limit exceeded, changes collapsed.

+5 −8
Original line number Diff line number Diff line
@@ -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;

+0 −12
Original line number Diff line number Diff line
--- ./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