Skip to content
Rust Search
← RustLab 2024

Design and Implementation of the `#[diagnostic]` attribute namespace

RustLab Conference
RustLab 22:20 196 views

The talk aims to introduce the `#[diagnostic]` attribute namespace. This new tool namespace allows to hint the Rust compiler to emit a specific error message text in certain situations. It's meant to help crate authors to take control over error messages emitted by the compiler that occur while upholding certain domain specific compile time constraints. The feature was stablized with Rust 1.78. LEVEL: Advanced

Player unavailable or embedding blocked? Use the YouTube link above.

Other talks by Georg Semmler

Unlocking the Potential of Reusable Code with WebAssembly - A Case Study on Geological Subsurface Models

Oxidize Conference
Oxidize 30:45 266 views

This talk demonstrates how to reuse existing Rust backend functionality in a web application by using @webassembly1232. Georg Semmler and Jonas Klein of @gigainfosystems showcase a real-world project involving geological subsurface models, where computationally expensive calculations were successfully implemented in both the backend and 3D web viewer using Rust. This talk showcases the required procedure based on a real world project. As part of a #database and #visualization system for #geological subsurface models, Semmler and Klein had pre-existing functionality to generate a virtual borehole through potentially large models. This functionality is implemented in Rust and was previously used in backend code. As part of another project, the team sought to reuse these computationally expensive calculations in their 3D web viewer for calculating information based on the current content displayed. Oxidize Conference is the applied Rust conference in Berlin, Germany. Oxidize Conference 2025 will be held from September 16 through September 18 at Tagungswerk in Berlin. More details can be found on our website: https://oxidizeconf.com/ #appliedrust #geologicalmodels #rustlang #learnrust