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

vector: Add fix for Rust 1.89 elided lifetimes (#436860)

parents a8634c25 c9f97988
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  stdenv,
  lib,
  fetchFromGitHub,
  fetchpatch,
  rustPlatform,
  pkg-config,
  openssl,
@@ -63,6 +64,14 @@ rustPlatform.buildRustPackage {
    zlib
  ];

  patches = [
    (fetchpatch {
      name = "1.89-mismatched-lifetime-syntaxes.patch";
      url = "https://patch-diff.githubusercontent.com/raw/vectordotdev/vector/pull/23645.patch";
      hash = "sha256-2ADlF4/Z1uR3LR6608lA4tseh+MnHb097PACD/Nq6/0=";
    })
  ];

  # Rust 1.80.0 introduced the unexepcted_cfgs lint, which requires crates to allowlist custom cfg options that they inspect.
  # Upstream is working on fixing this in https://github.com/vectordotdev/vector/pull/20949, but silencing the lint lets us build again until then.
  # TODO remove when upgrading Vector