Closed alelopezperez closed 1 hour ago
I suspect the issue is here to due to your projects rspc
and PCR's rspc
version not matching as Rust types across crate versions are treated as being discrete.
You could try:
rspc = "0.2.0"
rspc-axum = { git = "https://github.com/oscartbeaumont/rspc", tag = "v0.2.0", features = [
"ws",
] }
# I am fairly sure these patches apply to dependencies too (which you want for the `rspc` dependency in PCR)
# Be aware this needs to go in your workspaces `Cargo.toml` if your using a Cargo workspace.
[patch.crates-io]
rspc = { git = "https://github.com/oscartbeaumont/rspc", tag = 'v0.2.0' }
Alternatively you might have to fork PCR and change the rspc import to match your one (or just use the crates.io release of rspc
which should be fine).
Error: the trait
From<QueryError>
is not implemented forrspc::Error
, which is required by `QueryError: Into<>_I see that in prisma-client-rust
error.rs
has the trait for, but when tryint to use it does not workcargo.toml
src/main.rs