Commit Graph

857 Commits

Author SHA1 Message Date
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
9795415164 Refactor: split out functions into free function, simplify logic 2022-12-20 12:29:45 +01:00
Felix Schütt
c7621ffab0 Fix wasmer config set subcommand 2022-12-20 10:57:27 +01:00
Felix Schütt
bc2f445d9d Update wasmer config for new --flag getters 2022-12-20 10:13:19 +01:00
Felix Schütt
02fc047640 Migrate from wapm-toml to wasmer-toml 2022-12-19 17:07:41 +01:00
Felix Schütt
92daae567a Start moving conditionals of compile_zig() and link() into function itself 2022-12-19 15:57:20 +01:00
Felix Schütt
82bc742652 Add initial implementation of Entrypoint::Multi 2022-12-19 13:01:37 +01:00
Felix Schütt
1d4bc0446c Fix make lint / remove unnecessary code 2022-12-19 12:05:55 +01:00
Felix Schütt
77ff807e24 Rework changes to create-exe: only print to stdout when debug_dir set 2022-12-19 12:04:59 +01:00
Felix Schütt
a7e537c335 WIP: debug create-exe 2022-12-19 12:04:38 +01:00
Felix Schütt
29a4e07ecc Merge branch 'master' into fast-ci 2022-12-19 08:12:13 +01:00
Felix Schütt
a058f8e105 Delete publish.rs file 2022-12-18 15:44:31 +01:00
Felix Schütt
327f7a61a3 Merge remote-tracking branch 'origin/master' into config 2022-12-18 15:43:03 +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
Felix Schütt
0bdf5c62b1 Implement wasmer config CLI handling properly
Now supports --prefix and [get | set] subcommands
2022-12-16 23:25:56 +01:00
Syrus Akbary
250ebff4e8 Revert "Implement wasmer init and wasmer publish" 2022-12-16 14:09:55 -08:00
Felix Schütt
a1f0d323c8 Merge branch 'master' into config 2022-12-16 22:27:54 +01:00
Felix Schütt
bf1971f062 Merge branch 'master' into fast-ci 2022-12-16 22:03:36 +01:00
Felix Schütt
32d04e8ddf Use BoolString for handling CLI flags 2022-12-16 19:37:49 +01:00
Felix Schütt
bd0db36ab7 Migrate from enabled: String to enabled: bool 2022-12-16 19:15:30 +01:00
Felix Schütt
a4a997c7cf Fix wasmer-wasm-interface version 2022-12-16 18:50:27 +01:00
Felix Schütt
9d9ebd4e04 Add failing unit test, create entrypoint.json and prepare linking 2022-12-16 14:37:16 +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
1013fe6a69 Fix make lint 2022-12-15 21:57:42 +01:00
Felix Schütt
1076ff25b6 Add integration tests 2022-12-15 21:53:34 +01:00
Felix Schütt
11f6c430cb PartialWapmConfig -> WasmerConfig 2022-12-15 20:41:15 +01:00
Felix Schütt
2923147e41 Finish porting wapm config 2022-12-15 20:38:35 +01:00
Felix Schütt
2de0e45287 Initial implementation for new wasmer config 2022-12-15 16:50:39 +01:00
Felix Schütt
a479c4b006 Try to fix integration tests on Windows 2022-12-15 15:33:39 +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