dust (@dust_codegen) header
dust (@dust_codegen) profile picture

Rust-powered code generation for Dart and Flutter. Data classes, Serde, validation, HTTP clients, routing, state, i18n, and database codegen.

Singapore
Joined August 2026
⏱️ With dust_server’s RequestTimeout, a client can get a 503 while the handler is still running. If the handler writes data, make the operation safe to retry so a late write and a retry don’t both take effect. github.com/dustcodegen/dust/… #dust #Dart
6
🧩 If a query has two invalid fields, the client can surface both after one request. The dust_server /report example uses fallible extraction to collect errors for from and to in a single 422 response. github.com/dustcodegen/dust/… #dust #Dart
7
🧪 Test route behavior in process with dust_server’s router.handler and a fresh NoteStore. For gzip, run the same app on loopback port 0 and disable the HTTP client’s auto-decompression so you can assert Content-Encoding. github.com/dustcodegen/dust/… #dust #Dart
9
🦀 dust_server is a Dart HTTP server framework inspired by Rust's axum. 🔗 dust generates Dart HTTP clients from annotated server routes. 📦 Serialize() and Deserialize() derives let the server and client share typed request and response models.
1
7
Auth routing gets messy when every page handles access by itself. Dust Routing Guards: router-level redirect for global decisions, guards for route-specific checks. Docs: github.com/y3l1n4ung/dust/bl… #Dust #Routing #Flutter #Dart
8
Reject JSON keys you did not ask for Extra JSON keys can hide a server and client mismatch. disallowUnrecognizedKeys makes decoding reject keys that are not fields or aliases. dust-codegen.pages.dev/blog/… #dust #Dart #JSON
8
Switch API environments without a second client dust HTTP clients can keep one default API URL and accept a factory override for staging, tests, or local development. dust-codegen.pages.dev/blog/… #dust #Dart #Flutter
8
Keep nested validation on the full path dust can validate one model inside another. Add @Validate(nested: true) to the parent field and keep the error path precise. dust-codegen.pages.dev/blog/… #dust #Dart
7
Keep Unix timestamps at the API boundary When an API sends integer milliseconds, one SerDeCodec<DateTime, int> keeps the JSON unchanged while the model works with DateTime. dust-codegen.pages.dev/blog/… #dust #Dart #JSON
8
Keep code generation running while you work Use dust watch mode while editing models and APIs. It runs generation after source changes, so generated files stay current. dust-codegen.pages.dev/blog/… #dust #Dart
8
Move one data model to dust Move one plain data model to dust and generate only what it needs, such as equality, copyWith, or toString. dust-codegen.pages.dev/blog/… #dust #Dart #Flutter
8
JSON field aliases dust can read an old JSON field name while writing the new one. Add an alias for the old key and keep one canonical key for new payloads. dust-codegen.pages.dev/blog/… #dust #Dart #JSON
8
Cross-field model validation dust can keep cross-field rules beside the model. A password confirmation field can point to the password field, so the relationship stays clear. dust-codegen.pages.dev/blog/… #dust #Dart
9
Generate HTTP request tests dust can generate request tests with an HTTP client. The tests check the method, path, headers, query values, and request body without calling a live server. dust-codegen.pages.dev/blog/… #dust #Dart #Flutter
7