diff options
| author | har7an <99636919+har7an@users.noreply.github.com> | 2022-12-09 09:17:28 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-09 10:17:28 +0100 |
| commit | 36233439f930f0c50bed574e95ff4cd887893120 (patch) | |
| tree | 6af721edcc5ae920c22f102c22cde4b9adbfdf19 /zellij-utils/src/input/plugins.rs | |
| parent | chore(release): v0.34.0 (diff) | |
| download | sl0ppij-36233439f930f0c50bed574e95ff4cd887893120.tar.gz sl0ppij-36233439f930f0c50bed574e95ff4cd887893120.tar.xz sl0ppij-36233439f930f0c50bed574e95ff4cd887893120.zip | |
HOTFIX: Feature/ignore asset map (#2002)
* utils: feature-gate asset map
to make publishing on crates.io possible without compile errors.
* setup: Fix asset_map feature
Diffstat (limited to 'zellij-utils/src/input/plugins.rs')
| -rw-r--r-- | zellij-utils/src/input/plugins.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zellij-utils/src/input/plugins.rs b/zellij-utils/src/input/plugins.rs index 1ab3e831..7503f43b 100644 --- a/zellij-utils/src/input/plugins.rs +++ b/zellij-utils/src/input/plugins.rs @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize}; use url::Url; use super::layout::{RunPlugin, RunPluginLocation}; -#[cfg(not(target_family = "wasm"))] +#[cfg(all(not(target_family = "wasm"), feature = "asset_map"))] use crate::consts::ASSET_MAP; pub use crate::data::PluginTag; use crate::errors::prelude::*; @@ -129,7 +129,7 @@ impl PluginConfig { for path in paths { // Check if the plugin path matches an entry in the asset map. If so, load it directly // from memory, don't bother with the disk. - #[cfg(not(target_family = "wasm"))] + #[cfg(all(not(target_family = "wasm"), feature = "asset_map"))] if !cfg!(feature = "disable_automatic_asset_installation") && self.is_builtin() { let asset_path = PathBuf::from("plugins").join(path); if let Some(bytes) = ASSET_MAP.get(&asset_path) { @@ -160,7 +160,7 @@ impl PluginConfig { } // Not reached if a plugin is found! - #[cfg(not(target_family = "wasm"))] + #[cfg(all(not(target_family = "wasm"), feature = "asset_map"))] if self.is_builtin() { // Layout requested a builtin plugin that wasn't found let plugin_path = self.path.with_extension("wasm"); |
