summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-07-24 15:37:30 -0600
committerAlan Somers <asomers@gmail.com>2021-07-24 15:38:30 -0600
commitb083a611a928e9538c68df0b016ae3c6f3ae8e25 (patch)
treeec376be2633a551840aa0ad7a329d4accfc28762 /Cargo.toml
parent6fc98f18506f9c350e9c7ca786e0c7189df9a5b3 (diff)
downloadrust-libc-b083a611a928e9538c68df0b016ae3c6f3ae8e25.tar.gz
Set const-extern-fn when building docs
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 905c610e75..6ef382ab5d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,6 +15,9 @@ description = """
Raw FFI bindings to platform libraries like libc.
"""
+[package.metadata.docs.rs]
+features = ["const-extern-fn", "extra_traits"]
+
[dependencies]
rustc-std-workspace-core = { version = "1.0.0", optional = true }