Skip to content

martin1847/rpc-dart-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

btrpc client for Dart.

Usage

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages