Using tonic for clients still pulls in extra dependencies
- 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
Assessment
This issue has not been assessed yet.