Skip to content

Replace unmaintained paste crate with pastey#104

Open
darjus wants to merge 1 commit into
kubo:masterfrom
darjus:replace-paste-with-pastey
Open

Replace unmaintained paste crate with pastey#104
darjus wants to merge 1 commit into
kubo:masterfrom
darjus:replace-paste-with-pastey

Conversation

@darjus
Copy link
Copy Markdown

@darjus darjus commented Mar 10, 2026

Summary

  • Replace paste dependency with pastey (RUSTSEC-2024-0436)
  • Update all paste::item! invocations to pastey::paste! across src/lib.rs and src/sql_type/lob.rs
  • No functional changes; inner [< >] concatenation syntax and :lower/:upper modifiers are unchanged

Test plan

  • cargo build passes
  • cargo test fails for unrelated tests (due to missing test schema objects (TestTempTable, TestStrings, TestDataTypes, test_vector_type, pkg_TestOutCursors) that require a SYSDBA-level setup script)
test result: FAILED. 23 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.54s
  • cargo audit no longer flags RUSTSEC-2024-0436
cargo audit
    Fetching advisory database from `https://github.com/RustSec/advisory-db.git`
      Loaded 949 security advisories (from /Users/dloktevi/.cargo/advisory-db)
    Updating crates.io index
    Scanning Cargo.lock for vulnerabilities (43 crate dependencies)

`paste` v1.0.15 is flagged by RUSTSEC-2024-0436 as unmaintained.
`pastey` is the recommended drop-in successor. The only API change is
`paste::item!` → `pastey::paste!` (the `item!` macro was unified into
`paste!` in the successor crate).
@darjus darjus marked this pull request as ready for review March 10, 2026 21:46
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