Registry / utility / docify

docify

JSON →
library0.4.1rscratesunverified

Live-embed pieces of code from throughout your project as Rust doc examples at compile time.

# Cargo.toml [dependencies] docify = "0.4.1"
INSTALL
IMPORT
SIG · DOCIFY
D
docify
utilityrustv0.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

docify
use docify::docify;

Shows how to use the docify attribute to embed code in documentation.

use docify::docify; #[docify::docify] /// This is a doc comment that embeds code from `src/lib.rs`. /// ```rust /// # use docify::docify; /// // embedded code /// ``` fn main() { println!("Docify example"); }
Debug
Known issues
gotchaRequires nightly Rust for proc macro features.
fix
Use a stable Rust toolchain with `#![feature(proc_macro_span)]` or switch to nightly.
affects: >=0.4.0
Upgrade
Version history
0.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
docify — cargo add docify · libregistry