Change docs.rs workaround

This commit is contained in:
Guillaume Pinot
2021-09-10 20:46:50 +02:00
committed by Guillaume P
parent dc36339433
commit fbc58ad58d
2 changed files with 2 additions and 10 deletions
+1 -1
View File
@@ -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());