Brendonovich / prisma-client-rust

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

Feature: Allow skipping downloads of engines by setting env vars #405

Closed Ziothh closed 8 months ago

Ziothh commented 8 months ago

Closes #395

It adds support for operating systems that Prisma does not compile binaries for like NixOS by setting the needed env variables for the engines.

It should still support the previous way of working but it's worth noting that I haven't tested that yet. I currently only have a NixOS machine so I haven't been able to test it on something like Darwin.

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
prisma-client-rust ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2023 5:43am
donovanglover commented 8 months ago

Works for me on NixOS. Looking forward to the merge :+1:

Brendonovich commented 8 months ago

Idk why I called fetch_native before doing the env checks but thanks for fixing it 😂