aboutsummaryrefslogtreecommitdiffstats
path: root/xtask/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2025-10-21 14:36:30 +0200
committerGitHub <noreply@github.com>2025-10-21 14:36:30 +0200
commit889bd06f447f9d50ee46b8efc7d9970d3693cb96 (patch)
tree171fa657faccf4b4ce7124847977626826a2a750 /xtask/src
parentGive plugins the ability to read pane contents (#4465) (diff)
downloadsl0ppij-889bd06f447f9d50ee46b8efc7d9970d3693cb96.tar.gz
sl0ppij-889bd06f447f9d50ee46b8efc7d9970d3693cb96.tar.xz
sl0ppij-889bd06f447f9d50ee46b8efc7d9970d3693cb96.zip
Migrate from wasmtime to wasmi (#4449)
* initial implementation * fix stdio and host folder mounting * some memory usage optimizations * fix plugin tests * remove unused plugin cache * fix docker-compose for e2e tests when running locally * rustfmt * initial pinned executor implementation * EXPERIMENT: add jemalloc * initial dynamic pinned threadpool * cleanups and experiments * keep state on execution threads * reintroduce memory cache * add wasmi engine to executor threads * load plugins for new clients on the relevant executor thread * only show loading indication of loading for more than 0.4 secs * fix anonymous plugin loading without client id * refactor lots of stuff * update snapshots * tests for pinned executor * remove jemalloc * fix stderr from plugins * cleanups * rustfmt * cleanups * fix endless loading for additinal attachments * more cleanups * remove singlepass feature * fix displaying plugin permission message * render optimizations * always render for tests * rustfmt * optimize release build for wasmi * fixes for multiple client plugin loading * fix frame rendering for multiple clients * rustfmt * fix loading background plugins and e2e event ordering change * rustfmt * account for races in the pin_floating_panes e2e test * docs(changelog): add PR
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/flags.rs3
-rw-r--r--xtask/src/pipelines.rs8
2 files changed, 1 insertions, 10 deletions
diff --git a/xtask/src/flags.rs b/xtask/src/flags.rs
index 43342615..080406bb 100644
--- a/xtask/src/flags.rs
+++ b/xtask/src/flags.rs
@@ -77,8 +77,6 @@ xflags::xflags! {
optional --quick-run
/// Take plugins from here, skip building plugins. Passed to zellij verbatim
optional --data-dir path: PathBuf
- /// Enable the singlepass compiler for WASM plugins
- optional --singlepass
/// Disable optimizing dependencies
optional --disable-deps-optimize
/// Compile without web server support
@@ -204,7 +202,6 @@ pub struct Run {
pub quick_run: bool,
pub data_dir: Option<PathBuf>,
- pub singlepass: bool,
pub disable_deps_optimize: bool,
pub no_web: bool,
}
diff --git a/xtask/src/pipelines.rs b/xtask/src/pipelines.rs
index fe49c4ea..16129d43 100644
--- a/xtask/src/pipelines.rs
+++ b/xtask/src/pipelines.rs
@@ -105,7 +105,6 @@ pub fn run(sh: &Shell, mut flags: flags::Run) -> anyhow::Result<()> {
let err_context =
|flags: &flags::Run| format!("failed to run pipeline 'run' with args {:?}", flags);
- let singlepass = flags.singlepass.then_some(["--features", "singlepass"]);
if flags.quick_run {
if flags.data_dir.is_some() {
eprintln!("cannot use '--data-dir' and '--quick-run' at the same time!");
@@ -134,7 +133,6 @@ pub fn run(sh: &Shell, mut flags: flags::Run) -> anyhow::Result<()> {
.args(["--package", "zellij"])
.arg("--no-default-features")
.args(["--features", features])
- .args(singlepass.iter().flatten())
.args(["--profile", profile])
.args(["--", "--data-dir", &format!("{}", data_dir.display())])
.args(&flags.args)
@@ -160,9 +158,7 @@ pub fn run(sh: &Shell, mut flags: flags::Run) -> anyhow::Result<()> {
.context("Failed to check web features for main crate")?
{
Some(features) => {
- let mut cmd = cmd!(sh, "{cargo} run")
- .args(singlepass.iter().flatten())
- .args(["--no-default-features"]);
+ let mut cmd = cmd!(sh, "{cargo} run").args(["--no-default-features"]);
if !features.is_empty() {
cmd = cmd.args(["--features", &features]);
@@ -177,7 +173,6 @@ pub fn run(sh: &Shell, mut flags: flags::Run) -> anyhow::Result<()> {
None => {
// Main crate doesn't have web_server_capability, run normally
cmd!(sh, "{cargo} run")
- .args(singlepass.iter().flatten())
.args(["--profile", profile])
.args(["--"])
.args(&flags.args)
@@ -187,7 +182,6 @@ pub fn run(sh: &Shell, mut flags: flags::Run) -> anyhow::Result<()> {
}
} else {
cmd!(sh, "{cargo} run")
- .args(singlepass.iter().flatten())
.args(["--profile", profile])
.args(["--"])
.args(&flags.args)