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

no-std app seesaw-cli

generate traits from C header files

1 unstable release

0.1.0 Dec 10, 2024

#69 in FFI

Download history 89/week @ 2024-12-05 42/week @ 2024-12-12

131 downloads per month

Apache-2.0 OR MIT

26KB
473 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
~32K SLoC