d_rocket_builder 1.0.0 copy "d_rocket_builder: ^1.0.0" to clipboard
d_rocket_builder: ^1.0.0 copied to clipboard

`build_runner` codegen for the `d_rocket` framework: generates `@Serializable`, `@RestClient`, `@Table` handlers and the central `initializeD()` registry.

Changelog #

All notable changes to d_rocket_builder are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.0 — 2026-06-14 #

First stable release. d_rocket_builder is the build_runner codegen companion to d_rocket 1.0.x.

It ships seven builders, wired in by adding d_rocket_builder as a dev_dependency and including a build.yaml (the d_rocket docs have the canonical template):

Builder Output suffix Purpose
d_rocket_builder:record .g.dart @Table / extends Record classes → field accessor registry
d_rocket_builder:serializer .d_rocket_serializer.g.dart @Serializable classes → fromJson / toJson
d_rocket_builder:rest_client .d_rocket_rest_client.g.dart @RestClient classes → typed get / post / put / delete
d_rocket_builder:rocket_table .d_rocket_orm.g.dart @Table classes → CRUD scaffold + change tracking
d_rocket_builder:record_registry d_rocket_registry.g.dart central initializeD() that registers all of the above
d_rocket_builder:realtime .d_rocket_realtime.g.dart @WebSocketRoute / @SseRoute classes → connection scaffolds
d_rocket_builder:custom_lint n/a two custom_lint rules: d_rocket_closure (LINQ naming) and d_rocket_n_plus_one (eager-load detection)

Compatibility #

d_rocket_builder d_rocket
1.0.0 ^1.0.0 (1.0.0, 1.0.1, 1.0.2 — all compatible)

Notes #

  • The codegen output does not need to be re-published when the consumer's app changes — it is regenerated locally with dart run build_runner build --delete-conflicting-outputs.
  • The central d_rocket_registry.g.dart is always emitted at the package root of the consumer's project (one per project, not one per package). Call initializeD() once at application startup.
  • The record_registry builder only scans the consumer's lib/**.dart for extends Record classes. Examples that live under example/ need to be generated in a separate project (see the d_rocket CHANGELOG for the v1.0.1 workflow).
1
likes
0
points
574
downloads

Documentation

Documentation

Publisher

verified publishertorogoz.tech

Weekly Downloads

`build_runner` codegen for the `d_rocket` framework: generates `@Serializable`, `@RestClient`, `@Table` handlers and the central `initializeD()` registry.

Repository (GitHub)
View/report issues

Topics

#codegen #build-runner #d-rocket #source-gen

License

unknown (license)

Dependencies

analyzer, build, custom_lint_builder, d_rocket, glob, meta, path, source_gen

More

Packages that depend on d_rocket_builder