-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
area/plugin-apiCategorizes the issue or PR as relating to the plugin API or SDK.Categorizes the issue or PR as relating to the plugin API or SDK.kind/docsCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.kind/usabilityCategorizes issue or PR as related to improving some aspect of usability.Categorizes issue or PR as related to improving some aspect of usability.rustPull requests that update Rust codePull requests that update Rust code
Milestone
Description
The current macro setup doesn't always play nicely with rust-analyzer and it would be nice to have better IDE support while writing plugin logic.
There might be a few ways to do this, but it might be possible to get a blanket implementation of the Guest trait to work?
// something like this maybe
impl<T: HttpHandlers> Guest for T {
// ...
}Alternatively, if we hit orphan rule issues, maybe:
struct Wrapper<T: HttpHandlers>(T);
impl<T: HttpHandlers> Guest for Wrapper<T> {
// ...
}We probably always need a macro somewhere, but this might cut down on how much the macro is doing and increase what we can document.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/plugin-apiCategorizes the issue or PR as relating to the plugin API or SDK.Categorizes the issue or PR as relating to the plugin API or SDK.kind/docsCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.kind/usabilityCategorizes issue or PR as related to improving some aspect of usability.Categorizes issue or PR as related to improving some aspect of usability.rustPull requests that update Rust codePull requests that update Rust code