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

Declarative config. #23

Open
poljar opened this issue Jun 27, 2020 · 2 comments
Open

Declarative config. #23

poljar opened this issue Jun 27, 2020 · 2 comments

Comments

@poljar
Copy link
Owner

poljar commented Jun 27, 2020

The Matrix plugin has macros to define a config in a declarative way, once that is tested out a bit better we'll likely want to import this here.

The macros currently can't take set a callback for the config option, support for this should probably be added before the macros are moved here.

The macros can be found at: https://github.com/poljar/weechat-matrix-rs/blob/master/src/config_macros.rs#L200

@poljar
Copy link
Owner Author

poljar commented Jul 18, 2020

This has been imported but it requires nightly, it's behind a config-macro feature flag.

It's still missing a way to define change callbacks for the options.

@poljar
Copy link
Owner Author

poljar commented Jul 20, 2020

It doesn't require nightly as of Rust 1.45. The macros now generate docstrings for the section and option getters.

Callbacks for the options are still missing.

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