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

Support constants #104

Open
sffc opened this issue Nov 11, 2021 · 0 comments
Open

Support constants #104

sffc opened this issue Nov 11, 2021 · 0 comments
Labels
A-type-system Area: Additions and improvements to the types Diplomat supports enhancement New feature or request

Comments

@sffc
Copy link
Contributor

sffc commented Nov 11, 2021

#[diplomat::bridge]
pub mod ffi {
    pub const FOO: u32 = 0;
}

This should produce a FOO constant. Currently, the constant is just ignored.

@sffc sffc added the enhancement New feature or request label Nov 11, 2021
@Manishearth Manishearth added the A-type-system Area: Additions and improvements to the types Diplomat supports label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Additions and improvements to the types Diplomat supports enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants