summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-05-15 12:45:24 +0200
committera-kenji <aks.kenji@protonmail.com>2021-05-15 12:45:24 +0200
commitba206b1f29065d2cdd304809ab37db2963d6ec7d (patch)
treeface0354db3c71198221206b6b39aef9109a09b9 /src
parentf1bff237a4f539d8197cc7f6e4cb72410779417a (diff)
Invert Assets Installation Feature
* changed `enable_automatic_asset_installation` to `disable_automatic_asset_installation` This ensures that people by default get the asset installation and need to opt out at compile time, rather than opt in. * removed default features Not needed anymore.
Diffstat (limited to 'src')
-rw-r--r--src/common/utils/consts.rs4
-rw-r--r--src/server/mod.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/utils/consts.rs b/src/common/utils/consts.rs
index 479405c3b..42843eb89 100644
--- a/src/common/utils/consts.rs
+++ b/src/common/utils/consts.rs
@@ -49,6 +49,6 @@ lazy_static! {
}
pub const FEATURES: &[&str] = &[
- #[cfg(feature = "enable_automatic_asset_installation")]
- "enable_automatic_asset_installation",
+ #[cfg(feature = "disable_automatic_asset_installation")]
+ "disable_automatic_asset_installation",
];
diff --git a/src/server/mod.rs b/src/server/mod.rs
index a4a79ca0f..3bd38999a 100644
--- a/src/server/mod.rs
+++ b/src/server/mod.rs
@@ -187,7 +187,7 @@ fn init_session(
// Determine and initialize the data directory
let data_dir = opts.data_dir.unwrap_or_else(get_default_data_dir);
- #[cfg(enable_automatic_assets_installation)]
+ #[cfg(not(disable_automatic_assets_installation))]
populate_data_dir(&data_dir);
// Don't use default layouts in tests, but do everywhere else