| Crates.io | doc_file |
| lib.rs | doc_file |
| version | 0.2.0 |
| created_at | 2014-12-08 05:55:55.996082+00 |
| updated_at | 2015-12-11 23:58:31.338387+00 |
| description | Move your Rust crate's documentation into external files. |
| homepage | |
| repository | https://github.com/tomjakubowski/doc_file |
| max_upload_size | |
| id | 484 |
| size | 5,381 |
Move your Rust crate's documentation into external files.
This is a proof of concept implementation of rust-lang/rust#15470.
I hope to iron out questions and discover issues out of tree and then
contribute this back to rustc itself.
#![feature(phase)]
// Paths are relative to the source file.
#![doc_file = "example_crate.markdown"]
#[phase(plugin)] extern crate doc_file;
#[doc_file = "complicated_thing.markdown"]
pub struct ComplicatedThing;
The syntax #[doc_file = "..."] is a little ugly. Ideally it would be
something like #[doc(file = "...")].