
Rust-powered code generation for Dart and Flutter. Data classes, Serde, validation, HTTP clients, routing, state, i18n, and database codegen.
Singapore
Joined August 2026
- Tweets26
- Following38
- Followers0
- Likes1
⏱️ 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
✅ Validate() applies declared field rules to request models before the handler runs.
💻 GitHub: github.com/dustcodegen/dust/…
#dust #Dart #BackendDevelopment
2
🦀 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









