#bindings #no-alloc #bindgen #input-file #regex

no-std app seesaw-cli

generate traits from C header files

1 unstable release

new 0.1.0 Dec 10, 2024

#74 in FFI

Apache-2.0 OR MIT

99KB
376 lines

seesaw

Generate a trait from `extern "C"` blocks, typically emitted by bindgen

Usage: seesaw [OPTIONS] <NAME> [BINDINGS]

Arguments:
  <NAME>
          The name of the trait

  [BINDINGS]
          Path the the input file. If absent or `-`, read from stdin

Options:
  -a, --allow <ALLOW>
          Regexes of function names to include. By default, all functions are allowed

  -b, --block <BLOCK>
          Regexes of function names to exclude

Dependencies

~1.1–1.7MB
~31K SLoC