Some small cleanups (#366)

* No need for version deps in dev-deps

These are all internal so we can drop the version

* Remove wasm-bindgen-cli's parity-wasm dep

No longer needed

* Tweak file hierarchy in webidl tests

Use Cargo's conventions to avoid the need to define `[[test]]` sections

* Remove unused imports
This commit is contained in:
Alex Crichton 2018-07-02 11:57:39 -05:00 committed by GitHub
parent dcb3415da8
commit 4ceaf3e0f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 2 additions and 15 deletions

View File

@ -15,7 +15,6 @@ information see https://github.com/alexcrichton/wasm-bindgen.
[dependencies]
docopt = "0.8"
failure = "0.1"
parity-wasm = "0.28"
serde = "1.0"
serde_derive = "1.0"
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.11" }

View File

@ -2,7 +2,6 @@
extern crate serde_derive;
extern crate docopt;
extern crate failure;
extern crate parity_wasm;
extern crate wasm_bindgen_cli_support;
use std::fs::File;

View File

@ -3,19 +3,11 @@ name = "wasm-bindgen-webidl"
version = "0.2.11"
authors = ["Nick Fitzgerald <fitzgen@gmail.com>"]
[[test]]
name = "webidl-all"
path = "tests/all/lib.rs"
[[test]]
name = "webidl-expected"
path = "tests/expected/lib.rs"
[dev-dependencies]
diff = "0.1.11"
env_logger = "0.5.10"
wasm-bindgen = { version = "=0.2.11", path = "../..", default-features = false }
wasm-bindgen-backend = { version = "=0.2.11", path = "../backend", features = ["extra-traits"] }
wasm-bindgen = { path = "../..", default-features = false }
wasm-bindgen-backend = { path = "../backend", features = ["extra-traits"] }
[dependencies]
failure = "0.1"

0
crates/webidl/src/lib.rs Executable file → Normal file
View File

View File

@ -1,6 +1,3 @@
use std::fs::File;
use std::io::Read;
use super::project;
#[test]