#cargo-toml #md #make #data #start #rust

yanked lmake_cargo_toml_to_md

Includes Cargo.toml data into md

2020.1209.1045 Aug 14, 2021
2020.1209.1044 Dec 9, 2020
0.5.5 Aug 22, 2020
0.5.4 Jul 15, 2020

#31 in #make

Download history 3/week @ 2024-02-18 6/week @ 2024-03-10 60/week @ 2024-03-31

66 downloads per month

MIT license

17KB
112 lines

lmake_cargo_toml_to_md

🔴OBSOLETE, 🔴DEPRECATED, 🔴DEFUNCT!
It was replaced by the crate cargo-auto




Includes Cargo.toml data into md.
repo; version: 2020.1209.1044 date: 2020-12-09 authors: Luciano Bestia

Lines in Rust code Lines in Doc comments Lines in Comments Lines in examples Lines in tests

Documentation crev reviews Lib.rs Licence

Includes data from cargo.toml to md files.
To avoid out of sync data like version, authors and description.
The lmake_cargo_toml_to_md binary must be executed in the project root folder where is the cargo.toml file.
It works only for single projects and not for workspaces.

include cargo.toml data into md file

In the md file write these markers:

1 [comment]: # (lmake_cargo_toml_to_md start)
2 [comment]: # (lmake_cargo_toml_to_md end)

lmake_cargo_toml_to_md deletes the old lines between the markers
and includes the date and the cargo.toml data:
version, authors, repository and description.

Tasks in Makefile.toml

I use cargo make to script the repetitive commands sequences.
https://github.com/sagiegurari/cargo-make
In Makefile.toml add a task like this:

[tasks.doc]
description = "create docs from doc comments"
clear = true
script = [
    "lmake_cargo_toml_to_md",
    "lmake_md_to_doc_comments",
    "cargo doc --no-deps --document-private-items",
    "\\rsync -avz --delete-after target/doc/*  docs/",
]

install

Install from crates.io:
cargo install lmake_cargo_toml_to_md
Then you can use it in every rust project folder.
No arguments needed to execute the util.

Development

Documentation:
https://lucianobestia.github.io/lmake_cargo_toml_to_md/
List of prepared make tasks for development: build, run, doc, publish,...
cargo make

cargo crev reviews and advisory

It is recommended to always use cargo-crev
to verify the trustworthiness of each of your dependencies.
Please, spread this info.
On the web use this url to read crate reviews. Example:
https://web.crev.dev/rust-reviews/crate/num-traits/

Dependencies

~3.5–5MB
~79K SLoC