A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
Keep nix and the cast helper off the wasm build
RoversXed788b75e2dc
diff --git a/termwiz/src/terminal/mod.rs b/termwiz/src/terminal/mod.rsindex 5cf64d56..290350b6 100644--- a/termwiz/src/terminal/mod.rs+++ b/termwiz/src/terminal/mod.rs@@ -8,8 +8,11 @@ use crate::caps::Capabilities;use crate::input::InputEvent;#[cfg(any(unix, windows))]use crate::surface::Change;+#[cfg(any(unix, windows))]use crate::{format_err, Result};+#[cfg(any(unix, windows))]use num_traits::NumCast;+#[cfg(any(unix, windows))]use std::fmt::Display;#[cfg(any(unix, windows))]use std::time::Duration;@@ -142,6 +145,7 @@ pub fn new_terminal(caps: Capabilities) -> Result<impl Terminal> {SystemTerminal::new(caps)}+#[cfg(any(unix, windows))]pub(crate) fn cast<T: NumCast + Display + Copy, U: NumCast>(n: T) -> Result<U> {num_traits::cast(n).ok_or_else(|| format_err!("{} is out of bounds for this system", n))}diff --git a/wezterm-escape-parser/Cargo.toml b/wezterm-escape-parser/Cargo.tomlindex 99a28fcb..937e9a7e 100644--- a/wezterm-escape-parser/Cargo.toml+++ b/wezterm-escape-parser/Cargo.toml@@ -15,7 +15,6 @@ bitflags = "2.0"hex = {workspace = true, default-features=false, features=["alloc"]}image = {workspace =true, optional=true }log.workspace = true-nix = { workspace=true, optional=true, features=["mman", "fs"] }num-derive.workspace = truenum-traits.workspace = trueordered-float.workspace = true@@ -30,6 +29,12 @@ wezterm-color-types.workspace = truewezterm-dynamic.workspace = truewezterm-input-types = {workspace = true, default-features=false}+# Only the real shared-memory path (unix, non-android) uses nix; keeping the+# dependency off other targets stops a future nix bump from breaking the+# wasm build for no reason.+[target."cfg(unix)".dependencies]+nix = { workspace=true, optional=true, features=["mman", "fs"] }+[target."cfg(windows)".dependencies.winapi]workspace = trueoptional = true