Macro dep_doc::dep_doc[][src]

macro_rules! dep_doc {
    ($($tt : tt) *) => { ... };
}
Expand description

Generates a Cargo.toml code snippet showing how to add the current crate as a dependency.

This crate expands to the correct docstring. As such, the #![doc = ...] macro must be used.

See the crate-level documentation for more.

Example

The simplest invocation is:

#![doc = dep_doc::dep_doc!()]

Specific feature, git repository, path can be passed in the macro invocation:

#![doc = dep_doc::dep_doc!(git = "https://github.com/scrabsha/dep-doc")]