Skip to content
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

Make checksums optional #2255

Open
alexkirsz opened this issue Oct 5, 2024 · 2 comments
Open

Make checksums optional #2255

alexkirsz opened this issue Oct 5, 2024 · 2 comments

Comments

@alexkirsz
Copy link
Contributor

We run the uniffi bindgen with Bazel, and our rules ensure there can be no version mismatch between the Rust and foreign language bindings. This makes checksums purely redundant.

We would love to have the option to disable checksums entirely.

@mhammond
Copy link
Member

mhammond commented Oct 5, 2024

The checksums are to try and ensure the correct library is loaded at runtime, which the build process can't really ensure. #1789 also notes that the checksums aren't particularly adequate for proc-macros anyway, and I don't see an easy fix for that, so this is a reasonable discussion to have.

@bendk
Copy link
Contributor

bendk commented Oct 7, 2024

This seems reasonable to me. I think it could be a top-level field in uniffi.toml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants