mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 12:48:20 +00:00
cargo update
This commit is contained in:
6
Cargo.lock
generated
6
Cargo.lock
generated
@@ -3831,9 +3831,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wapm-toml"
|
||||
version = "0.3.2"
|
||||
version = "0.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a52a44eb6e8ede075e12c491bbe0422beee61febb23b86dbafda4badcf8db576"
|
||||
checksum = "bde48580008d83994e59db51dc23d200d91c06d6b82f59a955717d589dac29b5"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"semver 1.0.14",
|
||||
@@ -4154,7 +4154,7 @@ dependencies = [
|
||||
"unix_mode",
|
||||
"url",
|
||||
"walkdir",
|
||||
"wapm-toml 0.3.2",
|
||||
"wapm-toml 0.3.3",
|
||||
"wasmer",
|
||||
"wasmer-cache",
|
||||
"wasmer-compiler",
|
||||
|
||||
@@ -16,9 +16,9 @@ pub struct Init {
|
||||
/// Initialize an empty wapm.toml
|
||||
#[clap(long, name = "empty")]
|
||||
pub empty: bool,
|
||||
/// If the `manifest-dir` contains a Cargo.toml, use that file to initialize the wapm.toml
|
||||
#[clap(long, name = "manifest-dir")]
|
||||
pub manifest_dir: Option<PathBuf>,
|
||||
/// If the `manifest-path` is a Cargo.toml, use that file to initialize the wapm.toml
|
||||
#[clap(long, name = "manifest-path")]
|
||||
pub manifest_path: Option<PathBuf>,
|
||||
/// Directory of the output file name. wasmer init will error in the target dir already contains a wapm.toml
|
||||
#[clap(long, short = 'o', name = "out")]
|
||||
pub out: Option<PathBuf>,
|
||||
@@ -99,14 +99,8 @@ impl Init {
|
||||
|
||||
// See if the directory has a Cargo.toml file, if yes, copy the license / readme, etc.
|
||||
let cargo_toml = MetadataCommand::new()
|
||||
.manifest_path(match self.manifest_dir.as_ref() {
|
||||
Some(s) => {
|
||||
if format!("{}", s.display()).ends_with("Cargo.toml") {
|
||||
s.clone()
|
||||
} else {
|
||||
s.join("Cargo.toml")
|
||||
}
|
||||
}
|
||||
.manifest_path(match self.manifest_path.as_ref() {
|
||||
Some(s) => s.clone(),
|
||||
None => Path::new("./Cargo.toml").to_path_buf(),
|
||||
})
|
||||
.features(CargoOpt::AllFeatures)
|
||||
|
||||
Reference in New Issue
Block a user