1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-11-26 09:28:30 +00:00

Move backend checks to build.rs to fail fast, and updated dependencies

This commit is contained in:
Daniel García 2019-07-09 17:26:34 +02:00
commit 05a1137828
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
9 changed files with 359 additions and 266 deletions

View file

@ -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();
}