Re: [PATCH v13 4/6] rust: module: update the module macro with module parameter support

2025-06-19 Thread Andreas Hindborg
"Benno Lossin" writes: > On Thu Jun 12, 2025 at 3:40 PM CEST, Andreas Hindborg wrote: >> + >> +fn emit_params(&mut self, info: &ModuleInfo) { >> +let Some(params) = &info.params else { >> +return; >> +}; >> + >> +for param in params { >> +let op

Re: [PATCH v13 4/6] rust: module: update the module macro with module parameter support

2025-06-18 Thread Benno Lossin
On Thu Jun 12, 2025 at 3:40 PM CEST, Andreas Hindborg wrote: > + > +fn emit_params(&mut self, info: &ModuleInfo) { > +let Some(params) = &info.params else { > +return; > +}; > + > +for param in params { > +let ops = param_ops_path(¶m.ptype); > + >

[PATCH v13 4/6] rust: module: update the module macro with module parameter support

2025-06-12 Thread Andreas Hindborg
Allow module parameters to be declared in the rust `module!` macro. Signed-off-by: Andreas Hindborg --- rust/macros/helpers.rs | 25 +++ rust/macros/lib.rs | 31 + rust/macros/module.rs | 175 ++--- 3 files changed, 221 insertions(+)