Library crate for common tasks when building rust projects

Intended for use with cargo-auto

cargo_auto_lib

. .
repo; version: 0.1.13 date: 2021-08-13 authors: Luciano Bestia

Try it

In your rust project root directory (where the Cargo.toml is)
first install cargo-auto and generate a new helper project:

cargo install cargo-auto
cargo auto new

In a new editor open the generated directory automation_tasks_rs as an independent rust project.
Add to Cargo.toml dependencies:

cargo_auto_lib="0.1.13"

In the beginning of the function task_build() add:

cargo_auto_lib::auto_cargo_toml_to_md();

Add markers to the beginning of README.md (don't copy the numbers 1 and 2):

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

Run:

cargo auto build

With a little luck, it included the data of Cargo.toml into the README.md inside the markers.

function auto_cargo_toml_to_md()

To avoid out of sync data like version, authors and description in the README.md files, auto_cargo_toml_to_md includes this data from Cargo.toml.
Run it on every build with cargo auto.

It works only for single projects and not for workspaces yet.
It works also with other md files in the project, not only README.md.
In the md file write these markers in markdown comments (invisible),
don't copy the numbers 1 and 2:

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

auto_cargo_toml_to_md deletes the old lines between the markers and includes the cargo.toml data:
description, repository, version, &utc_now(), authors

Run the example:

cargo run --example example_01_auto_cargo_toml_to_md

cargo crev reviews and advisory

We leave in times of danger with supply chain attacks.
It is recommended to always use cargo-crev
to verify the trustworthiness of each of your dependencies.
Please, spread this info.
You can also read reviews quickly on the web. Example for the crate num-traits:
https://web.crev.dev/rust-reviews/crate/num-traits/

open-source free and free as a beer

My open-source projects are free and free as a beer (MIT license).
I just love programming.
But I need also to drink. If you find my projects and tutorials helpful, please buy me a beer or two donating on my paypal. You know the price of a beer in your local bar ;-)
So I can drink a free beer for your health :-)
Na zdravje !

cargo_auto_lib

Information - Updated Mar 27, 2022

Stars: 0
Forks: 0
Issues: 0

Discussion and support:

To use libpnet in your project, add the following to your Cargo

Discussion and support:

The answer to "how do I use Rust on iOS and Android?"

cargo-mobile takes care of generating Xcode and Android Studio project files, building and running on device, generating project boilerplate, and a few other things!

The answer to "how do I use Rust on iOS and Android?"

Debian packages from Cargo projects

This is a Debian packages (

Debian packages from Cargo projects

A program to list unsafe code in a Rust project

Not actually a cargo plugin (yet)

A program to list unsafe code in a Rust project
Cargo

1.0K

cargo, make me a project

cargo-generate is a developer tool to help you get up and running quickly with a new Rust

cargo, make me a project

rosc is an implementation of the OSC 1

Add rosc to the dependencies section of your projects Cargo

rosc is an implementation of the OSC 1

Rust bindings for FreeType library

Cargo: We use Cargo to compile the project

Rust bindings for FreeType library

A template for starting an OrbTk project

Use cargo generate to Clone this Template

A template for starting an OrbTk project

A cargo subcommand for displaying when Rust dependencies are out of date

Clone the project $ git clone && cd cargo-outdated

A cargo subcommand for displaying when Rust dependencies are out of date

Cache the dependencies of your Rust project and speed up your Docker builds

You can install cargo-chef from all the available tags on Dockerhub

Cache the dependencies of your Rust project and speed up your Docker builds
Facebook Instagram Twitter GitHub Dribbble
Privacy