Syrus Akbary
f41b22cff5
Fixed create_exe unwanted changes
2021-03-03 21:50:58 -08:00
Syrus Akbary
392f50a1af
Update dependencies. Use Clap 3.0.0-beta2 instead of StructOpt
2021-03-03 21:47:49 -08:00
Julius Michaelis
59b5544996
Fix 8041f03bc: enable compilers during tests, make sure make test-packages lint-packages passes
2021-02-25 18:10:03 +09:00
Julius Michaelis
80ec06ffab
Allow preconfiguring WASMER_DIR at build time
2021-02-22 23:39:53 +09:00
Julius Michaelis
8041f03bc4
wasmer-cli: refuse to build if not at least one compiler is enabled
2021-02-22 23:39:53 +09:00
Nick Lewycky
2592094fd1
Simplify string manipulation code, use more standard library functions.
2021-02-15 01:19:44 -08:00
Nick Lewycky
0157016b4f
Undo reordering of #include done by clang-format.
...
The header file generated by engine-object-file doesn't #include the wasm types it needs and relies on these being included before it.
2021-02-15 01:06:26 -08:00
nlewycky
9c9f576192
Merge branch 'master' into feature/no-include-from-extern-c
2021-02-12 15:15:41 -08:00
Nick Lewycky
d589d83d09
Don't #include inside extern "C" blocks.
...
Also free the malloc'd error string in print_wasmer_error().
Run the C code through clang-format.
2021-02-10 18:00:58 -08:00
Nick Lewycky
f1008783f7
Fix typo.
2021-02-10 17:56:06 -08:00
Nick Lewycky
e698ac32ee
Add bcrypt which is required by newer getrandom crate on Windows.
2021-02-10 17:52:12 -08:00
jubianchi
835b50094b
fix: cflags emitted by wasmer config --pkg-config are now correct
...
Closes #1989
2021-02-08 13:29:32 +01:00
Nick Lewycky
9e1cec01be
Prepare for 1.0.2 release
2021-02-04 19:44:49 -08:00
Syrus Akbary
77f2e85473
Fix create-exe in Windows
2021-02-04 18:42:00 -08:00
Ivan Enderlin
453ece6415
fix(c-api) Call wasi_env_delete manually.
...
`wasi_get_imports` isn't taking ownership of `wasi_env_t` (despites
what is written in the documentation). And it must not take ownership
of it, since one could use it with the `wasi_env_read_stdout` &
sibling functions after having called `wasi_get_imports`.
Consequently, this patch calls `wasi_env_delete` to avoid leaking
memory.
2021-02-02 14:29:10 +01:00
Ivan Enderlin
0bf86c8d01
feat(cli) Trim environment variables before parsing them.
2021-01-22 13:59:30 +01:00
Ivan Enderlin
802ccc6d80
feat(cli) Improve environment variables parsing.
...
The following environment variables are considered incorrect:
* `A`, no equal sign,
* `A=`, value is missing,
* `=A`, key is missing.
The following environment variables are considered correct:
* `A=B` with `A` for the name and `B` for the value,
* `A=B=C` with `A` for the name and `B=C` for the value.
2021-01-22 13:50:20 +01:00
Mark McCaskey
470dd80a3f
Create separate wasmer-headless binary
2021-01-12 14:40:55 -08:00
Mark McCaskey
ba52b4553e
Fix typo feature "compile" -> "compiler"
2021-01-12 13:10:11 -08:00
Mark McCaskey
88b4093646
Add packaging of headless wasmer to CI
2021-01-12 13:07:07 -08:00
Mark McCaskey
924ffd8797
Prepare for 1.0.1 release
2021-01-12 08:08:19 -08:00
bors[bot]
3592457420
Merge #2004
...
2004: Add makefile command for building minimal headless wasmer r=MarkMcCaskey a=MarkMcCaskey
Currently requires modifying `Cargo.toml` for best results. I spent a while trying to work around that with `RUSTFLAGS`, but due to building `std` with `xargo`, `RUSTFLAGS` cannot be used here it seems... it applies the flags to `std` and the flags are incompatible (i.e. `lto` with libraries)
doesn't build without a bug fix from #1993 ; we can always just include that in this PR too though
# Review
- [ ] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Mark McCaskey <mark@wasmer.io >
2021-01-12 14:24:16 +00:00
Mark McCaskey
06236454a5
Add makefile command for building small headless wasmer
2021-01-11 07:39:59 -08:00
Mark McCaskey
3f39b968f5
Make get_recommended_function return Result
2021-01-07 11:14:31 -08:00
Mark McCaskey
93fa0f008e
Handle error case of emscripten + wasi module
2021-01-07 07:40:34 -08:00
Mark McCaskey
bc73789cc0
Prepare for 1.0.0 release
2021-01-05 06:21:03 -08:00
Mark McCaskey
2d1c03bea0
Prepare for 1.0.0-rc1 release
2020-12-23 11:17:07 -08:00
Mark McCaskey
59df6917d8
Prepare for 1.0.0-beta2 release
2020-12-16 07:41:59 -08:00
Mark McCaskey
f86a98ec16
Run rustfmt
2020-12-04 17:48:40 -08:00
Syrus Akbary
5c3597845b
Fix wasmer cli
2020-12-04 16:45:26 -08:00
Syrus
13e6f29c29
Set compiler config to be owned (following wasm-c-api)
2020-12-04 02:39:19 -08:00
Syrus Akbary
2fac4356a8
Added Cranelift x64 experimental feature flag
2020-12-02 23:02:24 -08:00
Nick Lewycky
6a26e93bd2
Fix typo in comment in template of generated code.
2020-12-02 15:54:48 -08:00
Mark McCaskey
947e7d394f
Prepare for 1.0.0-beta1 release
2020-12-01 17:15:46 -08:00
Mark McCaskey
4ef3286f2e
Merge branch 'master' into feature/host-env-prototype
2020-11-30 16:52:34 -08:00
Syrus Akbary
1f66798bed
All WASI tests now pass in Apple Silicon
2020-11-19 19:25:57 -08:00
Mark McCaskey
2b0464a4b2
Port wasmer-emscripten to use WasmerEnv
2020-11-17 16:19:00 -08:00
Mark McCaskey
2690e5e8f6
Merge branch 'master' into feature/host-env-prototype
2020-11-16 15:13:29 -08:00
Nick Lewycky
49b0a4a16a
Prepare for 1.0.0-alpha5 release.
2020-11-06 11:50:07 -08:00
Syrus
2387ec07b6
Upgrade dependencies
2020-10-29 22:59:48 -07:00
Mark McCaskey
78f958b52c
Clean up misc code
2020-10-29 13:07:04 -07:00
Mark McCaskey
5b67b2f3dc
Merge branch 'master' into feature/host-env-prototype
2020-10-27 16:24:00 -07:00
jubianchi
2452b9a604
chore(doc): Add the Wasmer logo to the generated API documentation
2020-10-26 22:37:30 +01:00
Mark McCaskey
46204d6357
Fix up more tests
2020-10-21 12:00:30 -07:00
Mark McCaskey
011ec22d43
Merge branch 'master' into feature/host-env-prototype
2020-10-20 15:46:50 -07:00
Mark McCaskey
3c7dfe29f3
Add hacked together vertical slice of host env updating idea
2020-10-19 17:19:46 -07:00
Mark McCaskey
c5df8cfd9e
Fix func_calls to not pass NULL but WASM_EMPTY_VEC
2020-10-19 14:50:39 -07:00
Mark McCaskey
6d326233f7
Merge branch 'master' into fix/create-exe-genearted-code-bugs
2020-10-19 10:03:05 -07:00
Mark McCaskey
2175472c6d
When running in WASI, get the _start function explicitly
2020-10-16 13:43:14 -07:00
Ivan Enderlin
1cdb5b5876
fix(c-api) Fix another typo. Damn.
2020-10-16 21:24:36 +02:00