Crates.io | docstrings |
lib.rs | docstrings |
version | 0.1.1 |
source | src |
created_at | 2017-05-30 18:59:31.577905 |
updated_at | 2017-06-17 21:02:35.573085 |
description | Extract data from Markdown as used in Rust documentation strings |
homepage | |
repository | https://github.com/killercup/rust-docstrings |
max_upload_size | |
id | 16940 |
size | 38,151 |
This is a proof of concept.
This Rust library can be used to extract some data from documentation formatted as described here.
Rendered Documentation of master branch.
For example, given a string like this one:
Lorem ipsum
A longer description lorem ipsum dolor sit amet.
# Parameters
- `param1`: Foo
- `param2`: Bar
it will return structure like this:
DocBlock {
teaser: "Lorem ipsum",
description: Some("A longer description lorem ipsum dolor sit amet."),
sections: [
Parameters([
("param1", "Foo"),
("param2", "Bar")
])
]
}
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.