#compute #graphics #cross-platform #applications #lambda #framework #building

lambda-rs

A framework for building cross platform graphics & compute applications

5 releases (stable)

2023.1.30 Jan 31, 2023
2023.1.29 Jan 29, 2023
2023.1.27 Jan 28, 2023

#317 in Graphics APIs

22 downloads per month

MIT license

145KB
2K SLoC

lambda-rs lambda-rs

The lambda-rs crate provides a safe, cross-platform API for building applications on the Lambda platform.

Installation

cargo add lambda-rs

Getting started

First window

Getting started with lambda is easy. The following example will create a window with the title "Hello lambda!" and a size of 800x600.

#[macro_use]
use lambda::{
  core::runtime::start_runtime,
  runtimes::ApplicationRuntimeBuilder,
};

fn main() {
  let runtime = ApplicationRuntimeBuilder::new("Hello lambda!")
    .with_window_configured_as(move |window_builder| {
      return window_builder
        .with_dimensions(800, 600)
        .with_name("Hello lambda!");
    })
    .build();

  start_runtime(runtime);
}

Dependencies

~36–50MB
~1M SLoC