diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9d31be..48c2939 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,7 @@ jobs: strategy: fail-fast: false matrix: - msrv: ["1.70.0"] + msrv: ["1.81.0"] os: ["ubuntu", "macOS", "windows"] runs-on: ${{ matrix.os }}-latest steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index c845c75..f3d4860 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,20 @@ All user visible changes to this project will be documented in this file. This p +## [0.2.0] · 202?-??-?? (unreleased) +[0.2.0]: /../../tree/v0.2.0 + +[Diff](/../../compare/v0.1.1...v0.2.0) + +### BC Breaks + +- Bumped up [MSRV] to 1.81 because for `#[expect]` attribute usage. ([todo]) + +[todo]: /../../commit/todo + + + + ## [0.1.1] · 2023-12-04 [0.1.1]: /../../tree/v0.1.1 @@ -33,4 +47,5 @@ All user visible changes to this project will be documented in this file. This p +[MSRV]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field [Semantic Versioning 2.0.0]: https://semver.org diff --git a/Cargo.toml b/Cargo.toml index 70d94f6..3c252ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "tracing-record-hierarchical" version = "0.1.1" edition = "2021" -rust-version = "1.70" +rust-version = "1.81" description = "Record parent `tracing::Span` fields from inside child `tracing::Span`'s context." authors = ["Instrumentisto Team "] license = "MIT OR Apache-2.0" diff --git a/README.md b/README.md index da64fd2..5913817 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ============================= [![crates.io](https://img.shields.io/crates/v/tracing-record-hierarchical.svg "crates.io")](https://crates.io/crates/tracing-record-hierarchical) -[![Rust 1.70+](https://img.shields.io/badge/rustc-1.70+-lightgray.svg "Rust 1.70+")](https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html) +[![Rust 1.81+](https://img.shields.io/badge/rustc-1.81+-lightgray.svg "Rust 1.81+")](https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html) [![Unsafe Forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg "Unsafe forbidden")](https://github.com/rust-secure-code/safety-dance) [![CI](https://github.com/instrumentisto/tracing-record-hierarchical-rs/workflows/CI/badge.svg?branch=main "CI")](https://github.com/instrumentisto/tracing-record-hierarchical-rs/actions?query=workflow%3ACI+branch%3Amain) [![Rust docs](https://docs.rs/tracing-record-hierarchical/badge.svg "Rust docs")](https://docs.rs/tracing-record-hierarchical) diff --git a/src/lib.rs b/src/lib.rs index f07d954..da329e2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,10 +22,13 @@ #![forbid(non_ascii_idents, unsafe_code)] #![warn( clippy::absolute_paths, + clippy::allow_attributes, + clippy::allow_attributes_without_reason, clippy::as_conversions, clippy::as_ptr_cast_mut, clippy::assertions_on_result_states, clippy::branches_sharing_code, + clippy::cfg_not_test, clippy::clear_with_drain, clippy::clone_on_ref_ptr, clippy::collection_is_never_read, @@ -96,6 +99,7 @@ clippy::rest_pat_in_fully_bound_structs, clippy::same_name_method, clippy::semicolon_inside_block, + clippy::set_contains_or_insert, clippy::shadow_unrelated, clippy::significant_drop_in_scrutinee, clippy::significant_drop_tightening, @@ -236,7 +240,10 @@ where V: field::Value, { _ = span.with_subscriber(|(id, dispatch)| { - #[allow(clippy::expect_used)] // intentional + #[expect( // intentional + clippy::expect_used, + reason = "no other error reporting is possible here", + )] let ctx = dispatch.downcast_ref::().expect( "add `HierarchicalRecord` `Layer` to your `tracing::Subscriber`", );