summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBryant Mairs <bryant@mai.rs>2019-01-30 18:18:00 -0800
committerBryant Mairs <bryant@mai.rs>2019-02-02 13:06:58 -0800
commit868a85d05dd46af29346302cbc8135619280cd0f (patch)
tree35bec4aeeabd346d84e347dce2c742b5d806baef /README.md
parent51a0587b538d6c2b51e0f907ad3a01df897304eb (diff)
downloadrust-libc-868a85d05dd46af29346302cbc8135619280cd0f.tar.gz
Implement PartialEq,Eq for all types
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 636f10e4ec..ae45ce7f40 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,15 @@ activate the *align* feature. This requires Rust 1.25 or newer:
libc = { version = "0.2", features = ["align"] }
```
+All structs implemented by the libc crate have the `Copy` and `Clone` traits
+implemented for them. The additional traits of `PartialEq` and `Eq` can be
+enabled with the *extra_traits* feature (requires Rust 1.25 or newer):
+
+```toml
+[dependencies]
+libc = { version = "0.2", features = ["extra_traits"] }
+```
+
## What is libc?
The primary purpose of this crate is to provide all of the definitions necessary