Macro module_doc

Source
macro_rules! module_doc {
    ($module:literal, $($fmt:tt)+) => { ... };
}
Expand description

Add module-level documention using interpolation of runtime expressions. The first argument module_doc! receives is the full module name; the second and followings are a format string, same to format!.

pyo3_stub_gen::module_doc!(
  "module.name",
  "Document for {} v{} ...",
  env!("CARGO_PKG_NAME"),
  env!("CARGO_PKG_VERSION")
);