Commit Graph

5 Commits (ce44dd003037f2c7a5ddcbf0f0ee6eb88746f438)

Author SHA1 Message Date
Alaric Senat 0d57a4e242 build: replace the use-bindgen feature with a `cargo xtask bindgen` tool
Generating the FFI bindings at consumer build time is unecessary. The
`use-bindgen` Cargo feature was non-additive, and forced bindgen +
libclang onto every build that opted in, for a decision that is really
about the maintainer's environment, not the public API.

Move binding generation out of the build entirely, following the xtask
pattern[^1]:

- build.rs is reduced to locating and linking libvlc.
- Regeneration lives in a `xtask` crate, run with `cargo xtask bindgen`.

[^1]: <https://github.com/matklad/cargo-xtask>
2026-07-24 10:05:32 +02:00
Romain Roffé 34bd7b2988 Use bindgen
binding.rs generation with bindgen is optional.

By default, a pre-generated binding.rs is copied in OUT_DIR. This allows
for example to build on Windows and link against a standard VLC
installation.

Feature "use-bindgen" will trigger binding generation.
2022-02-25 16:05:10 +01:00
Pierre Réveillon 14dd7928bd CI: Add Gitlab CI 2021-11-22 02:53:55 +00:00
T. Okubo d11f6920fa Add the Cargo.lock to .gitignore 2015-11-29 10:33:02 +09:00
T. Okubo 56e6b68af1 Initial commit 2015-11-29 10:26:04 +09:00