Skip to content
/ kapp Public

A pure Rust window and input library for Windows, Mac, and Web. (Work in progress)

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.md
MIT
LICENSE-MIT.md
Zlib
LICENSE-ZLIB.md
Notifications You must be signed in to change notification settings

kettle11/kapp

This repository is no longer maintaned. kApp is now developed within the koi repository: https://github.com/kettle11/koi

kApp

kApp is a pure Rust window and input library for macOS, Web, and Windows.

kApp strives to be unsurprising, quick to build, and straightforward to maintain.

A clean build of kApp on macOS takes about 3.5 seconds.

kApp is a work in progress.

kApp is being improved slowly and steadily as issues come up. It is usable as is, but some functionality is missing and everything is subject to change. If you try it out and run into a problem open an issue and please consider contributing!

Currently, to keep the scope manageable, kapp only aims to support the latest of MacOS, Windows, and web browsers. kApp's first priority is consistency and quality for the current platforms, but other platforms may be considered in the future.

Linux support is an eventual goal and an area where contributions and collaboration would be very welcome.

Example

use kapp::*;

fn main() {
    let (app, event_loop) = initialize();
    let _window = app.new_window().build().unwrap();

    event_loop.run(move |event| match event {
        Event::WindowCloseRequested { .. } => app.quit(),
        Event::Draw { .. } => {
            // Render something here.
        }
        _ => {}
    });
}

Features

  • Create windows
  • Mouse input
  • Keyboard input
  • Event timestamps

License

kapp is licensed under MIT or Apache 2.0 or Zlib.

Similar Projects

The following projects were valuable resources that inspired kApp.

Winit

Makepad

Glutin

SDL2

Sokol

GLFW

About

A pure Rust window and input library for Windows, Mac, and Web. (Work in progress)

Topics

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.md
MIT
LICENSE-MIT.md
Zlib
LICENSE-ZLIB.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages