Brendonovich / prisma-client-rust

Type-safe database access for Rust
https://prisma.brendonovich.dev
Apache License 2.0
1.83k stars 108 forks source link

Cargo check causes entire project to rebuild when run but only when Prisma crates are dependencies #442

Open semirix opened 7 months ago

semirix commented 7 months ago

I'm on an M2 Mac Pro and I am having a weird issue. When I add the Prisma crates as dependencies in my project every time I run cargo run it will recompile my entire project from scratch. I've noticed this only when cargo check is used before cargo run. I have it setup so my files get checked after I save them.

I have verified that it is only the Prisma dependencies, all other dependencies in my project are fine. My only guess is that something related to the Prisma crates causes a complete build cache invalidation whenever cargo check is run.

Brendonovich commented 6 months ago

Not sure about this, prisma crates cache on our machines just fine