From fbc58ad58dc9185f85da5b8a6b9e4292b75829df Mon Sep 17 00:00:00 2001 From: Guillaume Pinot Date: Fri, 10 Sep 2021 20:46:50 +0200 Subject: [PATCH] Change docs.rs workaround --- Cargo.toml | 10 +--------- build.rs | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 96391ed..f0d04c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cp_sat" -version = "0.1.3" +version = "0.2.0" edition = "2018" description = "Rust bindings to the Google CP-SAT constraint programming solver." documentation = "https://docs.rs/cp_sat" @@ -10,10 +10,6 @@ keywords = ["constraint", "programming", "CP"] categories = ["api-bindings", "mathematics", "science"] readme = "README.md" -[features] -# the doc feature will not build C++ wrappers (not needed by the doc) -doc = [] - [dependencies] prost = "0.8" bytes = "1.1.0" @@ -22,7 +18,3 @@ libc = "0.2.101" [build-dependencies] prost-build = { version = "0.8" } cc = "1.0" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] -features = ["doc"] diff --git a/build.rs b/build.rs index 3636e6b..9cbf008 100644 --- a/build.rs +++ b/build.rs @@ -7,7 +7,7 @@ fn main() { ) .unwrap(); - if !std::env::var("CARGO_FEATURE_DOC").is_ok() { + if !std::env::var("DOCS_RS").is_ok() { let ortools_prefix = std::env::var("ORTOOLS_PREFIX") .ok() .unwrap_or("/opt/ortools".into());