Commit Graph

523 Commits

Author SHA1 Message Date
Christoph Herzog
a499deadeb Bump webc to 4.0.0
The earlier 0.4.1 downgrade was a "hack".
There alrady is a 3.x version that was used previously, but is broken.
We replaced that with 0.4.1, which was the latest publish, but we can't
downgrade to a previous version...

So 0.4.1 was re-relased as 4.0.0.
2022-12-22 16:38:05 +01:00
Felix Schütt
b24025ad01 cargo clippy --fix --all 2022-12-21 00:49:45 +01:00
Felix Schütt
e9ceff9e16 Use MIGRATIONS.len() and fix compile errors 2022-12-21 00:23:56 +01:00
Felix Schütt
96f14164af Bubble error on .tar.gz build failure 2022-12-21 00:16:34 +01:00
Felix Schütt
896cf0dc3c Make SignArchiveResult::Ok clearer
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-21 00:03:48 +01:00
Felix Schütt
b26c73ee32 Use anyhow .with_context
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-21 00:03:04 +01:00
Felix Schütt
117c9a3cb6 Rework switching between --bin, --lib and --empty
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-20 23:54:35 +01:00
Felix Schütt
e06e5a9cab Use PathBuf::from(string)
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-20 23:52:24 +01:00
Felix Schütt
f9bc2d916f Return error on fs::create_dir_all failing 2022-12-20 23:48:00 +01:00
Felix Schütt
fc280cca48 Fix remaining compilation errors regarding wasmer_url 2022-12-20 23:12:57 +01:00
Felix Schütt
02fc047640 Migrate from wapm-toml to wasmer-toml 2022-12-19 17:07:41 +01:00
Felix Schütt
5e19f0aa4c Change wapm.toml to wasmer.toml with fallback 2022-12-18 08:57:44 +01:00
Felix Schütt
8e865a2411 Remove Package::validate_package_name 2022-12-17 00:33:23 +01:00
Felix Schütt
dd470adeff Amend note for warning about Cargo metadata 2022-12-17 00:08:27 +01:00
Felix Schütt
adafb28f64 Add warning when initializing a wasmer.toml file from a Cargo.toml 2022-12-17 00:05:01 +01:00
Felix Schütt
46a2d28f30 Remove client-side validation when uploading package 2022-12-16 23:56:22 +01:00
Felix Schütt
e1c42b5f90 Revert "Revert "Implement wasmer init and wasmer publish""
This reverts commit 250ebff4e8.
2022-12-16 23:40:17 +01:00
Syrus Akbary
250ebff4e8 Revert "Implement wasmer init and wasmer publish" 2022-12-16 14:09:55 -08:00
Felix Schütt
a4a997c7cf Fix wasmer-wasm-interface version 2022-12-16 18:50:27 +01:00
Felix Schütt
d1093ca821 Fix make lint 2022-12-16 12:21:44 +01:00
Felix Schütt
ad5b9f2595 Fix --package-name on wasmer init 2022-12-16 12:04:18 +01:00
Felix Schütt
c1966702e2 Add check to validate the package name 2022-12-16 11:43:35 +01:00
Felix Schütt
ee3902fa4a Do not add a namespace when user is not logged in 2022-12-16 10:43:26 +01:00
Felix Schütt
f9a70c5b51 Avoid packagename/packagename when running wasmer init 2022-12-16 10:22:28 +01:00
Felix Schütt
1727d1534c Remove cargo wapm code 2022-12-16 10:19:58 +01:00
Felix Schütt
671e1bccb7 Fix make lint 2022-12-15 23:05:38 +01:00
Felix Schütt
c31587c339 Remove code to check for user / namespace consistency 2022-12-15 22:41:10 +01:00
Felix Schütt
d83190919a Output warning on multiple .wit / .wai files 2022-12-15 14:21:40 +01:00
Felix Schütt
a2b39503ba Fix make lint 2022-12-15 14:01:03 +01:00
Felix Schütt
de9cefe7df Rework namespace formatting 2022-12-15 13:42:19 +01:00
Felix Schütt
88ee645e6a Fix copy-paste bug
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-15 12:32:16 +01:00
Michael-F-Bryan
8788dac9ef Mention the filename when a fs operation fails 2022-12-15 16:38:33 +08:00
Michael-F-Bryan
a45af93774 Make sure we only add "\r" characters on Windows 2022-12-15 15:51:39 +08:00
Michael-F-Bryan
3da744bf1c Mark template as a value_enum 2022-12-15 15:44:17 +08:00
Felix Schütt
80c05e99e7 Do not publish if namespace = "_" 2022-12-14 19:23:36 +01:00
Felix Schütt
7a0a515ab1 Add proper check to test whether publishing under a namespace will work 2022-12-14 16:37:05 +01:00
Felix Schütt
096063402e Fix append_path_to_tar_gz function 2022-12-14 15:44:17 +01:00
Felix Schütt
5b3eb42348 Factor constructing .tar.gz into separate functions 2022-12-14 15:08:14 +01:00
Felix Schütt
e1ddf53815 Add log::warn 2022-12-14 14:37:29 +01:00
Felix Schütt
27aec54e51 Add log::warn when appending paths to .tar.gz on publish fails 2022-12-14 14:36:35 +01:00
Felix Schütt
1636ca3f26 Refactor add_to_toml step 2022-12-14 14:29:42 +01:00
Felix Schütt
5e800f37a8 Refactor functions 2022-12-14 14:10:41 +01:00
Felix Schütt
61032c102e Fix merge errors 2022-12-14 13:48:11 +01:00
Felix Schütt
a91a9ab3d4 Use Template with clap(ValueEnum) 2022-12-14 13:45:22 +01:00
Felix Schütt
443ed12200 Simplify get_dependencies
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-14 13:36:05 +01:00
Felix Schütt
359f91d7a3 Refactor parsing Cargo.toml in wasmer init 2022-12-14 13:34:17 +01:00
Felix Schütt
590afd1327 Use wai 0.2.0
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-14 13:29:58 +01:00
Felix Schütt
3c099b7df0 Show file name in error message
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-14 13:21:56 +01:00
Felix Schütt
912b14026c Use anyhow::bail
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-14 13:20:04 +01:00
Felix Schütt
9bb8eef189 Use crate-type group 2022-12-14 13:18:57 +01:00