Crates.io | lambda-rs |
lib.rs | lambda-rs |
version | 2023.1.30 |
source | src |
created_at | 2023-01-28 02:27:31.323318 |
updated_at | 2023-01-31 01:25:20.886053 |
description | A framework for building cross platform graphics & compute applications. |
homepage | |
repository | https://github.com/lambda-sh/lambda |
max_upload_size | |
id | 770080 |
size | 248,408 |
The lambda-rs crate provides a safe, cross-platform API for building applications on the Lambda platform.
cargo add lambda-rs
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);
}