#bash #ruszt #metapackage

macro ruszt-macros

Rust FFI for Bash (macros metapackage)

2 releases

new 0.0.2 Apr 4, 2025
0.0.1 Apr 2, 2025

#1717 in Procedural macros

39 downloads per month
Used in ruszt

BSD-3-Clause

7KB
125 lines

ruszt

Rust functions for bash!

Building

To build this project, you need to have the bash headers and pkg-config installed.

Examples

There are some examples in the examples folder:

  • hello: a basic Hello World example
  • variables: working with variables

References for writing functions for bash in C in general: https://mywiki.wooledge.org/BashLoadableBuiltins

Thanks to sdomi for nerdsniping me into it and helping with code and motivation.

Dependencies

~200–630KB
~15K SLoC