Skip to content
/ agave Public

lightweight operating system written in Rust with wasi support.

License

Notifications You must be signed in to change notification settings

load1n9/agave

Repository files navigation

Agave OS

Agave OS is a simple operating system written in Rust with wasi support. It is designed to be lightweight and easy to use. It is also designed to be easy to customize and extend. Started from Fomos and the second edition of Writing an OS in Rust by Philipp Oppermann. Also contains code from Theseus OS

Features

  • Lightweight and fast
  • Supports a wide range of hardware platforms
  • Easy to use and customize
  • Built with Rust and wasi for maximum performance and security

WASM apps

use agave_lib::{draw_circle, get_dimensions, Position, RGBA};

#[no_mangle]
pub extern "C" fn update(mouse_x: i32, mouse_y: i32) {
    let dim = get_dimensions();

    draw_circle(
        Position { x: mouse_x, y: mouse_y },
        10,
        RGBA {
            r: if mouse_x >= dim.width / 2 { 50 } else { 255 },
            g: 0,
            b: 255,
            a: 255,
        },
    );
}

WASM app

Maintainers