Add helper function to preconfigure project for web-sys (#455)

This commit is contained in:
Michael Hoffmann
2018-07-11 16:27:27 +02:00
committed by Alex Crichton
parent 94d939f4da
commit 77b86f481e
3 changed files with 12 additions and 9 deletions

View File

@ -1,10 +1,8 @@
use super::project;
use super::websys_project;
#[test]
fn response() {
project()
.add_local_dependency("web-sys", env!("CARGO_MANIFEST_DIR"))
.headless(true)
websys_project()
.file(
"src/lib.rs",
r#"