Skip to content

Add support for a export_name attribute to control the name of the symbol that is exported #8735

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

Closed
huonw opened this issue Aug 24, 2013 · 0 comments
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) A-linkage Area: linking into static, shared libraries and binaries C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@huonw
Copy link
Member

huonw commented Aug 24, 2013

Similar to #[no_mangle] but allows exporting symbols named a keyword (e.g. @jensnockert tells me that Arduino requires a function called loop).

#[export_name="loop"] 
fn arduino_loop() { // becomes the `loop` symbol
 // ...
}

(Name is entirely bikeshed-able; I have no connection to export_name.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) A-linkage Area: linking into static, shared libraries and binaries C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant