Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clippy.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# For general information about this file, check
# https://doc.rust-lang.org/stable/clippy/configuration.html

msrv = "1.75"
msrv = "1.88"

absolute-paths-allowed-crates = [ "gimli" ]
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
with:
# Please adjust README, `rust-version` field in Cargo.toml,
# and `msrv` in .clippy.toml when bumping version.
toolchain: 1.75.0
toolchain: 1.88.0
- uses: Swatinem/rust-cache@v2
- run: cargo build --features="apk,backtrace,bpf,demangle,dwarf,gsym,tracing"
- run: cargo build --package=blazesym-c
Expand Down
1 change: 1 addition & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
blank_lines_upper_bound = 2
edition = "2021"
imports_granularity = "item"
trailing_semicolon = false
wrap_comments = true
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Unreleased
----------
- Bumped minimum supported Rust version to `1.88`


0.2.3
-----
- Added support for `/usr/lib/debug/.build-id` debug link target
Expand Down
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default-members = ["."]

[workspace.package]
edition = "2021"
rust-version = "1.75"
rust-version = "1.88"
license = "BSD-3-Clause"
repository = "https://github.com/libbpf/blazesym"
homepage = "https://github.com/libbpf/blazesym"
Expand All @@ -36,10 +36,11 @@ collapsible-if = "allow"
fn-to-numeric-cast = "allow"
let-and-return = "allow"
let-unit-value = "allow"
# TODO: Remove once we use Rust edition 2024.
manual-c-str-literals = "allow"
module-inception = "allow"
type-complexity = "allow"
absolute-paths = "warn"
allow-attributes = "warn"
clone-on-ref-ptr = "warn"
dbg-macro = "warn"
doc-markdown = "warn"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![coverage](https://codecov.io/gh/libbpf/blazesym/branch/main/graph/badge.svg)](https://codecov.io/gh/libbpf/blazesym)
[![crates.io](https://img.shields.io/crates/v/blazesym.svg)](https://crates.io/crates/blazesym)
[![Docs](https://docs.rs/blazesym/badge.svg)](https://docs.rs/blazesym)
[![rustc](https://img.shields.io/badge/rustc-1.75+-blue.svg)](https://blog.rust-lang.org/2023/12/28/Rust-1.75.0/)
[![rustc](https://img.shields.io/badge/rustc-1.88+-blue.svg)](https://blog.rust-lang.org/2025/06/26/Rust-1.88.0/)

# blazesym

Expand Down
5 changes: 5 additions & 0 deletions capi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Unreleased
----------
- Bumped minimum supported Rust version to `1.88`


0.1.7
-----
- Bumped maximum supported `blazesym` dependency to `0.2.3`
Expand Down
2 changes: 1 addition & 1 deletion capi/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![pipeline](https://github.com/libbpf/blazesym/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/libbpf/blazesym/actions/workflows/test.yml)
[![crates.io](https://img.shields.io/crates/v/blazesym-c.svg)](https://crates.io/crates/blazesym-c)
[![rustc](https://img.shields.io/badge/rustc-1.75+-blue.svg)](https://blog.rust-lang.org/2023/12/28/Rust-1.75.0/)
[![rustc](https://img.shields.io/badge/rustc-1.88+-blue.svg)](https://blog.rust-lang.org/2025/06/26/Rust-1.88.0/)

blazesym-c
==========
Expand Down
2 changes: 1 addition & 1 deletion capi/src/inspect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl Default for blaze_inspect_elf_src {
}
}

#[cfg_attr(not(test), allow(unused))]
#[cfg_attr(not(test), expect(unused))]
impl blaze_inspect_elf_src {
fn from(other: Elf) -> ManuallyDrop<Self> {
let Elf {
Expand Down
5 changes: 5 additions & 0 deletions cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Unreleased
----------
- Bumped minimum supported Rust version to `1.88`


0.1.14
------
- Bumped `blazesym` dependency to `0.2.3`
Expand Down
2 changes: 1 addition & 1 deletion cli/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![pipeline](https://github.com/libbpf/blazesym/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/libbpf/blazesym/actions/workflows/test.yml)
[![crates.io](https://img.shields.io/crates/v/blazecli.svg)](https://crates.io/crates/blazecli)
[![rustc](https://img.shields.io/badge/rustc-1.75+-blue.svg)](https://blog.rust-lang.org/2023/12/28/Rust-1.75.0/)
[![rustc](https://img.shields.io/badge/rustc-1.88+-blue.svg)](https://blog.rust-lang.org/2025/06/26/Rust-1.88.0/)

blazecli
========
Expand Down
2 changes: 1 addition & 1 deletion dev/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ fn toolize_impl<'p, S, I>(
&mut identity as &mut dyn FnMut(Command) -> Command
};

#[allow(clippy::redundant_closure_for_method_calls)]
#[expect(clippy::redundant_closure_for_method_calls)]
let () = run(
tool,
options
Expand Down
2 changes: 1 addition & 1 deletion src/elf/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod parser;
#[cfg_attr(not(feature = "dwarf"), allow(unused_variables))]
mod resolver;
#[allow(dead_code, non_camel_case_types)]
#[expect(dead_code, non_camel_case_types)]
pub(crate) mod types;

// Please adjust the documentation when adjusting directories.
Expand Down
1 change: 0 additions & 1 deletion src/elf/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,6 @@ where
}

/// Perform an operation on each symbol.
#[allow(clippy::needless_borrows_for_generic_args)]
pub(crate) fn for_each(&self, opts: &FindAddrOpts, f: &mut ForEachFn) -> Result<()> {
let cache = self.cache.ensure_symtab_cache()?;
let symtab = &cache.syms;
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mod private {

impl Sealed for io::Error {}
#[cfg(feature = "breakpad")]
#[allow(clippy::absolute_paths)]
#[expect(clippy::absolute_paths)]
impl Sealed for (&[u8], nom::Err<nom::error::VerboseError<&[u8]>>) {}
#[cfg(feature = "dwarf")]
impl Sealed for gimli::Error {}
Expand Down
2 changes: 1 addition & 1 deletion src/gsym/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use super::types::INFO_TYPE_INLINE_INFO;
use super::types::INFO_TYPE_LINE_TABLE_INFO;


#[allow(dead_code)]
#[expect(dead_code)]
enum Data<'dat> {
Mmap(Mmap),
Slice(&'dat [u8]),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ pub mod __private {

#[cfg(feature = "tracing")]
#[macro_use]
#[allow(unused_imports)]
#[expect(unused_imports)]
mod log {
pub(crate) use tracing::debug;
pub(crate) use tracing::error;
Expand Down
2 changes: 1 addition & 1 deletion src/maps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ mod tests {
}

/// Check that we can parse `/proc/self/maps`.
#[allow(clippy::suspicious_map)]
#[expect(clippy::suspicious_map)]
#[test]
fn self_map_parsing() {
let maps = parse(Pid::Slf).unwrap();
Expand Down
1 change: 0 additions & 1 deletion src/mmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ pub struct Mmap {
view: Range<u64>,
}

#[allow(rustdoc::private_intra_doc_links)]
impl Mmap {
/// Create a [`Builder`] for creating a customizable memory mapping.
#[doc(hidden)]
Expand Down
3 changes: 1 addition & 2 deletions src/normalize/ioctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::Result;
// From uapi/linux/fs.h
const PROCMAP_QUERY: usize = 0xC0686611; // _IOWR(PROCFS_IOCTL_MAGIC, 17, struct procmap_query)

#[allow(non_camel_case_types)]
#[expect(non_camel_case_types)]
type procmap_query_flags = c_int;

const PROCMAP_QUERY_VMA_READABLE: procmap_query_flags = 0x01;
Expand All @@ -32,7 +32,6 @@ const PROCMAP_QUERY_VMA_SHARED: procmap_query_flags = 0x08;
const PROCMAP_QUERY_COVERING_OR_NEXT_VMA: procmap_query_flags = 0x10;


#[allow(non_camel_case_types)]
#[repr(C)]
#[derive(Clone, Default)]
struct procmap_query {
Expand Down
1 change: 0 additions & 1 deletion src/symbolize/symbolizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,6 @@ impl Default for Symbolizer {


#[cfg(test)]
#[allow(clippy::missing_transmute_annotations)]
mod tests {
use super::*;

Expand Down
2 changes: 1 addition & 1 deletion src/test_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use crate::SymType;
///
/// This function returns the symbol information of the function along
/// with it's absolute address in the memory mapped region.
#[allow(clippy::missing_transmute_annotations)]
#[expect(clippy::missing_transmute_annotations)]
pub fn find_the_answer_fn(mmap: &Mmap) -> (inspect::SymInfo<'static>, Addr) {
// Look up the address of the `the_answer` function inside of the shared
// object.
Expand Down
3 changes: 1 addition & 2 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ pub fn stat(path: &Path) -> io::Result<libc::stat> {

#[cfg(linux)]
#[cfg(test)]
#[allow(clippy::absolute_paths)]
#[expect(clippy::absolute_paths)]
fn fstat(fd: std::os::unix::io::RawFd) -> io::Result<libc::stat> {
let mut dst = MaybeUninit::uninit();
let rc = unsafe { libc::fstat(fd, dst.as_mut_ptr()) };
Expand Down Expand Up @@ -373,7 +373,6 @@ where
None
}

#[allow(dead_code)]
pub(crate) fn find_lowest_match_by_key<T, B, F>(slice: &[T], b: &B, mut f: F) -> Option<usize>
where
F: FnMut(&T) -> B,
Expand Down
Loading