Skip to main content

Crate docstring_attr_silly

Crate docstring_attr_silly 

Source
Expand description

§#[docstring]

This crate allows you to annotate your crates with #[docstring], and subsequently use Python-style “docstrings” in them:


#[docstring]
fn foobar() -> i32 {
    "returns a really cool number";

    4
}

§Features

Sure!

§Known Limitations

  1. It’s really silly.
  2. Needs ; after the docstring because I was too lazy to make it work without (see source code)

Attribute Macros§

docstring