From be14ddc0d510b26650ca47d47dd8e19d57821019 Mon Sep 17 00:00:00 2001 From: Eric Rodrigues Pires Date: Wed, 21 Oct 2026 06:47:11 -0300 Subject: [PATCH] Bump MSRV to 1.95.0 --- .github/workflows/release.yml | 2 +- .github/workflows/validate.yml | 2 +- .tack/pins.lock.json | 9 +++--- .tack/pins.toml | 25 ++-------------- CHANGELOG.md | 1 + Cargo.lock | 53 ++++++++++++++++++++++++++++++++-- Cargo.toml | 4 +-- now.nix | 4 +++ 8 files changed, 67 insertions(+), 33 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46e1936..6c0a916 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ permissions: contents: read env: - RUST_VERSION: "1.97.0" + RUST_VERSION: "1.99.1" CARGO_INCREMENTAL: "0" CARGO_PROFILE_TEST_DEBUG: "0" diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index df805fc..f414eb8 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -7,7 +7,7 @@ permissions: contents: read env: - RUST_MSRV: 1.88.0 + RUST_MSRV: 1.95.0 CARGO_INCREMENTAL: 0 CARGO_PROFILE_TEST_DEBUG: 0 CARGO_LLVM_COV_VERSION: 0.6.20 diff --git a/.tack/pins.lock.json b/.tack/pins.lock.json index 97fdbb0..7fd8b95 100644 --- a/.tack/pins.lock.json +++ b/.tack/pins.lock.json @@ -1,7 +1,8 @@ { "$declared": { "nixpkgs": "github:NixOS/nixpkgs/nixpkgs-unstable", - "now": "git+https://codeberg.org/now-runner/now.git" + "now": "git+https://codeberg.org/now-runner/now.git", + "rust-overlay": "github:oxalica/rust-overlay/master" }, "nixpkgs": { "type": "github", @@ -23,8 +24,8 @@ "type": "github", "owner": "oxalica", "repo": "rust-overlay", - "rev": "4e9bb05a9ab6c37dc74c22974ebed6e36dc73eb2", - "narHash": "sha256-M8elY2UShg4ZuLTiRLEHO+ae5xQFp3/ReQdxp/R+1UU=", - "lastModified": 1790407471 + "rev": "83dd732f2428827f35d997deae108a2ced5125f4", + "narHash": "sha256-mrM+zFDRO1pI85t2SEq5R739BIq7Nv5XkFtVZK9nkZM=", + "lastModified": 1792567368 } } diff --git a/.tack/pins.toml b/.tack/pins.toml index ba1c13b..060b650 100644 --- a/.tack/pins.toml +++ b/.tack/pins.toml @@ -1,26 +1,5 @@ -# tack pins. edit by hand or with tack add / rm / alias -# nix reads pins.lock.json; this file drives tack update - -# shorturl schemes. scheme:rest expands rest into {path} -[shorturls] -# gh = "github:{path}" - -# all_follow: input name -> top-level pin it follows wherever it appears -# opt out per-input with exclude_follow -[all_follow] -# nixpkgs = "nixpkgs" -# nixpkgs = ["nixpkgs-stable", "nixpkgs-unstable"] - -# [inputs.] fields -# url required, shorturl ok; ?rev= pins an exact commit -# type flake (default), fetch, or fixed -# flake legacy false means type = "fetch" -# follows { child = "pin" } override map -# exclude_follow all_follow names to skip -# dir subdir holding flake.nix -# submodules fetch git submodules -# unpack fixed-only: tarball or file -[inputs] +[tack] +recomposable = true [inputs.nixpkgs] url = "github:NixOS/nixpkgs/nixpkgs-unstable" diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b4d887..2657cad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ### Changed +- Bump MSRV to 1.95.0. - Update dependencies. ## 0.10.3 (2026-08-14) diff --git a/Cargo.lock b/Cargo.lock index 57524d8..5f4c378 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1366,6 +1366,16 @@ dependencies = [ "ctutils", ] +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.13.0", + "objc2", +] + [[package]] name = "displaydoc" version = "0.2.6" @@ -3174,6 +3184,15 @@ dependencies = [ "libc", ] +[[package]] +name = "objc2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8" +dependencies = [ + "objc2-encode", +] + [[package]] name = "objc2-core-foundation" version = "0.3.2" @@ -3181,6 +3200,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" dependencies = [ "bitflags 2.13.0", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.0", + "objc2", ] [[package]] @@ -3193,6 +3230,17 @@ dependencies = [ "objc2-core-foundation", ] +[[package]] +name = "objc2-open-directory" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb82bed227edf5201dfedf072bba4015a33d3d4a98519837295a90f0a23f676d" +dependencies = [ + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + [[package]] name = "object" version = "0.37.3" @@ -5092,15 +5140,16 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.38.4" +version = "0.39.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92ab6a2f8bfe508deb3c6406578252e491d299cbbf3bc0529ecc3313aee4a52f" +checksum = "d2071df9448915b71c4fe6d25deaf1c22f12bd234f01540b77312bb8e41361e6" dependencies = [ "libc", "memchr", "ntapi", "objc2-core-foundation", "objc2-io-kit", + "objc2-open-directory", "windows", ] diff --git a/Cargo.toml b/Cargo.toml index 67db0bd..95614b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "sandhole" version = "0.10.3" edition = "2024" -rust-version = "1.88.0" +rust-version = "1.95.0" description = "Expose HTTP/SSH/TCP services through SSH port forwarding." repository = "https://codeberg.org/sandhole/sandhole" homepage = "https://sandhole.com.br/" @@ -101,7 +101,7 @@ serde = { version = "1.0.229", default-features = false, features = [ ] } serde_json = "1.0.154" socket2 = { workspace = true } -sysinfo = "0.38.4" # 0.39.x requires MSRV bump to 1.95.0 +sysinfo = "0.39.6" thiserror = "2.0.21" tokio = { workspace = true } tokio-rustls = "0.26.6" diff --git a/now.nix b/now.nix index f155472..0108fc6 100644 --- a/now.nix +++ b/now.nix @@ -92,15 +92,19 @@ in { path = [ pkgs.minica ]; run = '' + set -euo pipefail minica -ca-cert tests/data/ca/rootCA.pem -ca-key tests/data/ca/rootCA-key.pem -domains 'localhost' mv localhost/cert.pem tests/data/certificates/localhost/fullchain.pem mv localhost/key.pem tests/data/certificates/localhost/privkey.pem + rm -r localhost/ minica -ca-cert tests/data/ca/rootCA.pem -ca-key tests/data/ca/rootCA-key.pem -domains 'foobar.tld,*.foobar.tld' mv foobar.tld/cert.pem tests/data/certificates/foobar.tld/fullchain.pem mv foobar.tld/key.pem tests/data/certificates/foobar.tld/privkey.pem + rm -r foobar.tld/ minica -ca-cert tests/data/ca/rootCA.pem -ca-key tests/data/ca/rootCA-key.pem -domains 'sandhole.com.br' mv sandhole.com.br/cert.pem tests/data/custom_certificate/fullchain.pem mv sandhole.com.br/key.pem tests/data/custom_certificate/privkey.pem + rm -r sandhole.com.br/ ''; } ]; -- knotmirror 0.0.1