🚀 Get started to use on WASM
This guide explains how to develop applications for Xila using WebAssembly (WASM).
✅ Requirements
- Rust/Cargo: Required to build and manage Rust projects.
wasm32-wasip1Rust target: Needed to compile Xila virtual machine executables.- (Optional)
wasm32-unknown-unknownRust target: Used to compile thewasm_example. - (Optional)
nightlyRust toolchain: Required to compile thewasm_example.
📖 Steps
- Add Xila as a dependency in your
Cargo.tomlfile within a blank Cargo workspace:
toml
[dependencies]
xila = { git = "https://github.com/Xila-Project/Core.git", features = ["wasm"] }- Develop your application:
- Use the standard WASM APIs provided by Rust (e.g., file system, time).
- Leverage Xila's APIs for specific functionalities such as graphics and networking.
INFO
For more details, refer to the executables/calculator example application.