From 0c96573b464877940f02d6f1f17060e449dac5dd Mon Sep 17 00:00:00 2001 From: myfreeweb Date: Tue, 17 Nov 2020 23:33:38 +0300 Subject: [PATCH] Add docs.rs target list ref: https://blog.rust-lang.org/2020/03/15/docs-rs-opt-into-fewer-targets.html --- Cargo.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d3b94664a5..b3904dd1d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,19 @@ exclude = [ "/bors.toml" ] +[package.metadata.docs.rs] +targets = [ + "x86_64-unknown-linux-gnu", + "aarch64-linux-android", + "x86_64-apple-darwin", + "aarch64-apple-ios", + "x86_64-unknown-freebsd", + "x86_64-unknown-openbsd", + "x86_64-unknown-netbsd", + "x86_64-unknown-dragonfly", + "x86_64-unknown-redox" +] + [dependencies] libc = { version = "0.2.78", features = [ "extra_traits" ] } bitflags = "1.1"