refactor: Rename binary-install to wasm-pack-binary-install

master
Jesper Håkansson 7 years ago
parent 50e472de05
commit 489d3e84c2
  1. 30
      Cargo.lock
  2. 2
      Cargo.toml
  3. 2
      binary-install/Cargo.toml
  4. 2
      src/bindgen.rs
  5. 2
      src/command/build.rs
  6. 2
      src/command/test.rs
  7. 2
      src/lib.rs
  8. 2
      src/test/webdriver.rs
  9. 2
      tests/all/bindgen.rs
  10. 2
      tests/all/main.rs
  11. 2
      tests/all/utils/fixture.rs
  12. 2
      tests/all/webdriver.rs

30
Cargo.lock generated

@ -67,20 +67,6 @@ dependencies = [
"libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "binary-install"
version = "0.1.0"
dependencies = [
"curl 0.4.18 (registry+https://github.com/rust-lang/crates.io-index)",
"dirs 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
"failure 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"flate2 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
"hex 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
"siphasher 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"tar 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)",
"zip 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "bitflags"
version = "1.0.4"
@ -1059,7 +1045,6 @@ name = "wasm-pack"
version = "0.5.1"
dependencies = [
"atty 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
"binary-install 0.1.0",
"cargo_metadata 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
"console 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
"failure 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
@ -1077,9 +1062,24 @@ dependencies = [
"structopt 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)",
"tempfile 3.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
"toml 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
"wasm-pack-binary-install 0.1.0",
"which 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "wasm-pack-binary-install"
version = "0.1.0"
dependencies = [
"curl 0.4.18 (registry+https://github.com/rust-lang/crates.io-index)",
"dirs 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
"failure 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"flate2 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
"hex 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
"siphasher 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
"tar 0.4.17 (registry+https://github.com/rust-lang/crates.io-index)",
"zip 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "which"
version = "2.0.0"

@ -28,7 +28,7 @@ slog-async = "2.3"
structopt = "0.2"
toml = "0.4"
which = "2.0.0"
binary-install = { version = "0.1.0", path = "./binary-install" }
wasm-pack-binary-install = { version = "0.1.0", path = "./binary-install" }
[dev-dependencies]
tempfile = "3"

@ -1,5 +1,5 @@
[package]
name = "binary-install"
name = "wasm-pack-binary-install"
version = "0.1.0"
[dependencies]

@ -1,6 +1,5 @@
//! Functionality related to installing and running `wasm-bindgen`.
use binary_install::{Cache, Download};
use child;
use emoji;
use failure::{self, ResultExt};
@ -11,6 +10,7 @@ use std::fs;
use std::path::{Path, PathBuf};
use std::process::Command;
use target;
use wasm_pack_binary_install::{Cache, Download};
use which::which;
use PBAR;

@ -1,6 +1,5 @@
//! Implementation of the `wasm-pack build` command.
use binary_install::{Cache, Download};
use bindgen;
use build;
use command::utils::{create_pkg_dir, set_crate_path};
@ -15,6 +14,7 @@ use slog::Logger;
use std::path::PathBuf;
use std::str::FromStr;
use std::time::Instant;
use wasm_pack_binary_install::{Cache, Download};
use PBAR;
/// Everything required to configure and run the `wasm-pack init` command.

@ -1,7 +1,6 @@
//! Implementation of the `wasm-pack test` command.
use super::build::BuildMode;
use binary_install::Cache;
use bindgen;
use build;
use command::utils::set_crate_path;
@ -16,6 +15,7 @@ use slog::Logger;
use std::path::PathBuf;
use std::time::Instant;
use test::{self, webdriver};
use wasm_pack_binary_install::Cache;
use PBAR;
#[derive(Debug, Default, StructOpt)]

@ -18,10 +18,10 @@ extern crate serde_json;
extern crate structopt;
#[macro_use]
extern crate slog;
extern crate binary_install;
extern crate slog_async;
extern crate slog_term;
extern crate toml;
extern crate wasm_pack_binary_install;
pub mod bindgen;
pub mod build;

@ -1,10 +1,10 @@
//! Getting WebDriver client binaries.
use binary_install::Cache;
use command::build::BuildMode;
use failure;
use std::path::PathBuf;
use target;
use wasm_pack_binary_install::Cache;
/// Get the path to an existing `chromedriver`, or install it if no existing
/// binary is found.

@ -1,6 +1,6 @@
use binary_install::Cache;
use tempfile;
use wasm_pack::bindgen;
use wasm_pack_binary_install::Cache;
#[test]
#[cfg(any(

@ -6,10 +6,10 @@ extern crate serde_derive;
extern crate serde_json;
#[macro_use]
extern crate slog;
extern crate binary_install;
extern crate structopt;
extern crate tempfile;
extern crate wasm_pack;
extern crate wasm_pack_binary_install;
mod bindgen;
mod build;

@ -1,5 +1,4 @@
use super::logger::null_logger;
use binary_install::Cache;
use std::env;
use std::fs;
use std::mem::ManuallyDrop;
@ -9,6 +8,7 @@ use std::sync::{MutexGuard, Once, ONCE_INIT};
use std::thread;
use tempfile::TempDir;
use wasm_pack;
use wasm_pack_binary_install::Cache;
/// A test fixture in a temporary directory.
pub struct Fixture {

@ -1,6 +1,6 @@
use binary_install::Cache;
use utils::fixture;
use wasm_pack::test::webdriver;
use wasm_pack_binary_install::Cache;
#[test]
#[cfg(any(

Loading…
Cancel
Save