grpc / grpc/grpc-rust

Using tonic for clients still pulls in extra dependencies

Open
#1,014 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
12.5k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
24

Description

From my comment in https://github.com/hyperium/tonic/issues/959#issuecomment-1108264503:

> I finally tried using #960 and I don't think it's an adequate fix. First of all, the `tls` feature still pulls in `transport`, so by default if you pull in `tls` or one of the features that depend on it, you'll still get the server-side dependencies. That part can actually be worked around by depending on the other required features directly, but then I noticed that the entire `tonic::transport` module is unavailable if the `transport` feature is disabled, so I don't have access to things like `Error`, `Channel` or `Endpoint` from that module.
>
> Should I submit a PR replacing the use of `transport` internally with `channel` for client-side or both-side items?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.