Derive Default if possible

This makes it easier to initialize structs without using unsafe code.
This commit is contained in:
Robin Krahl
2025-02-27 14:00:49 +01:00
parent 4b2b82c4f3
commit 64054fd2d2
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -6,7 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
-
### Added
- Derive `Default` if possible
## [0.3.1] - 2025-02-27
+1
View File
@@ -59,6 +59,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let bindgen = bindgen.clang_arg("-DLFS_MULTIVERSION");
let bindings = bindgen
.derive_default(true)
.use_core()
.allowlist_item("lfs_.*")
.allowlist_item("LFS_.*")