stm32cubeprogrammer-sys 0.1.0

Rust bindings for the STM32CubeProgrammer API
Documentation
1
2
3
4
5
6
7
8
9
10
11
bindgen_header := "include/CubeProgrammer_API.h"

bindgen_output := if os() == 'windows' {
  "src/bindings_windows.rs"
} else {
  "src/bindings_unix.rs"
}

# Generate bindings for the CubeProgrammer API dynamic library
generate-bindings:
    bindgen {{source_directory()}}/{{bindgen_header}} --dynamic-loading CubeProgrammer_API --output {{source_directory()}}/{{bindgen_output}} -- -x c++