verdant 0.5.0

A windowing and rendering library, inspired by Processing. Clean API, SDF-based rendering, multi-window support, built on wgpu and winit.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use cfg_aliases::cfg_aliases;

// generate config aliases, similar to the ones winit has to avoid long-winded cfg directives
fn main() {
    println!("cargo:rerun-if-changed=build.rs");

    cfg_aliases! {
        android_platform: { target_os = "android" },
        macos_platform: { target_os = "macos" },
        ios_platform: { all(target_vendor = "apple", not(target_os = "macos")) },
        windows_platform: { target_os = "windows" },
        linux_platform: { target_os = "linux" },
    }
}