Skip to content

๐Ÿ–ฅ๏ธ Use on Host โ€‹

Use this path if you want to run Xila natively on your machine first, then integrate it into your own workspace.

Requirements โ€‹

Quickstart (command-first) โ€‹

Use this to get a first native run signal quickly.

bash
git clone https://github.com/Xila-Project/Core.git
cd Core
cargo make run -p native_example

Expected success signal:

  • A native window or console app starts, and the process runs without immediate panic.

What this sets up โ€‹

  • A host-targeted Xila runtime path using native drivers and the host feature set.
  • A reproducible baseline to verify your machine/toolchain before integrating into your own app.

If cargo make is missing:

bash
cargo install cargo-make

Integrator path โ€‹

Once the native example works, create your own workspace and add Xila:

toml
[dependencies]
xila = { git = "https://github.com/Xila-Project/Core.git", features = ["host"] }

Then follow this practical sequence:

  1. Implement or reuse drivers from xila::drivers.
  2. Register drivers in the Virtual File System.
  3. Initialize only the modules you need (task, graphics, file system, ...).
  4. Run your shell/app entrypoint.

Expected success signal:

  • Your app links, starts, and reaches your Xila initialization code path.

Troubleshooting โ€‹

  • cargo make: command not found: install with cargo install cargo-make and restart the shell.
  • 32-bit link/build issues: install gcc-multilib and retry.
  • Font-related build failures: ensure nodejs is available and rerun font generation tasks.
  • Unsure where a component belongs: use the architecture maps below before wiring modules.

Next steps โ€‹

INFO

For more details, refer to the examples/native or examples/wasm.