Skip to content

impl std::error::Error for TryDemangleError#89

Open
GrigorenkoPV wants to merge 5 commits intorust-lang:mainfrom
GrigorenkoPV:hi
Open

impl std::error::Error for TryDemangleError#89
GrigorenkoPV wants to merge 5 commits intorust-lang:mainfrom
GrigorenkoPV:hi

Conversation

@GrigorenkoPV
Copy link
Copy Markdown

@GrigorenkoPV GrigorenkoPV commented Mar 28, 2026

Closes #61

I've also explicitly set edition in Cargo.toml manifests to 2015 to silence cargo warnings.

While we're at it, I've also run cargo msrv bisection and found 1.60 to be the earliest version where this still builds.
So I've set it explicitly in the manifests.

Sadly, Error got into core only in 1.81.0, so I've used std::error::Error instead and gated the impl behind feature = "std". Alternatively, we might consider bumping MSRV. I mean, it doesn't seem like supporting old Rust versions makes much sense for a library that parses Rust symbol mangling. Maybe it would even make sense to move this into the main monorepo? IDK.

UPD: native-c's build script needs 1.77 MSRV. bumped it for the crate.

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.

TryDemangleError does not impl std::error::Error

1 participant