@ -1,8 +1,8 @@
use PBAR;
use console::style;
use emoji;
use failure::Error;
use std::process::Command;
pub fn cargo_install_wasm_bindgen() -> Result<(), Error> {
let step = format!(
pub fn rustup_add_wasm_target() -> Result<(), Error> {
@ -1,4 +1,3 @@
use bindgen;
use build;
@ -13,6 +12,7 @@ use readme;
use std::fs;
use std::result;
use std::time::Instant;
#[derive(Debug, StructOpt)]
pub enum Command {
@ -5,8 +5,8 @@ extern crate indicatif;
extern crate quicli;
use quicli::prelude::*;
use wasm_pack::Cli;
use wasm_pack::command::run_wasm_pack;
main!(|args: Cli, log_level: verbosity| {
run_wasm_pack(args.cmd)?;
@ -1,12 +1,12 @@
use std::fs::File;
use std::io::prelude::*;
use serde_json;
use toml;
#[derive(Deserialize)]
struct CargoManifest {
@ -1,6 +1,6 @@
pub fn npm_pack(path: &str) -> Result<(), Error> {
let pkg_file_path = format!("{}/pkg", path);
@ -2,8 +2,8 @@ use console::style;
pub fn copy_from_crate(path: &str) -> Result<(), Error> {