Commit Graph

136 Commits

Author SHA1 Message Date
Syrus Akbary
98481f51fe Move ModuleInfo to wasmer-types 2021-07-16 15:42:39 -07:00
Mark McCaskey
0c0fdad3d2 Prepare for 2.0.0 release 2021-06-15 11:26:46 -07:00
chenyukang
3ad617fd69 fix unwrap error when given a no export functions wasm 2021-06-04 15:40:37 +08:00
Mark McCaskey
80a8658e5a Prepare for 2.0.0-rc2 release 2021-06-03 09:19:16 -07:00
Mark McCaskey
01012803bd Update conflicts_with_all for structopt 2021-06-03 08:25:32 -07:00
Mark McCaskey
6382d99ac7 Revert update to clap-beta back to structopt
Clap-beta hasn't had a release in a while and likely won't for a while longer.
We're affected by bugs that have been fixed and not released. We shouldn't be
depending on beta software anyways for this.
2021-06-03 07:49:32 -07:00
Mark McCaskey
cfc1a5fc26 Fix typo 2.0.0-rc -> 2.0.0-rc1 2021-06-02 08:32:46 -07:00
Mark McCaskey
2897a5b05e Bump version number to 2.0.0-rc1 2021-06-02 08:21:34 -07:00
Syrus Akbary
2b69176a86 Added API compatibility layer 2021-06-02 00:29:55 -07:00
Syrus Akbary
b520a5f58a Renamed wasmer_wasm.h to wasmer.h 2021-06-01 21:47:37 -07:00
Syrus Akbary
0d65134b3d Fixing tests and remove unused wasm.h 2021-06-01 19:40:33 -07:00
bors[bot]
19cea55b54 Merge #2368 #2369
2368: chore(wasi) Remove the deprecated code r=Hywan a=Hywan

# Description

This PR removes deprecated code from the `wasi` crate. With the 2.x coming soon, we no longer need this to maintain this code :-).

I don't know what to do with:

```rust
pub enum Kind {
    File {
        /// The path on the host system where the file is located
        /// This is deprecated and will be removed soon
        path: PathBuf,
```

in `state/mod.rs`. Any clue @MarkMcCaskey?

2369: chore(cli) Remove the `--backend` deprecated option r=Hywan a=Hywan

# Description

This PR removes the deprecated `--backend` option. With the 2.x coming, we no longer need to maintain this compatibility.


Co-authored-by: Ivan Enderlin <ivan@mnt.io>
2021-05-31 17:54:52 +00:00
Ivan Enderlin
87175ebae2 chore(cli) Remove the --backend deprecated option. 2021-05-31 17:27:28 +02:00
Ivan Enderlin
5d302f0d4a feat: Rename wasmer-engine-object-file to wasmer-engine-staticlib. 2021-05-31 14:19:14 +02:00
Ivan Enderlin
3d66a2e360 feat: Rename wasmer-engine-native to wasmer-engine-dylib. 2021-05-28 14:13:24 +02:00
Ivan Enderlin
79d5f20301 feat: Rename wasmer-engine-native to wasmer-engine-shared-object. 2021-05-28 14:13:24 +02:00
Ivan Enderlin
9ecd273705 Update lib/cli/README.md
Co-authored-by: Julien BIANCHI <contact@jubianchi.Fr>
2021-05-27 13:08:34 +02:00
Ivan Enderlin
e5a784a006 feat: Rename wasmer-engine-jit to wasmer-engine-universal.
This (small) patch renames the `wasmer-engine-jit` crate into
`wasmer-engine-universal`.
2021-05-25 16:12:06 +02:00
Syrus
7c96f54dfa Use old cranelift backend for now so cranelift+native tests pass 2021-05-12 15:40:25 -07:00
Mark McCaskey
5d41f998ac Do not run Wasm with 0 imports as WASI in the CLI 2021-05-04 11:20:10 -07:00
Mark McCaskey
626fb5ca5e Merge pull request #2251 from wasmerio/feature/multiple-wasi-versions-in-li
Allow CLI to exec WASI w/ multiple namespaces
2021-04-28 12:28:55 -04:00
Mark McCaskey
1e9603ef06 Update from feedback 2021-04-27 07:45:15 -07:00
k-nasa
40ee361586 fix favicon 2021-04-24 15:34:44 +09:00
Mark McCaskey
bc9706e3c6 Add flag to deny multiple WASI versions 2021-04-22 08:34:01 -07:00
Mark McCaskey
b4ee78c880 Allow CLI to exec WASI w/ multiple namespaces
Added a warning when it's done and a flag to opt out of the warning: `--allow-multiple-wasi-versions`
2021-04-22 08:16:34 -07:00
Bo Yao
dadc81296a cargo fmt 2021-04-21 16:06:12 -07:00
Bo Yao
24bcc9349e cargo fmt 2021-04-21 15:42:47 -07:00
Bo Yao
92af25a585 resolve conflict, replace two primary map to hash map 2021-04-20 16:50:05 -07:00
Ivan Enderlin
e1e2f03c7c fix: Rename lib/wasmer-types/ to lib/types/. 2021-03-23 17:36:58 +01:00
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