0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-01-11 08:34:01 -05:00

Fix docs.rs detection (#485)

Previously docs.rs supplied RUSTDOCFLAGS env var to builds, which we
used to skip building/downloading rusty_v8. docs.rs does not allow
network access.

Reference for DOCS_RS: https://docs.rs/about/builds
Failed build: https://docs.rs/crate/deno_core/0.61.0/builds/299870
This commit is contained in:
Ryan Dahl 2020-10-06 09:34:33 -04:00 committed by GitHub
parent e5f56e218c
commit 18a3eab7c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ fn main() {
let is_trybuild = env::var_os("DENO_TRYBUILD").is_some();
// Don't build V8 if "cargo doc" is being run. This is to support docs.rs.
let is_cargo_doc = env::var_os("RUSTDOCFLAGS").is_some();
let is_cargo_doc = env::var_os("DOCS_RS").is_some();
// Don't build V8 if the rust language server (RLS) is running.
let is_rls = env::var_os("CARGO")