mirror of
https://github.com/codex-storage/constantine.git
synced 2025-01-12 03:54:14 +00:00
3e27f1e831
* first jab at Rust bindings * stash C library and header generation * Create a single big library with multiple headers * remove ctt_pure, people will not call crypto proc twice with unchanged parameter and extra noise when reading header * fix MacOS and Windows builds * fix cross-lang ThinLTO, require LLD * Remove NimMain need, cleanup CPU features and detect them on library load
19 lines
512 B
Bash
19 lines
512 B
Bash
#!/bin/bash
|
|
|
|
# Due to cryptographic secrets, deriving Debug is absolutely forbidden.
|
|
# Some resources are non-copyable non-clonable:
|
|
# - Threadpools
|
|
# - Contexts holding sessions
|
|
bindgen \
|
|
include/constantine.h \
|
|
-o constantine-rust/constantine-sys/src/bindings.rs \
|
|
--default-enum-style rust \
|
|
--use-core \
|
|
--no-derive-debug \
|
|
--default-visibility private \
|
|
--enable-function-attribute-detection \
|
|
-- -Iinclude
|
|
|
|
|
|
# --must-use-type "ctt_.*_status" is not needed with function attribute detection
|