gen_rust_bindings.sh
1 #!/bin/bash 2 3 # Due to cryptographic secrets, deriving Debug is absolutely forbidden. 4 # Some resources are non-copyable non-clonable: 5 # - Threadpools 6 # - Contexts holding sessions 7 bindgen \ 8 include/constantine.h \ 9 -o constantine-rust/constantine-sys/src/bindings.rs \ 10 --default-enum-style rust \ 11 --use-core \ 12 --no-derive-debug \ 13 --default-visibility private \ 14 --enable-function-attribute-detection \ 15 -- -Iinclude 16 17 18 # --must-use-type "ctt_.*_status" is not needed with function attribute detection