rift_generator 1.0.1 copy "rift_generator: ^1.0.1" to clipboard
rift_generator: ^1.0.1 copied to clipboard

Code generator for Rift — automatically generates TypeAdapters to store any Dart class. Supports Dart 3 Records, sealed classes, and extension types.

1.0.0 May 30, 2026 #

Initial release of rift_generator — code generation for the Rift database.

Features #

  • Auto-generated TypeAdapters from @RiftType() and @RiftField() annotations
  • GenerateAdapters annotation for bulk adapter generation
  • RiftRegistrar extension for one-call adapter registration
  • Support for Dart 3 Records, sealed classes, and extension types
  • Schema migration generation for evolving data models
  • Freezed @Default annotation support
  • Support for reservedTypeIds in GenerateAdapters
  • Support for ignoredFields in adapter specs
  • Sets and Iterable field support
  • Named imports support
  • Validation Annotations for code generation (@RiftValidation, @RiftValidationSchema, @RiftCrossField, RiftValidationRule)
  • Support for Dart SDK ^3.4.0

Migration from hive_ce_generator #

  • @HiveType()@RiftType()
  • @HiveField()@RiftField()
  • HiveRegistrarRiftRegistrar
  • All other APIs remain compatible

Documentation #

  • Comprehensive README with code generation examples
  • Migration guide from hive_ce_generator
  • Schema migration examples

Credits #

0
likes
135
points
65
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Code generator for Rift — automatically generates TypeAdapters to store any Dart class. Supports Dart 3 Records, sealed classes, and extension types.

Repository (GitHub)
View/report issues

Topics

#database #nosql #storage #code-generation #build-runner

License

Apache-2.0, BSD-3-Clause (license)

Dependencies

analyzer, build, collection, glob, json_annotation, meta, path, rift, source_gen, source_helper, yaml, yaml_writer

More

Packages that depend on rift_generator