-
Notifications
You must be signed in to change notification settings - Fork 1
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
Upgrade to ndc-spec v0.1.1. #1
Conversation
This includes: - type representations in the models - upgrading the OpenTelemetry SDK - adding a feature switch to support `rustls` instead of `native-tls` - a lot of enhancements to ndc-test
@@ -228,8 +228,11 @@ where | |||
<Setup::Connector as Connector>::Configuration: Clone, | |||
<Setup::Connector as Connector>::State: Clone, | |||
{ | |||
init_tracing(&serve_command.service_name, &serve_command.otlp_endpoint) | |||
.expect("Unable to initialize tracing"); | |||
init_tracing( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the rationale for prefering to .as_deref()
over &
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It transforms Option<String>
to Option<&str>
.
ndc-client = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.1" } | ||
ndc-test = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.1", optional = true } | ||
|
||
async-trait = "0.1.79" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do these version upgrades come about? Is it just cargo update
or somesuch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cargo upgrade
. I was upgrading opentelemetry
and friends to match ndc-client and figured I might as well do the rest (except for upgrades to the HTTP stack, which are incompatible).
I thought `cargo upgrade` would do this but apparently I needed a `cargo update`.
See hasura/ndc-sdk-rs#1 for details. I discovered we can specify workspace dependencies, which means the versions only need to go in one place. I am experimenting with this Cargo feature in this changeset. If we like it, we may want to use it for all dependencies.
### What This includes: - type representations in the models - upgrading the OpenTelemetry SDK - adding a feature switch to support `rustls` instead of `native-tls` - a lot of enhancements to ndc-test ndc-sdk was upgraded in hasura/ndc-sdk-rs#1. We do not actually specify type representations in this changeset. We will add these in a follow-up change. ### How I discovered we can specify workspace dependencies, which means the versions only need to go in one place. I am experimenting with this Cargo feature in this changeset. If we like it, we may want to use it for all dependencies.
This includes:
rustls
instead ofnative-tls