Crates.io | cargo-avr |
lib.rs | cargo-avr |
version | 0.1.0 |
source | src |
created_at | 2022-06-26 23:30:59.086665 |
updated_at | 2022-06-26 23:30:59.086665 |
description | Cargo extension for seamlessly passing the compiled binary to avrdude |
homepage | |
repository | https://github.com/karolbelina/cargo-avr |
max_upload_size | |
id | 613858 |
size | 14,673 |
Cargo extension for building your binary and seamlessly passing it to AVRDUDE through arbitrary command-line arguments.
Install via crates.io:
$ cargo install cargo-avr
Invoking cargo avr
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_avr]
args = ["-p", "m328p", "-c", "usbasp", "-e", "-V", "-U", "flash:w:{}"]
where any occurence of the string {}
will be replaced by the path to the generated binary, resulting in, for example:
avrdude -p m328p -c usbasp -e -V -U flash:w:/usr/binary_name/target/target/release/<binary_name>.elf
This software is licensed under the MIT license.
See the LICENSE file for more details.