| Crates.io | libscap-bindings |
| lib.rs | libscap-bindings |
| version | 0.0.3 |
| created_at | 2025-11-14 20:25:12.058719+00 |
| updated_at | 2026-01-06 17:39:33.40498+00 |
| description | Bindings for Falco's `libscap` eBPF monitoring backend C library |
| homepage | https://github.com/edera-dev/libscap-bindings |
| repository | https://github.com/edera-dev/libscap-bindings |
| max_upload_size | |
| id | 1933392 |
| size | 132,716 |
Basic bindgen types and glue generated against Falco's libscap C library.
Currently, only gnu and musl x86 targets are tested, and only Linux is supported.
This crate needs build tools and build libraries sufficient to compile Falco's libscap C lib, which is the bulk of what build.rs sets up.
Since quite often you don't need the full bindings when you take this crate as a dep, and don't wish to incur the build and local dependency cost for building all of Falco's libscap, this crate exposes the full_bindings feature flag, which is enabled by default.
If that feature flag is disabled, only the simple types (enums, consts) will be emitted and exported, using previously-generated and checked versions in src, (namely src/enums.rs and src/consts.rs) so no C build is necessary for anything that only needs the simple types:
libscap-bindings = { version = 0.0.1, default-features = false }
If that feature flag is enabled (as it is by default), the upstream libscap repo will be cloned, and a full C build will be performed, exposing function types and the full interop capability. This will also update/regen the checked-in simple types in /src.
libscap-bindings = { version = 0.0.1, features = ["full_bindings"]}