42 releases

0.31.4 Oct 26, 2023
0.31.2 May 8, 2023
0.31.1 Mar 19, 2023
0.31.0 Dec 9, 2022
0.25.4 Nov 28, 2021

#24 in Build Utils

Download history 3996/week @ 2023-12-15 3543/week @ 2023-12-22 3443/week @ 2023-12-29 5067/week @ 2024-01-05 4148/week @ 2024-01-12 4502/week @ 2024-01-19 5323/week @ 2024-01-26 4330/week @ 2024-02-02 4733/week @ 2024-02-09 4887/week @ 2024-02-16 5995/week @ 2024-02-23 5137/week @ 2024-03-01 5302/week @ 2024-03-08 5040/week @ 2024-03-15 4500/week @ 2024-03-22 4395/week @ 2024-03-29

20,130 downloads per month
Used in 34 crates (27 directly)

MIT/Apache

650KB
5.5K SLoC

Build support for embedded Rust

CI crates.io docs.rs Matrix

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.6–14MB
~154K SLoC