@@ -25,20 +25,20 @@ pub(crate) mod util;
25
25
///
26
26
/// ### Root Attribute Arguments:
27
27
/// - `all_positional: bool` Positional mode means that the parameters of the RPC call are expected to be a JSON array,
28
- /// which will be parsed as a tuple of this function's arguments.
28
+ /// which will be parsed as a tuple of this function's arguments.
29
29
/// - `ts_outdir: Option<String>` Set the path where typescript definitions are written to (relative to the crate root).
30
- /// If not set, no typescript definitions will be written.
30
+ /// If not set, no typescript definitions will be written.
31
31
/// - `openrpc_outdir: Option<String>` Set the path where openrpc specification file will be written to (relative to the crate root).
32
- /// If not set, no openrpc definition file will be written.
32
+ /// If not set, no openrpc definition file will be written.
33
33
///
34
34
/// Note that you need to specify atleast one type definition output: `ts_outdir`, `openrpc_outdir` or both.
35
35
///
36
36
/// ### Method Attribute Arguments:
37
37
/// - `name: Option<String>` Set the name of the RPC method. Defaults to the function name.
38
38
/// - `notification: bool` Make this a notification method. Notifications are received like method calls but cannot
39
- /// return anything.
39
+ /// return anything.
40
40
/// - `positional: bool` Positional mode means that the parameters of the RPC call are expected to be a JSON array,
41
- /// which will be parsed as a tuple of this function's arguments.
41
+ /// which will be parsed as a tuple of this function's arguments.
42
42
#[ proc_macro_attribute]
43
43
pub fn rpc ( attr : TokenStream , tokens : TokenStream ) -> TokenStream {
44
44
let item = parse_macro_input ! ( tokens as Item ) ;
0 commit comments