remove cargo web / compile time error

This commit is contained in:
eV 2019-08-22 08:09:56 +00:00
parent f21b1fbf21
commit cc073a650f
2 changed files with 4 additions and 7 deletions

View File

@ -36,7 +36,7 @@ rustc-serialize = { version = "0.3.20", optional = true }
serde = { version = "1", optional = true }
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten"), not(cargo_web)))'.dependencies]
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
wasm-bindgen = { version = "0.2" }
js-sys = "0.3" # contains FFI bindings for the JS Date API
@ -47,7 +47,7 @@ bincode = { version = "0.8.0" }
num-iter = { version = "0.1.35", default-features = false }
doc-comment = "0.3"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten"), not(cargo_web)))'.dev-dependencies]
[target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dev-dependencies]
wasm-bindgen-test = "0.2"
[package.metadata.docs.rs]

View File

@ -414,14 +414,11 @@ extern crate serde as serdelib;
#[cfg(test)]
#[macro_use]
extern crate doc_comment;
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten"), not(cargo_web)))]
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))]
extern crate wasm_bindgen;
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten"), not(cargo_web)))]
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))]
extern crate js_sys;
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten"), cargo_web))]
compile_error!("Chrono currently does not work for wasm32-unknown-unknown + cargo web");
#[cfg(test)]
doctest!("../README.md");