From 0434b4b9aea11798805b309cad868cbb8d9c0444 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 30 Jan 2025 09:28:15 +0200 Subject: [PATCH] Update Rust crate unindent to 0.2.0 (#23881) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [unindent](https://redirect.github.com/dtolnay/indoc) | workspace.dependencies | minor | `0.1.7` -> `0.2.0` | --- ### Release Notes
dtolnay/indoc (unindent) ### [`v0.2.3`](https://redirect.github.com/dtolnay/indoc/releases/tag/0.2.3) [Compare Source](https://redirect.github.com/dtolnay/indoc/compare/0.2.2...0.2.3) - Update to proc-macro-hack 0.4 ### [`v0.2.2`](https://redirect.github.com/dtolnay/indoc/releases/tag/0.2.2) [Compare Source](https://redirect.github.com/dtolnay/indoc/compare/0.2.1...0.2.2) - Fix a shared library error when using indoc from a binary and running outside of Cargo ([#​15](https://redirect.github.com/dtolnay/indoc/issues/15)) ### [`v0.2.1`](https://redirect.github.com/dtolnay/indoc/releases/tag/0.2.1) [Compare Source](https://redirect.github.com/dtolnay/indoc/compare/0.2.0...0.2.1) - Add an `unstable` feature that changes the implementation to be a Macros 2.0 macro. This is required in call sites that need a string literal rather than just a &'static str, such as in a format string. ([#​12](https://redirect.github.com/dtolnay/indoc/issues/12)) ```toml [dependencies] indoc = { version = "0.2.1", features = ["unstable"] } ``` ```rust #![feature(proc_macro)] extern crate indoc; use indoc::indoc; fn main() { let username = "Boscop"; let body = "Check this out"; let message = format!( indoc!(" Hello {username} ======{underline} {body} "), username = username, underline = "=".repeat(username.len()), body = body, ); print!("{}", message); } ``` ### [`v0.2.0`](https://redirect.github.com/dtolnay/indoc/releases/tag/0.2.0) [Compare Source](https://redirect.github.com/dtolnay/indoc/compare/0.1.11...0.2.0) - Rewrite to use [`proc-macro-hack`](https://redirect.github.com/dtolnay/proc-macro-hack) and work on stable Rust
--- ### Configuration 📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- Release Notes: - N/A Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Cargo.lock | 6 +++--- Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f11655e8c388411e0fe00097934d2b1f839f5d29..43bac9dbc7019f822390e0c6687e6b8e08f11a72 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14316,9 +14316,9 @@ checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e" [[package]] name = "unindent" -version = "0.1.11" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1766d682d402817b5ac4490b3c3002d91dfa0d22812f341609f97b08757359c" +checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce" [[package]] name = "untrusted" @@ -15403,7 +15403,7 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.59.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 0273c1b56c2365f2556ec048f96476fb2a3f18fe..927d69c047fc4cf57e7fd0e13442855f04b4cbd2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -533,7 +533,7 @@ tree-sitter-rust = "0.23" tree-sitter-typescript = "0.23" tree-sitter-yaml = { git = "https://github.com/zed-industries/tree-sitter-yaml", rev = "baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a" } unicase = "2.6" -unindent = "0.1.7" +unindent = "0.2.0" unicode-segmentation = "1.10" unicode-script = "0.5.7" url = "2.2"