Skip to content

Update dependencies#50

Merged
kpcyrd merged 17 commits into
mainfrom
update
May 16, 2026
Merged

Update dependencies#50
kpcyrd merged 17 commits into
mainfrom
update

Conversation

@kpcyrd
Copy link
Copy Markdown
Owner

@kpcyrd kpcyrd commented May 15, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the project’s Rust dependencies (and Rust edition) and adjusts source to compile against newer crate APIs (notably ureq, rand, and nix), plus adds unit tests for certificate parsing.

Changes:

  • Bump Rust edition to 2024 and update multiple dependencies (Cargo.toml/Cargo.lock).
  • Update code to match new APIs (capability dropping cfg, ureq request config + body reading, rand token generation).
  • Add unit tests for CertInfo parsing and days_left calculations.

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/sandbox.rs Makes Linux capabilities clearing conditional; changes supplementary group clearing behind a macOS cfg.
src/persist.rs Refactors live cert symlink parsing using let-chains; minor import reordering.
src/errors.rs Reorders anyhow re-exports.
src/daemon.rs Simplifies Host header extraction; import reordering.
src/check.rs Updates HTTP check logic for ureq v3 config/builder API and body reading.
src/chall.rs Updates random token generation for rand v0.10 APIs and adds clarifying comments.
src/cert.rs Adds PartialEq, introduces days_left_from, and adds certificate parsing/unit tests.
Cargo.toml Moves to Rust 2024 edition and bumps dependency versions.
Cargo.lock Regenerates lockfile for updated dependencies.
.github/FUNDING.yml Removes Patreon funding entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Cargo.toml
repository = "https://github.com/kpcyrd/acme-redirect"
readme = "README.md"
edition = "2021"
edition = "2024"
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed with c9cb7f5

Comment thread src/sandbox.rs

if let Some((uid, gid)) = user {
debug!("Dropping uid:gid to {}:{}", uid, gid);
#[cfg(not(target_os = "macos"))]
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Comment thread src/chall.rs Outdated
Copilot AI review requested due to automatic review settings May 16, 2026 23:04
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 11 changed files in this pull request and generated 1 comment.

Comment thread src/persist.rs Outdated
@kpcyrd kpcyrd merged commit 9628e9d into main May 16, 2026
2 checks passed
@kpcyrd kpcyrd deleted the update branch May 16, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants