include-doc 0.2.2

Include examples in your Rustdocs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct MyStruct;

fn setup_first_example(_: MyStruct) {}

fn setup_second_example(_: MyStruct) {}

pub fn my_first_example() {
    setup_first_example(MyStruct);
    println!("Hello, world!");
}

pub fn my_second_example() {
    setup_second_example(MyStruct);
    println!("Hello, world!");
}