I tried to do
in the rust. And I found that comments are ///simply ignored when a function is created using a macro like this:
/// docs
py_module_initializer!(libx, initlibx PyInit_libx |py, m| {
Ok(())
});
with:
error: missing documentation for a function
113 | py_module_initializer!(libx initlibx PyInit_libx |py, m| {
| ^
I thought the macro would just add a function definition after ///. What is wrong here?
source
share