Update dependencies

master
printfn 3 years ago
parent ebdaea8150
commit 6ca10193d4
  1. 1332
      Cargo.lock
  2. 28
      Cargo.toml
  3. 6
      src/command/publish/mod.rs
  4. 4
      src/install/krate.rs
  5. 2
      src/manifest/mod.rs
  6. 2
      tests/all/download.rs
  7. 1
      tests/all/utils/fixture.rs

1332
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -12,36 +12,36 @@ documentation = "https://rustwasm.github.io/wasm-pack/"
[dependencies]
anyhow = "1.0.66"
atty = "0.2.11"
cargo_metadata = "0.8.0"
cargo_metadata = "0.15"
console = "0.6.1"
dialoguer = "0.3.0"
dialoguer = "0.10"
curl = "0.4.13"
env_logger = { version = "0.5.13", default-features = false }
env_logger = { version = "0.9", default-features = false }
human-panic = "1.0.1"
glob = "0.2"
glob = "0.3"
log = "0.4.6"
openssl = { version = '0.10.11', optional = true }
parking_lot = "0.6"
reqwest = "0.9.14"
semver = "0.9.0"
parking_lot = "0.12"
reqwest = { version = "0.11.12", features = ["blocking"] }
semver = "1"
serde = "1.0.74"
serde_derive = "1.0.74"
serde_ignored = "0.0.4"
serde_ignored = "0.1"
serde_json = "1.0.26"
strsim = "0.8.0"
siphasher = "0.2.3"
strsim = "0.10"
siphasher = "0.3"
structopt = "0.3"
toml = "0.4"
toml = "0.5"
which = "4.3.0"
binary-install = { git = "https://github.com/rustwasm/binary-install", rev = "6d60f6731c8294000ea8f3a0260659b025cf7f94" }
walkdir = "2"
chrono = "0.4.6"
[dev-dependencies]
assert_cmd = "0.11"
assert_cmd = "2"
lazy_static = "1.1.0"
predicates = "1.0.0"
serial_test = "0.3"
predicates = "2"
serial_test = "0.9"
tempfile = "3"
[features]

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

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

@ -424,7 +424,7 @@ impl CrateData {
.iter()
.position(|pkg| {
pkg.name == manifest.package.name
&& CrateData::is_same_path(&pkg.manifest_path, &manifest_path)
&& CrateData::is_same_path(pkg.manifest_path.as_std_path(), &manifest_path)
})
.ok_or_else(|| anyhow!("failed to find package in metadata"))?;

@ -84,7 +84,7 @@ fn all_latest_tool_download_urls_valid() {
// For all valid tool, arch & os combinations,
// error out when any of them is a 404 or similar
if let Ok(url) = install::prebuilt_url_for(&tool, "0.2.82", &arch, &os) {
let client = reqwest::Client::new();
let client = reqwest::blocking::Client::new();
// Use HTTP HEAD instead of GET to avoid fetching lots of stuff
let res = client.head(&url).send().unwrap();
if res.status().is_client_error() {

@ -1,4 +1,5 @@
use binary_install::Cache;
use lazy_static::lazy_static;
use std::env;
use std::fs;
use std::mem::ManuallyDrop;

Loading…
Cancel
Save