diff options
| author | Henry <mail@henrygressmann.de> | 2026-05-02 21:14:02 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-05-02 21:19:54 +0200 |
| commit | ba1cf56464f8e5c3c7bcc2dc75f10aad2cd56e6b (patch) | |
| tree | dd0bef203b31c494f48e72c1169f2f50ae7b6d21 /examples | |
| parent | d3c6b705a3b1035adda66a92131e9ddf59fb46ab (diff) | |
chore: add more tests, fix issues with import types, cleanup doom example
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/doom/Cargo.toml | 16 | ||||
| -rw-r--r-- | examples/doom/README.md | 4 | ||||
| -rw-r--r-- | examples/doom/out/.gitkeep | 0 | ||||
| -rw-r--r-- | examples/rust/Cargo.toml | 3 |
4 files changed, 12 insertions, 11 deletions
diff --git a/examples/doom/Cargo.toml b/examples/doom/Cargo.toml index c1d0af4..62710de 100644 --- a/examples/doom/Cargo.toml +++ b/examples/doom/Cargo.toml @@ -1,13 +1,15 @@ +# treat this as an independent package +[workspace] + [package] name="tinywasm-doom" publish=false -edition.workspace=true -rust-version.workspace=true +edition="2024" [dependencies] -eyre.workspace=true -pretty_env_logger.workspace=true -tinywasm={workspace=true, features=[ +eyre="0.6" +pretty_env_logger="0.5" +tinywasm={features=[ "std", "parser", "log", @@ -15,7 +17,7 @@ tinywasm={workspace=true, features=[ "canonicalize-nans", "debug", "parallel-parser", -]} -log.workspace=true +], path="../../crates/tinywasm"} +log="0.4" softbuffer="0.4" winit="0.30" diff --git a/examples/doom/README.md b/examples/doom/README.md index f3bc60e..7438563 100644 --- a/examples/doom/README.md +++ b/examples/doom/README.md @@ -10,10 +10,12 @@ This example builds a WebAssembly guest from [`PureDOOM`](https://github.com/Dai ## Running the example +From the root of the repository, run: + ```sh # download & build `PureDOOM` ./examples/doom/build.sh # start doom with the WAD you want to use -cargo run -p tinywasm-doom --release -- /path/to/DOOM1.WAD +cargo doom /path/to/doom.wad ``` diff --git a/examples/doom/out/.gitkeep b/examples/doom/out/.gitkeep deleted file mode 100644 index e69de29..0000000 --- a/examples/doom/out/.gitkeep +++ /dev/null diff --git a/examples/rust/Cargo.toml b/examples/rust/Cargo.toml index 73aa815..97f9674 100644 --- a/examples/rust/Cargo.toml +++ b/examples/rust/Cargo.toml @@ -1,12 +1,9 @@ -cargo-features=["per-package-target"] - # treat this as an independent package [workspace] [package] publish=false name="rust-wasm-examples" -forced-target="wasm32-unknown-unknown" edition="2021" [dependencies] |
