Revert "Update all dependencies"

This reverts commit 87b9a7de21.
master
brightly-salty 4 years ago
parent 87b9a7de21
commit 662821aaac
  1. 2519
      Cargo.lock
  2. 63
      Cargo.toml
  3. 6
      src/command/publish/mod.rs
  4. 8
      src/install/krate.rs

2519
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -10,40 +10,41 @@ categories = ["wasm"]
documentation = "https://rustwasm.github.io/wasm-pack/" documentation = "https://rustwasm.github.io/wasm-pack/"
[dependencies] [dependencies]
atty = "0.2.14" atty = "0.2.11"
cargo_metadata = "0.12.1" cargo_metadata = "0.8.0"
console = "0.13.0" console = "0.6.1"
dialoguer = "0.7.1" dialoguer = "0.3.0"
curl = "0.4.34" curl = "0.4.13"
env_logger = { version = "0.8.2", default-features = false } dirs = "1.0.4"
failure = "0.1.8" env_logger = { version = "0.5.13", default-features = false }
human-panic = "1.0.3" failure = "0.1.2"
glob = "0.3.0" human-panic = "1.0.1"
log = "0.4.11" glob = "0.2"
openssl = { version = "0.10.31", optional = true } log = "0.4.6"
parking_lot = "0.11.1" openssl = { version = '0.10.11', optional = true }
reqwest = { version = "0.10.10", features = ["blocking"] } parking_lot = "0.6"
semver = "0.11.0" reqwest = "0.9.14"
serde = "1.0.118" semver = "0.9.0"
serde_derive = "1.0.118" serde = "1.0.74"
serde_ignored = "0.1.2" serde_derive = "1.0.74"
serde_json = "1.0.60" serde_ignored = "0.0.4"
strsim = "0.10.0" serde_json = "1.0.26"
siphasher = "0.3.3" strsim = "0.8.0"
structopt = "0.3.21" siphasher = "0.2.3"
toml = "0.5.7" structopt = "0.2"
which = "4.0.2" toml = "0.4"
which = "2.0.0"
binary-install = "0.0.2" binary-install = "0.0.2"
walkdir = "2.3.1" walkdir = "2"
chrono = "0.4.19" chrono = "0.4.6"
[dev-dependencies] [dev-dependencies]
assert_cmd = "1.0.2" assert_cmd = "0.11"
lazy_static = "1.4.0" lazy_static = "1.1.0"
predicates = "1.0.5" predicates = "1.0.0"
serial_test = "0.5.1" serial_test = "0.2"
serial_test_derive = "0.5.1" serial_test_derive = "0.2"
tempfile = "3.1.0" tempfile = "3"
[features] [features]
vendored-openssl = ['openssl/vendored'] vendored-openssl = ['openssl/vendored']

@ -4,7 +4,7 @@ pub mod access;
use self::access::Access; use self::access::Access;
use command::build::{Build, BuildOptions, Target}; use command::build::{Build, BuildOptions, Target};
use command::utils::{find_pkg_directory, get_crate_path}; use command::utils::{find_pkg_directory, get_crate_path};
use dialoguer::{Confirm, Input, Select}; use dialoguer::{Confirmation, Input, Select};
use failure::Error; use failure::Error;
use log::info; use log::info;
use npm; use npm;
@ -31,8 +31,8 @@ pub fn publish(
None => { None => {
// while `wasm-pack publish`, if the pkg directory cannot be found, // while `wasm-pack publish`, if the pkg directory cannot be found,
// then try to `wasm-pack build` // then try to `wasm-pack build`
if Confirm::new() if Confirmation::new()
.with_prompt("Your package hasn't been built, build it?") .with_text("Your package hasn't been built, build it?")
.interact()? .interact()?
{ {
let out_dir = Input::new() let out_dir = Input::new()

@ -15,10 +15,10 @@ pub struct KrateResponse {
impl Krate { impl Krate {
pub fn new(name: &Tool) -> Result<Krate, failure::Error> { pub fn new(name: &Tool) -> Result<Krate, failure::Error> {
let krate_address = format!("https://crates.io/api/v1/crates/{}", name); let krate_address = format!("https://crates.io/api/v1/crates/{}", name);
let client = reqwest::blocking::Client::new(); let client = reqwest::Client::new();
let res = client.get(&krate_address).send()?; let mut res = client.get(&krate_address).send()?;
let text = res.text()?;
let kr: KrateResponse = serde_json::from_str(&text)?; let kr: KrateResponse = serde_json::from_str(&res.text()?)?;
Ok(kr.krate) Ok(kr.krate)
} }
} }

Loading…
Cancel
Save