generator client {
provider = "cargo +nightly run --bin prisma_cli --"
output = "../../tests/src/prisma.rs"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model test {
id String @id
data Json
}
Causes 9 compile errors, with the only difference being the code line numbers
error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
--> tests/src/prisma.rs:255:61
|
255 | ::prisma_client_rust::PrismaValue::Json(serde_json::to_string(&value).unwrap()),
| ^^^^^^^^^^ use of undeclared crate or module `serde_json`
Schema
Causes 9 compile errors, with the only difference being the code line numbers
dependencies
Checked on:
Possibly fixable by changing code line returned with errors in similar way
Or importing
Possible workaround for now is adding serde_json to dependencies.