This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Rust · Archive · Week 1 · Dec 29, 2025 – Jan 4, 2026

wgsl‑bindgen crate of the week

Nice to knowecosystem

What changed
The crate wgsl-bindgen was highlighted as the crate of the week, providing a binding generator for the WGSL shading language to be used with wgpu.
Production impact
The source does not say.
Try it
Add wgsl-bindgen = "0.1" to a Cargo project and generate WGSL bindings.
Source
this-week-in-rust.org/blog/2025/12/31/this-week-in-rust-632/

Understand it, then run it

The crate wgsl-bindgen is highlighted as the crate of the week. It is a tool that turns WGSL shader code into Rust bindings that can be used with the wgpu graphics library. WGSL is the shading language used by WebGPU, and wgpu is a Rust implementation of that API. The crate makes it easier to write shaders in WGSL and then call them from Rust without writing the boilerplate binding code yourself.

Run it now

Todayrust
// This program demonstrates the idea behind wgsl-bindgen.
// It does not compile because wgsl-bindgen is not part of the standard library
// and is not available in this sandbox. In a real project you would add
// wgsl-bindgen as a build dependency, run it on your WGSL files, and
// import the generated Rust code to interact with wgpu.

fn main() {
    // Placeholder: in practice you would use the generated bindings here.
    println!("wgsl-bindgen generates Rust bindings for WGSL shaders used with wgpu.");
}

What it printed when we ran it on Rust 1.98.1 (edition 2024)

wgsl-bindgen generates Rust bindings for WGSL shaders used with wgpu.

Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed