mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 08:11:04 +00:00
add mini-dashboard feature
This commit is contained in:
@ -91,6 +91,7 @@ tempdir = "0.3.7"
|
||||
urlencoding = "1.1.1"
|
||||
|
||||
[features]
|
||||
mini-dashboard = ["default"]
|
||||
default = ["sentry"]
|
||||
|
||||
[target.'cfg(target_os = "linux")'.dependencies]
|
||||
|
@ -1,3 +1,5 @@
|
||||
use std::env;
|
||||
|
||||
use vergen::{generate_cargo_keys, ConstantsFlags};
|
||||
|
||||
fn main() {
|
||||
@ -7,4 +9,8 @@ fn main() {
|
||||
|
||||
// Generate the 'cargo:' key output
|
||||
generate_cargo_keys(ConstantsFlags::all()).expect("Unable to generate the cargo keys!");
|
||||
|
||||
if let Ok(_) = env::var("CARGO_FEATURE_MINI_DASHBOARD") {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user