Skip to content

fix: upgrade dependencies for FreeBSD 15+ compatibility#1734

Merged
Emilgardis merged 2 commits intocross-rs:mainfrom
seuros:freebsd-15-deps-upgrade
Jan 3, 2026
Merged

fix: upgrade dependencies for FreeBSD 15+ compatibility#1734
Emilgardis merged 2 commits intocross-rs:mainfrom
seuros:freebsd-15-deps-upgrade

Conversation

@seuros
Copy link
Copy Markdown
Contributor

@seuros seuros commented Jan 1, 2026

Happy new year

I upgraded all the crates while doing the refactoring.

Upgrades several dependencies with breaking API changes:

  • nix 0.26.2 → 0.30.1 (FreeBSD 15+ support)
  • thiserror 1.0 → 2.0
  • toml 0.7 → 0.9
  • which 4.4 → 8.0
  • const-sha1 0.2 → 0.3
  • signal-hook 0.3 → 0.4
  • directories 4.0 → 6.0

API migrations:

  • nix: errno() → Errno::last_raw(), from_i32() → from_raw()
  • const-sha1: ConstBuffer removed, use sha1() directly
  • toml: Deserializer::new() → Deserializer::parse()
  • which: enable default features for real-sys support

Upgrades several dependencies with breaking API changes:
- nix 0.26.2 → 0.30.1 (FreeBSD 15+ support)
- thiserror 1.0 → 2.0
- toml 0.7 → 0.9
- which 4.4 → 8.0
- const-sha1 0.2 → 0.3
- signal-hook 0.3 → 0.4
- directories 4.0 → 6.0

API migrations:
- nix: errno() → Errno::last_raw(), from_i32() → from_raw()
- const-sha1: ConstBuffer removed, use sha1() directly
- toml: Deserializer::new() → Deserializer::parse()
- which: enable default features for real-sys support
@seuros seuros requested a review from a team as a code owner January 1, 2026 11:52
@seuros
Copy link
Copy Markdown
Contributor Author

seuros commented Jan 1, 2026

one of the failure is not related to my update.

The other is ! Should we upgrade to edition 2024 ? I can upgrade the codebase.

@Emilgardis
Copy link
Copy Markdown
Member

Emilgardis commented Jan 2, 2026

You just need to update the version of cargo/rustc that we use in CI, do not have to upgrade the whole project to 2024. (cargo is perfectly capable of mixing editions between crates)

here's where you'd do that:

toolchain: 1.77.2 # MSRV, Minimally Supported Rust Version. Make sure to update README.md and clippy.toml

@seuros seuros force-pushed the freebsd-15-deps-upgrade branch from bd9747c to 56e860c Compare January 3, 2026 00:02
update to latest stable
@seuros seuros force-pushed the freebsd-15-deps-upgrade branch from 56e860c to 580f5d1 Compare January 3, 2026 00:30
Copy link
Copy Markdown
Member

@Emilgardis Emilgardis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! thank you!

@Emilgardis Emilgardis added the no-ci-targets PRs that do not affect or should skip any cross-compilation targets. label Jan 3, 2026
@Emilgardis Emilgardis added this to the v0.3.0 milestone Jan 3, 2026
@Emilgardis Emilgardis added this pull request to the merge queue Jan 3, 2026
Merged via the queue into cross-rs:main with commit a7151d0 Jan 3, 2026
20 checks passed
@seuros seuros deleted the freebsd-15-deps-upgrade branch January 3, 2026 09:23
github-merge-queue bot pushed a commit that referenced this pull request Mar 25, 2026
Closes #1736
Closes #1742

Reverts MSRV bump from #1734
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-ci-targets PRs that do not affect or should skip any cross-compilation targets.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants