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

Don't require modules to define an init function that does nothing #9

Open
ubolonton opened this issue Apr 22, 2019 · 0 comments
Open

Comments

@ubolonton
Copy link
Owner

ubolonton commented Apr 22, 2019

Often time, there's no initialization logic needed. Modules should be able to put #![emacs::module] at the root of the crate, instead of this:

// So much boilerplate!
#[emacs::module]
fn init(_: &Env) -> Result<()> {
    Ok(())
}

This needs to wait for Rust's issue #54726.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant