We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2819634 commit e167a73Copy full SHA for e167a73
README.md
@@ -35,6 +35,16 @@ this via:
35
libc = { version = "0.2", default-features = false }
36
```
37
38
+By default libc uses private fields in structs in order to enforce a certain
39
+memory alignment on them. These structs can be hard to instantiate outside of
40
+libc. To make libc use `#[repr(align(x))]`, instead of the private fields,
41
+activate the *align* feature. This requires Rust 1.25 or newer:
42
+
43
+```toml
44
+[dependencies]
45
+libc = { version = "0.2", features = ["align"] }
46
+```
47
48
## What is libc?
49
50
The primary purpose of this crate is to provide all of the definitions necessary
0 commit comments