grpc 0.6.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 94

The Dart implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.

Build Status pub package

Usage

See the Dart gRPC Quickstart.

Status

This package is currently in beta: It is available for general usage, and is considered feature complete.

If you experience issues, or if you have feature requests, please open an issue.

Notes

This library requires Dart SDK version 2.0 or later.

It currently supports the the Flutter and VM/Server platforms. The potential addition of gRPC-Web is tracked in issue 43.

0.6.1 - 2018-07-13

  • More fixes to update to Dart 2 core library APIs.

0.6.0+1 - 2018-07-13

  • Updated implementation to use new Dart 2 APIs using dart2_fix.

0.6.0 - 2018-07-12

  • Dart SDK upper constraint raised to declare compatability with Dart 2.0 stable.

0.5.0 - 2018-07-10

  • Breaking change: The package now exclusively supports Dart 2.
  • Fixed tests to pass in Dart 2.
  • Added support for Interceptors (issue #79); thanks to @mogol for contributing!

0.4.1 - 2018-04-04

  • Fixes for supporting Dart 2.

0.4.0 - 2018-03-16

  • Moved TLS credentials for server into a separate class.
  • Added support for specifying the address for the server, and support for serving on an ephemeral port.

0.3.1 - 2018-02-27

  • Split out TLS credentials to a separate class.

0.3.0 - 2018-02-05

  • Added authentication metadata providers, optimized for use with Google Cloud.
  • Added service URI to metadata provider API, needed for Json Web Token generation.
  • Added authenticated cloud-to-prod interoperability tests.
  • Refactored connection logic to throw initial connection errors early.

0.2.1 - 2018-01-18

  • Updated generated code in examples using latest protoc compiler plugin.
  • Dart 2.0 fixes.
  • Changed license to Apache 2.0.

0.2.0 - 2017-12-15

  • Implemented support for per-RPC metadata providers. This can be used for authentication providers which may need to obtain or refresh a token before the RPC is sent.

0.1.0 - 2017-10-12

The API is shaping up, but may still change as more advanced features are implemented.

0.0.1 - 2017-07-05

  • Initial version.

This package is in a very early and experimental state. We do not recommend using it for anything but experiments.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  grpc: ^0.6.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:grpc/grpc.dart';
  
Version Uploaded Documentation Archive
0.6.1 Jul 19, 2018 Go to the documentation of grpc 0.6.1 Download grpc 0.6.1 archive
0.6.0+1 Jul 13, 2018 Go to the documentation of grpc 0.6.0+1 Download grpc 0.6.0+1 archive
0.6.0 Jul 12, 2018 Go to the documentation of grpc 0.6.0 Download grpc 0.6.0 archive
0.5.0 Jul 10, 2018 Go to the documentation of grpc 0.5.0 Download grpc 0.5.0 archive
0.4.1 Apr 5, 2018 Go to the documentation of grpc 0.4.1 Download grpc 0.4.1 archive
0.4.0 Mar 19, 2018 Go to the documentation of grpc 0.4.0 Download grpc 0.4.0 archive
0.3.1 Feb 27, 2018 Go to the documentation of grpc 0.3.1 Download grpc 0.3.1 archive
0.3.0 Feb 5, 2018 Go to the documentation of grpc 0.3.0 Download grpc 0.3.0 archive
0.2.1 Jan 18, 2018 Go to the documentation of grpc 0.2.1 Download grpc 0.2.1 archive
0.2.0 Dec 15, 2017 Go to the documentation of grpc 0.2.0 Download grpc 0.2.0 archive

All 12 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
88
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
94
Learn more about scoring.

We analyzed this package on Aug 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.11.8

Platforms

Detected platforms: Flutter, other

Primary library: package:grpc/grpc.dart with components: io.

Suggestions

The description is too short.

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.

Fix lib/src/client/options.dart.

Analysis of lib/src/client/options.dart reported 2 hints:

line 28 col 7: The top level variable '_minConnectTimeout' isn't used.

line 85 col 25: 'alpnSupported' is deprecated and shouldn't be used.

Fix lib/src/shared/security.dart.

Analysis of lib/src/shared/security.dart reported 1 hint:

line 23 col 21: 'alpnSupported' is deprecated and shouldn't be used.

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use grpc.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.58.0 <3.0.0
async >=1.13.3 <3.0.0 2.0.8
googleapis_auth ^0.2.3+6 0.2.5+2
http ^0.11.3+16 0.11.3+17
http2 ^0.1.7 0.1.8+2
meta ^1.0.5 1.1.6
Transitive dependencies
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
http_parser 3.1.3
path 1.6.2
source_span 1.4.1
string_scanner 1.0.3
typed_data 1.1.6
Dev dependencies
mockito ^3.0.0-beta+1
test ^1.2.0