From 2da5581d0f87cfb535287c70e92a57a4207aed4a Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Tue, 17 Mar 2020 21:03:47 -0700 Subject: [PATCH] Only build for linux on docs.rs (#611) The public documentation is minimal and doesn't change between platforms, so we only build them for linux on docs.rs to save their build machines some cycles. --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 2d7ff68..60fdf7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,3 +44,9 @@ which = "3" # to crates.io. In the meantime, we can publish with nighlty cargo. [dev-dependencies.test-utilities] path = "test-utilities" + +# The public documentation is minimal and doesn't change between +# platforms, so we only build them for linux on docs.rs to save +# their build machines some cycles. +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"]