Skip to content

rust: update msrv to 1.85 - v5 #15167

Closed
jasonish wants to merge 12 commits into
OISF:mainfrom
jasonish:rust-1.8x/v5
Closed

rust: update msrv to 1.85 - v5 #15167
jasonish wants to merge 12 commits into
OISF:mainfrom
jasonish:rust-1.8x/v5

Conversation

@jasonish
Copy link
Copy Markdown
Member

@jasonish jasonish commented Apr 6, 2026

Rebased.

jasonish added 11 commits April 6, 2026 12:12
Don't install extra repo's in the script, do it in CI. These are covered
by the documentation as they vary depending on the version and variant.
Debian 13 ships Rust 1.85 by default, Ubuntu requires installing a
specific patch to get newer then 1.75. So to support a newer MSRV,
these operating systems need different examples.
1.85 was chosen for now as it supports edition 2024. However, we have
not set our edition to 2024 yet.
Disable the clippy warning for not using modern C string
literals. Ubuntu 24.04 still ships cbindgen 0.26.0 that doesn't
support these, so migrating to modern C string literals would require
Ubuntu 24.04 users wishing to build from git to install cbindgen with
cargo.
To pick up a newer version of Rust.
@jasonish jasonish requested review from a team and jufajardini as code owners April 6, 2026 18:14
This is required when rustc is not in a standard path. The other
cbindgen calls already had this, so it was just missed while adding the
ffi bindings, but shows up when rustc is at a path like
/usr/lib/rust-1.89/bin/rustc, but that directory is not in your path.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.72%. Comparing base (336b50a) to head (0db4e83).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15167   +/-   ##
=======================================
  Coverage   82.71%   82.72%           
=======================================
  Files         993      993           
  Lines      271737   271737           
=======================================
+ Hits       224772   224782   +10     
+ Misses      46965    46955   -10     
Flag Coverage Δ
fuzzcorpus 61.12% <ø> (+<0.01%) ⬆️
livemode 18.35% <ø> (-0.02%) ⬇️
netns 22.58% <ø> (-0.03%) ⬇️
pcap 45.30% <ø> (-0.02%) ⬇️
suricata-verify 66.26% <ø> (-0.01%) ⬇️
unittests 58.86% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@suricata-qa
Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 30816

1 similar comment
@suricata-qa
Copy link
Copy Markdown

Information: QA ran without warnings.

Pipeline = 30816

@catenacyber
Copy link
Copy Markdown
Contributor

I guess it is ok, do not we use a ticket for this work ?

@victorjulien
Copy link
Copy Markdown
Member

FYI I'm working through supporting this in my own CI, w/o it affecting <9.

@jasonish
Copy link
Copy Markdown
Member Author

jasonish commented May 6, 2026

Replaced by #15328

@jasonish jasonish closed this May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants