Skip to content

Prepare for Rust 1.100: dependency cooldown, clippy fix, rusqlite security bump - #9

Merged
FuouM merged 2 commits into
mainfrom
ccr-16a81aee-7l8lnh
Nov 13, 2026
Merged

FuouM merged 2 commits into
mainfrom
ccr-16a81aee-7l8lnh

Conversation

@FuouM

@FuouM FuouM commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

Rust 1.100.0 was released on 2026-11-12. CI already uses dtolnay/rust-toolchain@stable, so CI will build with 1.100 without any toolchain change. This PR makes these changes for it:

  • Dependency cooldown: adds src-tauri/.cargo/config.toml with registry.global-min-publish-age = "7 days". Cargo 1.100's resolver will then skip crate versions published less than 7 days ago, unless they are already in Cargo.lock. This limits exposure to freshly published malicious crates. For an urgent update, override it with CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow.
  • .gitignore: adds a !src-tauri/.cargo/ exception. The existing .cargo/ rule is meant for the local Cargo home, and without the exception it would also hide the new config file.
  • Clippy fix: is_ipv6_forbidden in src-tauri/src/commands/http.rs now returns its condition directly. 1.100's clippy reports this as needless_bool, and CI denies all warnings. Behavior is unchanged. This same lint is what fails CI on Feat/soulwindow #8.
  • Security fix: bumps rusqlite from 0.31 to 0.41.1, which pulls in libsqlite3-sys 0.39.1. This fixes RUSTSEC-2026-0459, a CVE in the bundled SQLite, which makes cargo audit fail on every branch right now. rusqlite 0.42 was skipped because the new cooldown excludes it.
    • Connection::authorizer now takes &mut self and returns a Result. The dbExecute, dbQuery and dbExecuteBatch commands now return that error instead of ignoring it, so SQL never runs without the authorizer installed.

Testing

Run on the Linux host with Rust 1.100.0:

  • cargo clippy --all-targets -- -D warnings: clean.
  • cargo test: 26/26 pass.
  • cargo audit: no vulnerabilities. The 7 existing allowed warnings remain.

Not tested: the Android and Windows release builds.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YNsxT4GmbhNBb8tPDA7G71

…ppy lint

- Add src-tauri/.cargo/config.toml setting registry.global-min-publish-age
  to 7 days, so the resolver skips freshly published crate versions
  (supply-chain hardening, stabilized in Cargo 1.100).
- Allow src-tauri/.cargo/ through .gitignore (the .cargo/ rule targets the
  local CARGO_HOME).
- Return the boolean expression directly in is_ipv6_forbidden, fixing the
  new clippy lint on 1.100 (no behavior change).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YNsxT4GmbhNBb8tPDA7G71
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f8f4bde8-75b6-45bb-933a-515cccdb05f7
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

cargo audit fails on libsqlite3-sys 0.28 (bundled SQLite affected by
CVE-2026-119375; fixed in libsqlite3-sys >= 0.39). rusqlite 0.41.1 pulls
in libsqlite3-sys 0.39.1. 0.42 is skipped by the new 7-day cooldown.

rusqlite API changes handled:
- Connection::authorizer now takes &mut self: bind the mutex guards as mut.
- Connection::authorizer now returns Result: propagate the error in the
  dbExecute/dbQuery/dbExecuteBatch commands instead of ignoring it, so a
  failed authorizer install never runs SQL unrestricted; unwrap in tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YNsxT4GmbhNBb8tPDA7G71
@FuouM FuouM changed the title Prepare for Rust 1.100: enable Cargo dependency cooldown, fix new clippy lint Prepare for Rust 1.100: dependency cooldown, clippy fix, rusqlite security bump Nov 13, 2026
@FuouM
FuouM merged commit eba5b7c into main Nov 13, 2026
6 checks passed
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