-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace symcrypt-bindgen crate with a script #56
Conversation
@microsoft-github-policy-service agree company="Microsoft" |
error: extern block cannot be declared unsafe Refers to: symcrypt-sys/src/bindings/aarch64_pc_windows_msvc.rs:2894 in b57945b. [](commit_id = b57945b, deletion_comment = False) |
# winget install LLVM.LLVM | ||
# cargo install bindgen-cli | ||
# WSL Ubuntu: | ||
# sudo apt install pwsh clang libclang-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exit 1 | ||
} | ||
|
||
$importRules = @( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed by setting rust-version to 1.64.0 |
This PR introduces several significant changes to the project, focusing on replacing the symcrypt-bindgen crate with a script. The generated bindings remain unchanged, ensuring no modifications to the public API of symcrypt-sys.
New scripts:
scripts/generate-bindings.ps1
to generate Rust bindings using bindgen for a specified target triple.scripts/generate-all-bindings.ps1
to generate Rust bindings for all supported target triples, including installation instructions and prerequisites.scripts/generate-bindings.sh
as a helper script to set the PATH to cargo binaries and callgenerate-bindings.ps1
.