Skip to content

Bump toml to 0.9#442

Open
glamberson wants to merge 1 commit intoestk:mainfrom
lamco-admin:bump-toml-0.9
Open

Bump toml to 0.9#442
glamberson wants to merge 1 commit intoestk:mainfrom
lamco-admin:bump-toml-0.9

Conversation

@glamberson
Copy link
Copy Markdown

The previous <0.8.10 upper bound on toml was set to avoid the MSRV bump that toml 0.8.10 introduced (1.67 to 1.69). That concern no longer applies:

  • log4rs now sets rust-version = "1.82", far above the range any version of toml would require.
  • toml 0.9.0's MSRV is 1.66, actually lower than the disallowed toml 0.8.10 (1.69). Moving to 0.9 is MSRV-neutral on this crate.

The single call site is src/config/file.rs:136, which uses toml::from_str(source). That entry point is stable across 0.8 and 0.9, so no source changes are needed.

Verification

  • cargo build: clean
  • cargo build --features toml_format: clean
  • cargo build --all-features: clean
  • cargo test --features toml_format: 4 passed, 0 failed
  • cargo test --all-features: 4 passed, 0 failed
  • cargo clippy --all-features --all-targets -- -D warnings: clean
  • cargo fmt --all --check: clean

Prior related PRs

PR #348 and PR #381 previously attempted to move toml forward and were closed on MSRV grounds. Current MSRV (1.82) is now much higher than anything the toml bump would force, so that consideration is resolved.

The previous <0.8.10 upper bound was added to avoid the MSRV bump
that toml 0.8.10 introduced (1.67 to 1.69). That rationale no
longer applies: this crate now sets rust-version = "1.82", so any
toml MSRV between 1.65 and 1.75 is well below the floor.

toml 0.9's MSRV is 1.66, which is strictly lower than the
disallowed toml 0.8.10 (1.69). The single call site
(src/config/file.rs:136) uses toml::from_str, which is stable
across 0.8 and 0.9. No code changes are required.

Verified:
  cargo build
  cargo build --features toml_format
  cargo build --all-features
  cargo test --features toml_format   (4 passed, 0 failed)
  cargo test --all-features           (4 passed, 0 failed)
  cargo clippy --all-features --all-targets -- -D warnings
  cargo fmt --all --check
@glamberson glamberson requested review from estk and gadunga as code owners April 19, 2026 17:52
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.

1 participant