Commit Graph

561 Commits

Author SHA1 Message Date
Felix Schütt
b06c04b6d6 Ignore presence of zig if --use-system-linker is specified 2022-12-23 18:30:28 +01:00
Felix Schütt
8fbf05165e Add fallback to system linker in case zig is not available 2022-12-23 16:40:16 +01:00
Felix Schütt
358296f353 Fix linking for --object-format serialized 2022-12-23 15:04:06 +01:00
Felix Schütt
acdc7e2498 Fix error when WASMER_DIR is not defined + prepare libwasmer-headless 2022-12-23 14:44:28 +01:00
Felix Schütt
88f6933876 Remove static_create_exe_main.c since it's duplicated 2022-12-23 14:20:08 +01:00
Felix Schütt
b873f0fe1a Fix make lint 2022-12-23 14:03:18 +01:00
Felix Schütt
75a7e68f9b Merge branch 'master' into multi-command-exe 2022-12-22 15:33:31 +01:00
Felix Schütt
aa04d58d62 Update wasmer-registry to 4.0.0 2022-12-22 14:25:45 +01:00
Felix Schütt
c7986832a2 Debug why linking WASMER_METADATA doesn't work for multiple files 2022-12-22 13:58:40 +01:00
Felix Schütt
3672e03f96 Merge branch 'master' into multi-command-exe 2022-12-22 11:40:38 +01:00
Felix Schütt
fdd62e188d Fix merge issues 2022-12-22 11:36:34 +01:00
Felix Schütt
ec18ec71e7 PartialWapmConfig -> WasmerConfig 2022-12-22 11:29:39 +01:00
Felix Schütt
45f4b8da4e Merge branch 'master' into config 2022-12-22 11:28:56 +01:00
Felix Schütt
9d9a6d398e Re-add generate_wasmer_main_c_static 2022-12-21 17:18:27 +01:00
Felix Schütt
b5119432ef Add CLI handling to wasmer_main.c 2022-12-21 15:51:46 +01:00
Felix Schütt
c92d8d34e3 Add compilation for single and multi-wasm inputs 2022-12-21 14:36:06 +01:00
Felix Schütt
bc7d125894 Add compile_c back and add compilation for atoms 2022-12-21 14:36:06 +01:00
Felix Schütt
03693d5ccc Simplify create-exe a lot 2022-12-21 12:14:55 +01:00
Felix Schütt
139c3147d6 Revert to "get" / "set" for settable config keys 2022-12-21 09:02:07 +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
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
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
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