{"id":17223147,"url":"https://github.com/daboross/screeps-wasm-test","last_synced_at":"2025-03-25T16:23:06.441Z","repository":{"id":150518079,"uuid":"110712828","full_name":"daboross/screeps-wasm-test","owner":"daboross","description":"Rust WASM tests with the intention to use in Screeps","archived":false,"fork":false,"pushed_at":"2017-11-28T05:07:38.000Z","size":109,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T14:27:09.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daboross.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-14T16:05:58.000Z","updated_at":"2017-11-15T05:49:51.000Z","dependencies_parsed_at":"2023-04-25T15:31:52.896Z","dependency_job_id":null,"html_url":"https://github.com/daboross/screeps-wasm-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboross%2Fscreeps-wasm-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboross%2Fscreeps-wasm-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboross%2Fscreeps-wasm-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboross%2Fscreeps-wasm-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daboross","download_url":"https://codeload.github.com/daboross/screeps-wasm-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245496968,"owners_count":20624930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T04:07:29.785Z","updated_at":"2025-03-25T16:23:06.419Z","avatar_url":"https://github.com/daboross.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rust WASM tests with the intention to use in Screeps\n==\n\n### Setup\n\nThis is based off of the bare-wasm target in nightly rust. You'll need a nightly\n2017-11-25 or newer.\n\nTo setup:\n- Install rust using [rustup](https://www.rustup.rs/)\n- Add/update nightly toolchain:\n\n  ```\n  rustup update nightly\n  ```\n- Add wasm32 target:\n\n  ```\n  rustup target add --toolchain nightly wasm32-unknown-unknown\n  ```\n- To run locally, install nodeJS version 8 or higher (https://nodejs.org/en/)\n- Clone this project\n- Optionally install:\n  - [wasm-gc](https://github.com/alexcrichton/wasm-gc):\n    useful for trimming excess code from .wasm files\n\n\n    ```\n    cargo install --git https://github.com/alexcrichton/wasm-gc\n    ```\n  - [wabt](https://github.com/WebAssembly/wabt):\n    useful for turning .wasm files into readable / debugable .wat text files\n\n    ```\n    git clone https://github.com/WebAssembly/wabt\n    cd wabt\n    make # your opts here (see wabt repository)\n    ```\n\n\n### Running it!\n\n\n```\n# build with Cargo\ncargo build --release --target=wasm32-unknown-unknown\n# optionally reduce WASM code size\nwasm-gc target/wasm32-unknown-unknown/release/*.wasm target/wasm32-unknown-unknown/release/*.wasm\n# run JS side\nnode ./src/javascript/callit.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaboross%2Fscreeps-wasm-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaboross%2Fscreeps-wasm-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaboross%2Fscreeps-wasm-test/lists"}