doc_file

Crates.iodoc_file
lib.rsdoc_file
version0.2.0
sourcesrc
created_at2014-12-08 05:55:55.996082
updated_at2015-12-11 23:58:31.338387
descriptionMove your Rust crate's documentation into external files.
homepage
repositoryhttps://github.com/tomjakubowski/doc_file
max_upload_size
id484
size5,381
Tom Jakubowski (tomjakubowski)

documentation

README

doc_file

Build Status

Move your Rust crate's documentation into external files.

Why?

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.

Example usage

#![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;

Open issues

The syntax #[doc_file = "..."] is a little ugly. Ideally it would be something like #[doc(file = "...")].

Commit count: 17

cargo fmt