38 releases

Uses new Rust 2021

0.31.0 Dec 9, 2022
0.30.4 Sep 24, 2022
0.30.2 Jul 31, 2022
0.28.5 Feb 20, 2022
0.25.4 Nov 28, 2021

#24 in Build Utils

Download history 2596/week @ 2022-10-07 2436/week @ 2022-10-14 1947/week @ 2022-10-21 2082/week @ 2022-10-28 1698/week @ 2022-11-04 2001/week @ 2022-11-11 2060/week @ 2022-11-18 2097/week @ 2022-11-25 1755/week @ 2022-12-02 2412/week @ 2022-12-09 2107/week @ 2022-12-16 1416/week @ 2022-12-23 1572/week @ 2022-12-30 1690/week @ 2023-01-06 1689/week @ 2023-01-13 2251/week @ 2023-01-20

7,484 downloads per month
Used in fewer than 12 crates

MIT/Apache

650KB
5.5K SLoC

Build support for embedded Rust

CI crates.io docs.rs

A library with many utilities for building embedded frameworks, libraries, and other artifacts in a cargo build script.

It is currently mainly used to simplify building the esp-idf in the build script of the esp-idf-sys crate, but anyone may use these utilities as they're intended to be general. They're organized into specific modules so that they and their dependencies can be turned on or off with features.

A list of current features and their utilities:

  • pio
    • Platformio support.
  • cmake
    • CMake file-api support and utilities.
  • glob (used in the build module)
    • Glob utilities.
  • manifest (used in the cargo module)
    • Cargo.toml and config.toml utilities.
  • espidf
    • An installer to install the esp-idf framework.
  • git
    • Git utilities for manipulating repositories using the git CLI.
  • kconfig
    • kconfig file parsing.
  • elf (bingen, symgen and espidf::ulp_fsm modules)
    • Elf file manipulation.

Other utilities that are not behind features include:

  • cargo
    • Utils for interacting with cargo through the CLI, and stdout in a build script.
  • cmd
    • Macros and wrappers for running commands and getting their results easier.
  • cli
    • Command line arguments manipulation.

Tools

This repository also provides two CLI tools:

Dependencies

~0.4–6.5MB
~113K SLoC