diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-05-15 12:45:24 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-05-15 12:45:24 +0200 |
| commit | ba206b1f29065d2cdd304809ab37db2963d6ec7d (patch) | |
| tree | face0354db3c71198221206b6b39aef9109a09b9 /src | |
| parent | feat(build): incorporate git committing and tagging into the publish process (diff) | |
| download | sl0ppij-ba206b1f29065d2cdd304809ab37db2963d6ec7d.tar.gz sl0ppij-ba206b1f29065d2cdd304809ab37db2963d6ec7d.tar.xz sl0ppij-ba206b1f29065d2cdd304809ab37db2963d6ec7d.zip | |
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.rs | 4 | ||||
| -rw-r--r-- | src/server/mod.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/utils/consts.rs b/src/common/utils/consts.rs index 479405c3..42843eb8 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 a4a79ca0..3bd38999 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 |
