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

Generate bindings during build #1524

Closed
wants to merge 4 commits into from
Closed

Generate bindings during build #1524

wants to merge 4 commits into from

Commits on Jan 5, 2022

  1. binding_rust: generate bindings during build

    Bindgen output is platform- and architecture-dependent. Pre-generated
    bindings may cause issues on the machines different from the one used
    for generating the code.
    
    The recommended way[1] to use bindgen is to invoke it from `build.rs`.
    
    [1]: https://rust-lang.github.io/rust-bindgen/library-usage.html
    alebastr committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    ea4c422 View commit details
    Browse the repository at this point in the history
  2. binding_rust: add "generate-bindings" feature

    Setting up the build environment required by bindgen could be
    inconvenient on some platforms. Hide the binding regeneration under
    a new feature.
    alebastr committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    c6ed077 View commit details
    Browse the repository at this point in the history
  3. test: use platform-independent c_char instead of i8

    Fixes build on aarch64, ppc64le and other platforms that have different
    definition of c_char.
    alebastr committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    5dcbb97 View commit details
    Browse the repository at this point in the history
  4. tags: use platform-independent c_char instead of i8

    Fixes build on aarch64, ppc64le and other platforms that have different
    definition of c_char.
    alebastr committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    bf484cc View commit details
    Browse the repository at this point in the history