mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
add mini-dashboard feature
This commit is contained in:
parent
da08a1f25c
commit
ea5517bc8c
3 changed files with 41 additions and 34 deletions
|
@ -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!()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue