-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Split Module Definitions #1241
Comments
We could also just allow native function declarations in regular modules. We could even eliminate native mods altogether and just give regular mods some attributes to use by default for native functions, like:
|
Just chiming in, I like the idea of having For example, for linking to something like sqlite3.
That way, link definitions are kept in the crate file (which is already used to determine compilation anyway) and the information doesn't have to be repeated for every native module. The native macro would essentially be the equivalent of |
I think between export globbing and the reforms planned on extern, this can safely be put to rest. We'll be able to declare extern functions one-by-one, and permitting multiple fragments of a module seems like .. a plausible way to address this space, but probably a redundant one, given all the other options. Closing. |
* Now gen-c display the c file instead of the goto binnary. Co-authored-by: Jérôme Dubois <[email protected]>
This is work toward rust-lang#1241.
This is work toward rust-lang#1241.
Within the same file and module, modules should be able to be split up and combined at compile-time. This would allow putting non-native functions in a native module, in turn allowing convenient use of opaque forms. For example:
The text was updated successfully, but these errors were encountered: