cargo-avrdude

Crates.iocargo-avrdude
lib.rscargo-avrdude
version0.1.0
sourcesrc
created_at2022-07-10 11:10:23.743821
updated_at2022-07-10 11:10:23.743821
descriptionCargo extension for seamlessly passing the compiled binary to AVRDUDE
homepage
repositoryhttps://github.com/karolbelina/cargo-avrdude
max_upload_size
id623098
size14,857
Karol Belina (karolbelina)

documentation

README

cargo-avrdude

crates.io

Cargo extension for building your binary and seamlessly passing it to AVRDUDE through arbitrary command-line arguments.

Installation

Install via crates.io:

cargo install cargo-avrdude

Usage

Invoking cargo avrdude builds the crate, passing all arguments directly to cargo build. If there are multiple binaries in your workspace, please specify one with --bin <binary_name>.

The arguments passed to avrdude can be specified in the Cargo.toml of the binary crate like so:

[package.metadata.cargo_avrdude]
args = ["-p", "m328p", "-c", "usbasp", "-e", "-V", "-U", "flash:w:{}"]

where any occurence of the string {} will be replaced by the path to the compiled binary, resulting in, for example:

avrdude -p m328p -c usbasp -e -V -U flash:w:/usr/binary_name/target/target/release/<binary_name>.elf

License

This software is licensed under the MIT license.

See the LICENSE file for more details.

Commit count: 1

cargo fmt