We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
aosc
1 parent c08390a commit 04f048dCopy full SHA for 04f048d
src/config.rs
@@ -5,8 +5,12 @@ use anyhow::Result;
5
use serde::{Deserialize, Serialize};
6
use tracing::warn;
7
8
+#[cfg(feature = "aosc")]
9
const DEFAULT_CONFIG: &str = include_str!("../data/config/oma.toml");
10
11
+#[cfg(not(feature = "aosc"))]
12
+const DEFAULT_CONFIG: &str = include_str!("../data/config/oma-debian.toml");
13
+
14
#[derive(Debug, Deserialize, Serialize)]
15
pub struct Config {
16
pub general: Option<GeneralConfig>,
@@ -63,7 +67,11 @@ impl GeneralConfig {
63
67
}
64
68
65
69
pub fn default_search_engine() -> String {
66
- String::from("indicium")
70
+ if cfg!(feature = "aosc") {
71
+ String::from("indicium")
72
+ } else {
73
+ String::from("strsim")
74
+ }
75
76
77
0 commit comments