From bdbfb191509baf233e43433169a45b58795af769 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 9 Feb 2024 09:44:48 -0600 Subject: [PATCH 1/2] feat: Add support for Diagnostic::message_type --- src/format/diagnostic.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/format/diagnostic.rs b/src/format/diagnostic.rs index 0a2698d..0f254f1 100644 --- a/src/format/diagnostic.rs +++ b/src/format/diagnostic.rs @@ -117,6 +117,11 @@ pub enum Applicability { #[cfg_attr(feature = "strict_unstable", serde(deny_unknown_fields))] #[non_exhaustive] pub struct Diagnostic<'a> { + /// Can be used to distinguish the different formats. + /// + /// When parsing, care should be taken to be forwards-compatible with future changes to the format. + #[serde(borrow, rename = "$message_type")] + pub message_type: Option>, /// The error message of this diagnostic. #[serde(borrow)] pub message: CowStr<'a>, From ac965c4ce9eba60a19c3a6cc23c0c6001320ac2e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 03:53:33 +0000 Subject: [PATCH 2/2] chore(deps): update msrv to v1.73 --- .clippy.toml | 2 +- .github/workflows/ci.yml | 6 +++--- Cargo.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.clippy.toml b/.clippy.toml index 81d631e..f631664 100644 --- a/.clippy.toml +++ b/.clippy.toml @@ -1,4 +1,4 @@ -msrv = "1.72" # MSRV +msrv = "1.73" # MSRV warn-on-all-wildcard-imports = true allow-expect-in-tests = true allow-unwrap-in-tests = true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8acac71..e962915 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: - name: No-default features run: cargo test --workspace --no-default-features msrv: - name: "Check MSRV: 1.72" + name: "Check MSRV: 1.73" runs-on: ubuntu-latest steps: - name: Checkout repository @@ -57,7 +57,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - toolchain: "1.72" # MSRV + toolchain: "1.73" # MSRV - uses: Swatinem/rust-cache@v2 - name: Default features run: cargo check --workspace --all-targets @@ -119,7 +119,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - toolchain: "1.72" # MSRV + toolchain: "1.73" # MSRV components: clippy - uses: Swatinem/rust-cache@v2 - name: Install SARIF tools diff --git a/Cargo.toml b/Cargo.toml index c2ea6e3..5904547 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ categories = ["development-tools::build-utils"] keywords = ["cargo", "packaging"] license = "MIT OR Apache-2.0" edition = "2021" -rust-version = "1.72" # MSRV +rust-version = "1.73" # MSRV include = [ "build.rs", "src/**/*",