GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sauravzg/tonic: A native gRPC client & server implementation with async/await support.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,371 Commits
1,371 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
codegen
codegen
 
 
examples
examples
 
 
grpc
grpc
 
 
interop
interop
 
 
protoc-gen-rust-grpc
protoc-gen-rust-grpc
 
 
tests
tests
 
 
tonic-build
tonic-build
 
 
tonic-health
tonic-health
 
 
tonic-prost-build
tonic-prost-build
 
 
tonic-prost
tonic-prost
 
 
tonic-protobuf-build
tonic-protobuf-build
 
 
tonic-protobuf
tonic-protobuf
 
 
tonic-reflection
tonic-reflection
 
 
tonic-types
tonic-types
 
 
tonic-web
tonic-web
 
 
tonic-xds
tonic-xds
 
 
tonic
tonic
 
 
xds-client
xds-client
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
flake.lock
flake.lock
 
 
flake.nix
flake.nix
 
 
prepare-release.sh
prepare-release.sh
 
 
publish-release.sh
publish-release.sh
 
 

Repository files navigation

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

Note: tonic's master branch is currently preparing breaking changes. For the most recently released code, look to the 0.14.x branch.

tonic is a gRPC over HTTP/2 implementation focused on high performance, interoperability, and flexibility. This library was created to have first class support of async/await and to act as a core building block for production systems written in Rust.

Crates.io Documentation Crates.io

Examples | Website | Docs | Chat

Overview

tonic is composed of three main components: the generic gRPC implementation, the high performance HTTP/2 implementation and the codegen powered by prost. The generic implementation can support any HTTP/2 implementation and any encoding via a set of generic traits. The HTTP/2 implementation is based on hyper, a fast HTTP/1.1 and HTTP/2 client and server built on top of the robust tokio stack. The codegen contains the tools to build clients and servers from protobuf definitions.

Features

  • Bi-directional streaming
  • High performance async io
  • Interoperability
  • TLS backed by rustls
  • Load balancing
  • Custom metadata
  • Authentication
  • Health Checking

Getting Started

  • The helloworld tutorial provides a basic example of using tonic, perfect for first time users!
  • The routeguide tutorial provides a complete example of using tonic and all its features.

Examples can be found in examples and for more complex scenarios interop may be a good resource as it shows examples of many of the gRPC features.

Rust Version

tonic's MSRV is 1.88.

Dependencies

tonic-build uses protoc Protocol Buffers compiler in some APIs which compile Protocol Buffers resource files such as tonic_build::compile_protos().

Getting Help

First, see if the answer to your question can be found in the API documentation. If the answer is not there, there is an active community in the Tonic Discord channel. We would be happy to try to answer your question. If that doesn't work, try opening an issue with the question.

Project Layout

  • tonic: Generic gRPC and HTTP/2 client/server implementation.
  • tonic-build: prost based service codegen.
  • tonic-types: prost based grpc utility types including support for gRPC Well Known Types.
  • tonic-health: Implementation of the standard gRPC health checking service. Also serves as an example of both unary and response streaming.
  • tonic-reflection: A tonic based gRPC reflection implementation.
  • examples: Example gRPC implementations showing off tls, load balancing and bi-directional streaming.
  • interop: Interop tests implementation.

Contributing

🎈 Thanks for your help improving the project! We are so happy to have you! We have a contributing guide to help you get involved in the Tonic project.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tonic by you, shall be licensed as MIT, without any additional terms or conditions.

About

A native gRPC client & server implementation with async/await support.

docs.rs/tonic

Resources

Readme
License

Contributing

Contributing

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.