Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.2 housekeeping: non_exhaustive all the things #116

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

knickish
Copy link
Collaborator

@knickish knickish commented Oct 8, 2024

Fixed a handful of build warnings that show up in CI, and put non_exhaustive on most public structs so that they can be adjusted without breaking changes in future

@@ -16,7 +16,6 @@
//! For `#[nserde(..)]` supported attributes for each format check [Features support matrix](https://github.com/not-fl3/nanoserde#features-support-matrix)

#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(error_in_core))]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will set our msrv for no_std to 1.81, but I think it's worth it so that nightly isn't a concern any more

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will set our msrv for no_std to 1.81, but I think it's worth it so that nightly isn't a concern any more

I agree, 0.2 will be a good moment to push msrv!

@@ -61,12 +61,19 @@ pub trait DeBin: Sized {

/// The error message when failing to deserialize from raw bytes.
#[derive(Clone)]
#[non_exhaustive]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not ready to add new error messages right now, but this will at least let us make changes to this in future so that we can include a message field like in DeRonError or DeJsonError

@knickish knickish requested a review from not-fl3 October 8, 2024 16:11
@knickish knickish merged commit 25381dc into not-fl3:master Oct 10, 2024
16 checks passed
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.

2 participants