rpc_dart_generator 0.1.3
rpc_dart_generator: ^0.1.3 copied to clipboard
Code generator for rpc_dart callers and responders.
0.1.3 #
- Switch to
SharedPartBuilder+combining_builderto avoid.g.dartoutput collisions with other source_gen builders. - Intermediate output renamed to
.rpc_dart.g.partand written to cache; final.g.dartremains produced by the combiner. - Example updated to run alongside
json_serializablein the same.g.dart.
0.1.2 #
- Dependency resolution: allow
analyzer ^8.1.1(dropsource_gen_testwhich required analyzer 9).
0.1.1 #
- Move annotations to core library
0.1.0 #
- Added
@RpcService/@RpcMethodgenerator withNamesclass (service/method constants,Names.instancefor multiple instances). - Generated
finalcaller,abstractresponder; responder registers methods insetup, you implement handlers. serviceNameOverridefor caller/responder to run multiple instances of the same service.transferModeon service/method:zeroCopyskips codec generation and serializable checks;auto/codecinsertRpcCodec<T>.withDecoder(T.fromJson)unless explicit codecs provided.- Caller/responder both honor method-level codecs/modes; custom RPC names supported via
Namesconstants. - Examples: zero-copy, multiple instances, auto-codec.