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

[proc macros]: add alias attribute #440

Closed
niklasad1 opened this issue Aug 25, 2021 · 1 comment
Closed

[proc macros]: add alias attribute #440

niklasad1 opened this issue Aug 25, 2021 · 1 comment

Comments

@niklasad1
Copy link
Member

niklasad1 commented Aug 25, 2021

We want the proc macros to support aliases for a certain method or subscription such as:

pub trait Rpc {
	/// The server should respond to both `getKeys` and `getKeysWithAlias` with some method registered on the server.
	#[method(name = "getKeys", alias = "getKeysWithAlias")]
	async fn get_keys(&self) -> Vec<usize>
}
@niklasad1
Copy link
Member Author

Fixed by #442

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