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

Make fixints usable through serde field attributes instead of wrappers #69

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

lachlansneff-parallel
Copy link
Contributor

This changes the (thankfully not public, by shear accident), fixint module to be usable through the #[serde(with = ...)] field attribute instead of wrappers.

For example:

#[derive(Serialize, Deserialize)]
pub struct DefinitelyBE {
    #[serde(with = "crate::fixint::be")]
    x: u16,
}

@netlify
Copy link

netlify bot commented Jul 15, 2022

Deploy Preview for cute-starship-2d9c9b canceled.

Name Link
🔨 Latest commit 7ee1e18
🔍 Latest deploy log https://app.netlify.com/sites/cute-starship-2d9c9b/deploys/62d1af45395be80008305b2a

@jamesmunns
Copy link
Owner

Awesome, thanks @lachlansneff-parallel!

@jamesmunns jamesmunns merged commit fc241da into jamesmunns:main Sep 30, 2022
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