rpc_dart_generator 0.1.3 copy "rpc_dart_generator: ^0.1.3" to clipboard
rpc_dart_generator: ^0.1.3 copied to clipboard

Code generator for rpc_dart callers and responders.

0.1.3 #

  • Switch to SharedPartBuilder + combining_builder to avoid .g.dart output collisions with other source_gen builders.
  • Intermediate output renamed to .rpc_dart.g.part and written to cache; final .g.dart remains produced by the combiner.
  • Example updated to run alongside json_serializable in the same .g.dart.

0.1.2 #

  • Dependency resolution: allow analyzer ^8.1.1 (drop source_gen_test which required analyzer 9).

0.1.1 #

  • Move annotations to core library

0.1.0 #

  • Added @RpcService/@RpcMethod generator with Names class (service/method constants, Names.instance for multiple instances).
  • Generated final caller, abstract responder; responder registers methods in setup, you implement handlers.
  • serviceNameOverride for caller/responder to run multiple instances of the same service.
  • transferMode on service/method: zeroCopy skips codec generation and serializable checks; auto/codec insert RpcCodec<T>.withDecoder(T.fromJson) unless explicit codecs provided.
  • Caller/responder both honor method-level codecs/modes; custom RPC names supported via Names constants.
  • Examples: zero-copy, multiple instances, auto-codec.
0
likes
130
points
309
downloads

Publisher

verified publisherdart.nogipx.dev

Weekly Downloads

Code generator for rpc_dart callers and responders.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, dart_style, pub_semver, rpc_dart, source_gen

More

Packages that depend on rpc_dart_generator