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

Enum compatibility with serde #139

Open
alsam opened this issue Oct 6, 2022 · 0 comments
Open

Enum compatibility with serde #139

alsam opened this issue Oct 6, 2022 · 0 comments

Comments

@alsam
Copy link

alsam commented Oct 6, 2022

Hello, the issue is quite similar to Compatibility with serde, but for enum:

#[derive_ReprC]
#[repr(u8)]
#[derive(Serialize, Deserialize, Debug, Clone)]
#[allow(non_camel_case_types)]
pub enum Type {
    reg,
    mem,
    // see issue [Compatibility with serde](https://github.com/getditto/safer_ffi/issues/35)
    #[serde(rename = "clear-excl")]
    clear_excl,
    stop,
}

as you have fixed it for struct could you please do the same for enum?
Thanks!

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

No branches or pull requests

1 participant