lambda-rs

Crates.iolambda-rs
lib.rslambda-rs
version2023.1.30
sourcesrc
created_at2023-01-28 02:27:31.323318
updated_at2023-01-31 01:25:20.886053
descriptionA framework for building cross platform graphics & compute applications.
homepage
repositoryhttps://github.com/lambda-sh/lambda
max_upload_size
id770080
size248,408
Vincenzo Marcella (vmarcella)

documentation

README

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);
}
Commit count: 1230

cargo fmt