feat: with initial

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-07-01 23:43:39 +02:00
commit 75bf2e0c71
14 changed files with 2135 additions and 0 deletions

9
crates/bearing/build.rs Normal file
View File

@@ -0,0 +1,9 @@
fn main() {
println!("cargo:rustc-env=SQLX_OFFLINE_DIR='./.sqlx'");
// When building in docs.rs, we want to set SQLX_OFFLINE mode to true
if std::env::var_os("DOCS_RS").is_some() {
println!("cargo:rustc-env=SQLX_OFFLINE=true");
} else if std::env::var_os("DOCKER_BUILD").is_some() {
println!("cargo:rustc-env=SQLX_OFFLINE=true");
}
}