-
Notifications
You must be signed in to change notification settings - Fork 39
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
Trait error using sqlx example #204
Comments
Ah, this works if you install the required feature:
Is it possible to provide an error that points out the problem in this situation? I'm sure I've seen other crates where the compiler suggests adding the feature(s) that contain the code needed to make yours compile. Either way, it would be great if this requirement were mentioned in the README. |
Can you point me to a crate that recommends missing features? Sounds interesting.On Mar 16, 2024, at 09:11, Nick Kocharhook ***@***.***> wrote:
Ah, this works if you install the required feature:
cargo add geozero --features with-postgis-sqlx
Is it possible to provide an error that points out the problem in this situation? I'm sure I've seen other crates where the compiler suggests adding the feature(s) that contain the code needed to make yours compile. Either way, it would be great if this was mentioned in the README.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Here's an example, not sure if it's applicable? The error looks like this:
You can see it for yourself by installing tokio with no features and creating a file with just this code:
|
Oh that's nice. Looking at that example, it's within the context of a procedural macro, so I don't think we can use that technique. I wonder if it's possible outside of that context. |
I upgrade sqlx from |
The specific error is this:
I think the cause is by this breaking change |
That's because you upgraded to 0.8.0. It's a non-compatible version. |
Thanks i made a new issue about this #223 |
Since #223 was merged and works (only waiting for a new release) Patch for others looking at this issue [patch.crates-io]
# needs release after 0.13
# https://github.com/georust/geozero/tags
geozero = { git = "https://github.com/georust/geozero.git", rev = "f8ab4363b0660cd84a58212039651fd68c3a8567" } |
I'm using the SQLX geo-types example, and it's failing. Has the required code changed?
The text was updated successfully, but these errors were encountered: