diff options
author | har7an <99636919+har7an@users.noreply.github.com> | 2022-12-09 10:49:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 10:49:32 +0000 |
commit | 1e141aa7fe4a49a8df8b0c268952d01268776199 (patch) | |
tree | 56e7db7f6713f78eec7a7f3b2afea06f585bea66 /zellij-utils/src/consts.rs | |
parent | 36233439f930f0c50bed574e95ff4cd887893120 (diff) |
HOTFIX: utils: Move plugins into new assets folder (#2003)
that is included in the utils to make builds pass.
Diffstat (limited to 'zellij-utils/src/consts.rs')
-rw-r--r-- | zellij-utils/src/consts.rs | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/zellij-utils/src/consts.rs b/zellij-utils/src/consts.rs index 328be223b..0e8a6acc1 100644 --- a/zellij-utils/src/consts.rs +++ b/zellij-utils/src/consts.rs @@ -35,10 +35,10 @@ pub const FEATURES: &[&str] = &[ "disable_automatic_asset_installation", ]; -#[cfg(all(not(target_family = "wasm"), feature = "asset_map"))] +#[cfg(not(target_family = "wasm"))] pub use not_wasm::*; -#[cfg(all(not(target_family = "wasm"), feature = "asset_map"))] +#[cfg(not(target_family = "wasm"))] mod not_wasm { use lazy_static::lazy_static; use std::collections::HashMap; @@ -49,17 +49,9 @@ mod not_wasm { ($assets:expr, $plugin:literal) => { $assets.insert( PathBuf::from("plugins").join($plugin), - #[cfg(debug_assertions)] include_bytes!(concat!( env!("CARGO_MANIFEST_DIR"), - "/../target/wasm32-wasi/debug/", - $plugin - )) - .to_vec(), - #[cfg(not(debug_assertions))] - include_bytes!(concat!( - env!("CARGO_MANIFEST_DIR"), - "/../assets/plugins/", + "/assets/plugins/", $plugin )) .to_vec(), |