Skip to content

Commit 64054fd

Browse files
Derive Default if possible
This makes it easier to initialize structs without using unsafe code.
1 parent 4b2b82c commit 64054fd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9-
-
9+
### Added
10+
11+
- Derive `Default` if possible
1012

1113
## [0.3.1] - 2025-02-27
1214

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
5959
let bindgen = bindgen.clang_arg("-DLFS_MULTIVERSION");
6060

6161
let bindings = bindgen
62+
.derive_default(true)
6263
.use_core()
6364
.allowlist_item("lfs_.*")
6465
.allowlist_item("LFS_.*")

0 commit comments

Comments
 (0)