Comments (2)
Agree, I got the following error when trying to upgrade sqlx version to 0.7:
error[E0308]: mismatched types
--> src/main.rs:17:36
|
16 | async fn actix_web(
| --------- arguments to this function are incorrect
17 | #[shuttle_shared_db::Postgres] pool: sqlx::PgPool,
| ^^^^ expected `Pool<sqlx::Postgres>`, found `Pool<Postgres>`
|
= note: `Pool<Postgres>` and `Pool<sqlx::Postgres>` have similar names, but are actually distinct types
note: `Pool<Postgres>` is defined in crate `sqlx_core`
--> /home/ubuntu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.6.3/src/pool/mod.rs:244:1
|
244 | pub struct Pool<DB: Database>(pub(crate) Arc<PoolInner<DB>>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `Pool<sqlx::Postgres>` is defined in crate `sqlx_core`
--> /home/ubuntu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.7.1/src/pool/mod.rs:267:1
|
267 | pub struct Pool<DB: Database>(pub(crate) Arc<PoolInner<DB>>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `sqlx_core` are being used?
note: function defined here
--> src/main.rs:16:10
|
16 | async fn actix_web(
| ^^^^^^^^^
17 | #[shuttle_shared_db::Postgres] pool: sqlx::PgPool,
| ------------------
from shuttle.
Thanks for opening this, we'll get on it this week!
from shuttle.
Related Issues (20)
- [Bug]: panic `cargo shuttle deploy` HOT 1
- [Bug]: thread 'main' panicked at 'shuttle-runtime version should be in the `name version` format' HOT 3
- [Improvement]: Consider if migrating to `tower-sessions` is appropriate HOT 2
- [Improvement]: Container databases for local runs of projects with db resources receive a random host port
- [Bug]: cargo-shuttle login panics HOT 5
- [Improvement]: Improve auth integration tests for pro users
- [Feature]: Add a shuttle-admin command to invalidate gateway auth cache
- [Feature]: auto reload HOT 2
- [Improvement]: `--raw` parameter for commands that print tables HOT 3
- [Improvement]: Remove redundant hint based on row count HOT 3
- [Improvement]: Integrate with OpenDAL for more storage services support for Shuttle Persist HOT 1
- [Bug]: Deployment logs at the start of deployment are delayed
- [Improvement]: Remove pin to version 0.30.1 of libsql-client in Shuttle Turso HOT 1
- [Bug]: Can't update git-versioning based crates on shuttle
- [Improvement]: Allow other async runtimes than tokio, such as async-std HOT 1
- [Feature]: Expose connection string from shared db HOT 1
- [Improvement]: rocket v0.5.0-rc.4 HOT 2
- [Bug]: show-secrets replaces shared DB URL HOT 1
- [Improvement]: Generate manpage with `clap-mangen` for `cargo-shuttle` HOT 6
- [Improvement]: Support a short argument for `--working-directory` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shuttle.