btrpc client for Dart.
see example/demo_service.dart
先生成json序列化代码,使用了json_serializable
https://pub.dev/packages/json_serializable
$ dart run build_runner build
Resolving dependencies in /rpc-dart-client... (3.1s)
Got dependencies in /rpc-dart-client.
Building package executable... (2.8s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 130ms
[INFO] Precompiling build script... completed, took 3.0s
[INFO] Building new asset graph completed, took 346ms
[INFO] Checking for unexpected pre-existing outputs. completed, took 0ms
[INFO] Generating SDK summary completed, took 1.8s
[INFO] Running build completed, took 3.7s
[INFO] Caching finalized dependency graph completed, took 11ms
[INFO] Succeeded after 3.7s with 2 outputs (17 actions)
# 运行测试程序
$ dart test/test_service.dart
$ git tag 1.0.0
$ git push origin --tags
pubspec.yaml:
dependencies:
btrpc:
git:
url: https://gitlab.zhulinkeji.com/middleware/rpc-dart-client.git
ref: 1.0.0