Skip to content

Disable tonic default features who introduces outdated axum #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

artiga033
Copy link

This is to avoid having to introduce indirect dependency of axum, which is often not the latest if fron tonic->tower->axum.

Say if a downstream project which is a http web server based on axum, but they don't need grpc so as to tonic so they have the latest version of axum(v0.8 as of now). However as qdrant-client depends on tonic thus tower->axum(v0.7), the end project will have two axum dependency.

Anyway I think that we don't need server features as a client after all.

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --all --all-features command?

This is to avoid having to introduce indirect dependency of axum, which is often not the latest if fron tonic->tower->axum
@@ -13,7 +13,7 @@ categories = ["database", "api-bindings"]
keywords = ["qdrant", "vector-search", "search-engine", "client", "grpc"]

[dependencies]
tonic = { version = "0.12.3", features = ["tls", "tls-roots", "gzip"] }
tonic = { version = "0.12.3", default-features = false, features = ["codegen", "prost", "tls", "tls-roots", "gzip"] }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for not enabling channel as well?

https://docs.rs/tonic/latest/tonic/#feature-flags

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, just because it builds and passes all tests. I actually don't know what channel does internally and how it may change user experience or performance. axum is only introduced by router so it's safe to add channel back if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants