mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-25 15:56:49 +02:00
Move backend checks to build.rs to fail fast, and updated dependencies
This commit is contained in:
9 files changed
+359
-266
No files matched your search
@@ -1,6 +1,12 @@
|
||||
use std::process::Command;
|
||||
|
||||
fn main() {
|
||||
#[cfg(all(feature = "sqlite", feature = "mysql"))]
|
||||
compile_error!("Can't enable both backends");
|
||||
|
||||
#[cfg(not(any(feature = "sqlite", feature = "mysql")))]
|
||||
compile_error!("You need to enable one DB backend. To build with previous defaults do: cargo build --features sqlite");
|
||||
|
||||
read_git_info().ok();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user