276 Commits
Author SHA1 Message Date
xtqqczze f6f0727893 deps: upgrade thiserror to 2.0 (#7973) 2026-09-12 10:57:23 +02:00
NSPC911 08e50ca2cd window: Replace MouseCursor with cursor-icon from winit (#8100) 2026-08-27 13:51:50 +02:00
xtqqczze 572f7496e4 deps: upgrade clipboard-win to remove winapi as transitive dep (#8102) 2026-08-27 11:51:46 +02:00
xtqqczze 1300cfb9b2 filedescriptor: Replace winapi with windows-sys (#8026) 2026-08-18 21:38:28 +02:00
Benoit de Chezelles 4af230bc01 deps: bump serde_with to 3.x to fix GHSA-7gcf-g7xr-8hxj security issue
Cargo cooldown change report:
```
    Removing base64 v0.13.1
     Keeping base64 0.22.1
      Adding bs58 v0.5.1
    Updating darling v0.20.11 -> v0.23.0 (latest: v0.20.11)
    Updating darling_core v0.20.11 -> v0.23.0 (latest: v0.20.11)
    Updating darling_macro v0.20.11 -> v0.23.0 (latest: v0.20.11)
      Adding dyn-clone v1.0.20
      Adding ref-cast v1.0.26
      Adding ref-cast-impl v1.0.26
      Adding schemars v0.9.0
      Adding schemars v1.2.2
    Updating serde_with v2.3.3 -> v3.21.0 (latest: v2.3.3)
    Updating serde_with_macros v2.3.3 -> v3.21.0 (latest: v2.3.3)
```
2026-08-04 08:35:27 +02:00
Wez Furlong 5cc2d1ef0b deps: bump libssh-rs to v0.3.8
This picks up a couple of important fixes:

https://github.com/wez/libssh-rs/commit/5584ba1d9873df48c8fddafdfc20743656c7fdff
which includes a libssh fix to compensate for a somewhat nutty
symlink(2) syscall parameter order flip that was present in older
versions of openssh, but fixed in more recent versions, such as the
one now shipped in macos 26.

and https://github.com/wez/libssh-rs/commit/9f9e7149602eb93880a39c0c630a40ff61cf06b2
which may or may not be a side effect of the above bump, but we
couldn't tell because the windows ci over there stopped
running a while back.
2026-07-05 07:54:40 +01:00
Cédric Schieli 59d94d19f5 fix(deps): enable chrono clock, allows single crates build (#7894)
Building individual crates like `cargo build -p mux` failed with:

    error[E0599]: no associated function or constant named `now`
                  found for struct `Utc`

The workspace declares chrono with `default-features=false` and only
`["unstable-locales", "serde"]`.
Starting with chrono 0.4.43 (we now resolve 0.4.44, up from 0.4.42),
`Utc::now()` and `Local::now()` were moved behind a new `now` cargo feature
(`#[cfg(feature = "now")]`), which is pulled in by the `clock` feature.
Since neither was enabled, those constructors no longer exist.

A full `cargo build` kept working only by accident: Cargo unifies the
features of a shared dependency across the whole build graph, and other
crates in the tree (`spa`, pulled by `time-funcs`, and `serde_with`'s
`std` feature) request chrono with `clock` feature
(which transitively enabled `now` for every crate).

Assisted-by: Claude Opus 4.8 (1M context)
2026-07-03 14:23:20 +02:00
Yiding Jia 05343b3870 wezterm-blob-leases: Use uuid v4 over v1 2026-01-17 15:44:28 +00:00
dependabot[bot] 219d1ef33f build(deps): bump lru from 0.12.5 to 0.16.3
Bumps [lru](https://github.com/jeromefroe/lru-rs) from 0.12.5 to 0.16.3.
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.12.5...0.16.3)

---
updated-dependencies:
- dependency-name: lru
  dependency-version: 0.16.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-08 11:20:23 +00:00
Wez Furlong 9dbd5e16fa macos: pin legacy objc deps to version before mass deprecation
These crates are all deprecated in favor of the new objc2 crate,
but the migration to objc2 is non-trivial.  Meanwhile, the volume
of deprecation warnings is overwhelming and getting in the way.

Pin these deps back to a versions prior to the mass deprecation
so that we're not drowning in spew in the meantime.
2025-07-01 07:47:09 +01:00
Wez Furlong b249d9c427 deps: wgpu 24 -> 25 2025-06-30 07:28:05 +01:00
Wez Furlong ab6a92df74 deps: deal with deprecation in tempfile crate 2025-05-17 09:21:11 -07:00
Wez Furlong 909573fad9 ssh: implement ServerAliveInterval for libssh backend
This is a partial implementation of keepalives; it has the good
part (the sending of the packet on the requested interval), but
not the other part (disconnecting if we don't hear anything after
some number of packets).

The reason for not having the latter is that it isn't obvious to me how
to expose whether the channel had more incoming packets since sending
the ignore, so we cannot confidently act to terminate the connection.

refs: https://github.com/wezterm/wezterm/issues/4023
2025-05-14 07:14:22 -07:00
Wez Furlong 2b15e46421 refactor: extract wezterm-surface from termwiz 2025-05-10 15:07:21 -07:00
Wez Furlong 6740628da5 refactor: extract wezterm-cell from termwiz 2025-05-10 15:07:21 -07:00
Wez Furlong bb6534bd4b wezterm-char-props: allow building no_std 2025-05-10 15:07:21 -07:00
Wez Furlong 80de3aa313 refactor: extract wezterm-char-props from termwiz
This new crate holds the unicode character properties
and other similar data on emoji and nerdfonts codepoints.
2025-05-10 15:07:20 -07:00
Wez Furlong 0cd3fe8f97 wezterm-escape-parser: allow building no_std (but with alloc)
This commit makes a number of parts of wezterm's core
parsing functionality no_std compatible, but requiring alloc.

In the no_std environment, several lookup tables that would
normally have been used to accelerate some operations are
not available and we instead fall back to an O(n) operation.
2025-05-10 15:07:20 -07:00
Wez Furlong 304fb40567 switch termwiz over to wezterm-escape-parser 2025-05-10 14:54:05 -07:00
Wez Furlong 5306090f6c extract wezterm-escape-parser into its own crate 2025-05-10 14:54:05 -07:00
parthandWez Furlong 4d6b83585f feat: Added support for window blur on KDE Wayland (#6905)
* added config flag for kde blur

* added deps for wayland-protocol-plasma

* added kde background blur

* keeping inner functions together

* updated docs with kde_blur

* added kde_blur ss to docs

* removed unneeded dep

* removed redundant default value for bool

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* updated default for kde_blur in config

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* Update docs/config/lua/config/kde_window_background_blur.md

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* Update blur logic in os/wayland/window.rs

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* simplified blur_manager creation in wayland/state.rs

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* removed unnecessary panic paths

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* removed unnecessary panic path

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* put the right screenshot for kde_blur

* fixed build issues

* reverted window/src/os/windows/window.rs

* fixed formatting

* Update window/src/os/windows/window.rs

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-04 06:29:27 -07:00
HAMANO TsukasaandWez Furlong 8ec1f2451c add cell_widths option #6289
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-03 06:56:33 -07:00
Wez Furlong d4b50f6cc3 update xcb-imdkit to fix IBus IME issues
refs: https://github.com/wezterm/wezterm/issues/5125
refs: https://github.com/fcitx/xcb-imdkit/issues/16
refs: https://github.com/wezterm/xcb-imdkit-rs/pull/2
2025-05-02 06:59:51 -07:00
Wez Furlong 3bfe6df191 bump vtparse version 2025-04-19 07:37:32 -07:00
Wez Furlong 736f73f153 vtparse: allow building in no_std environments 2025-04-12 22:06:14 -07:00
Wez Furlong 4bf28e253c deps: set workspace pest dep to 2.7
This is the same version that is captured in the lock file,
but that lock file doesn't get propagated through to eg: termwiz
when published on crates.io.

Let's be explicit that we need this version because 2.1 doesn't
compile the `continue` token in our pest file:

https://github.com/wezterm/wezterm/pull/6810#issuecomment-2739610838
2025-03-20 07:18:53 -07:00
Jay Madden c0b29fef24 feat(macos): add support for titlebar background matching theme background on macos
closes: #6558
2025-03-08 17:13:37 -07:00
Wez Furlong 11505b7083 Cargo.toml: add comment about cairo 2025-02-12 11:39:41 -07:00
Wez Furlong 8ca496682b deps: update various unicode deps
(this is really a NOP)
2025-02-12 11:37:13 -07:00
Wez Furlong 211c514eaf deps: update tokio (for sync-color-schemes) 2025-02-12 11:28:53 -07:00
Wez Furlong 6f245de85a deps: siphasher -> 1.0.1 2025-02-12 11:26:16 -07:00
Wez Furlong df5490a0eb deps: rusqlite/sqlite-cache update 2025-02-12 11:24:47 -07:00
Wez Furlong f4a30c4918 deps: rayon -> 1.10 2025-02-12 11:18:59 -07:00
Wez Furlong 9ece65f44e deps: plist -> 1.7 2025-02-12 11:16:04 -07:00
Wez Furlong 4c04835b0e deps: update mac/objc-ish deps 2025-02-12 11:15:00 -07:00
Wez Furlong 3b994de290 deps: remove once_cell in favor of std functionality 2025-02-12 10:00:31 -07:00
Wez Furlong e801a8b215 deps: git2 -> 0.20 2025-02-12 09:52:33 -07:00
Wez Furlong b53ea4119c deps: base64 -> 0.22 2025-02-12 09:49:12 -07:00
Wez Furlong f78f72f2f1 deps: nix -> 0.29 2025-02-12 09:44:41 -07:00
Wez Furlong dff2ac6d69 deps: bump starship-battery to 0.10
This should make things buildable on NetBSD again

refs: https://github.com/wezterm/wezterm/issues/6665
2025-02-12 09:43:42 -07:00
Wez Furlong edcdefda3b workspace-ify the deps
There have been a couple of attempts at this in the past, which
had some usability warts in what I recall as an earlier, less
useful set of features overall.

Whether that was collective misunderstanding at the time, or things
have gotten better since then, now is a good time to adopt the workspace
dep syntax, because wezterm has many crates to keep on top of, and
automation like dependabot can't see a lot of them.

This will help to manage the versions of deps in wezterm centrally.

Let's try this out in CI: the Cargo.lock changes here are minimal
(eliminated a second version of base64 from one crate, terminal_size
from another, and removed an explicit dep on serde_derive) so
hopefully this sails through on !linux.

closes: https://github.com/wezterm/wezterm/pull/6668
2025-02-12 09:43:36 -07:00
Wez Furlong 9abf85cabf macOS: switch to UNUserNotificationCenter for toast notifs
I want to move all the objc stuff over to the objc2 crate.

The older notification center is deprecated and doesn't
have any bindings that are supported by the objc2 crate.

This is mostly straightforward, except I lost hours running
down the delegate was being dropped. Best guess is that
there's some autorelease pool magic that I don't understand;
I tried stashing the object into a global but that still didn't
keep it retained.

In the end, the simplest solution is to take it out of its
Retained wrapper and just leak it; it doesn't hold any
meaningful amount of data anyway, but it is vital to keep
it alive for the notification center callbacks to trigger.

Note that UNUserNotificationCenter requires that the application be
code-signed in order to function. I don't like this, but that's the way
that apple want it: sponsors are supporting the cost of my apple
developer account to enable this.
2025-02-09 09:50:12 -07:00
Wez Furlong 0fcd4a847c move uds stuff into new wezterm-uds crate
This centralizes the conditional imports and makes a home
for the IoSafe trait annotation for smol/async-io compat.
2024-05-13 17:56:57 -07:00
Wez Furlong 201fc1bf8e deps: update xcb 2024-01-23 17:12:16 -07:00
Wez Furlong 58a2a30623 Add vendored cairo-sys-rs crate
I'm experimenting with using cairo's 2D graphics for glyph related
drawing operations, and perhaps more stuff in the UI in the future.

The challenge is that no one has yet encapsulated its build in a
cargo-friendly way.

This commit is that attempt.

The strategy is this:

* `deps/cairo` is ostensibly the same thing as https://github.com/gtk-rs/gtk-rs-core/tree/master/cairo/sys
  which is the cairo-sys-rs crate
* Its build.rs has been replaced with a version that builds from the C
  sources that are found in-tree; it will never look for the system
  cairo library
* A pair of scripts to import pixman (a required dep of cairo) and
  cairo itself in a repeatable way are include, for if/when we need
  to update the vendored sources
  Cairo is a mature library and doesn't release very often.
* The workspace sets a patch for crates.io so that cairo-rs has
  its cairo-sys-rs dep redirected to the local build.

I'm not planning to upstream this stuff to gtk-rs-core as full cairo
depends on a lot more things than are dealt with here, so it would be a
PITA to handle that generally.

This vendoring strips out things that are not used, so the cairo
library that remains:

* Is not internally thread safe; no TLS or mutex support is enabled
  in either of them. That's fine because the high level cairo-rs
  wrapper is not Send+Sync, which means that rust will only allow
  it to be used single threaded anyway.
* Only has the basic recording and image surfaces
* No platform support for win32/xlib/xcb and so on
2023-08-20 14:59:29 -07:00
Wez Furlong fd1d614f29 patch rust-xcb until a release is made with my alignment fix
refs: https://github.com/wez/wezterm/issues/3838
refs: https://github.com/rust-x-bindings/rust-xcb/pull/230
2023-07-06 13:03:47 -07:00
Wez Furlong f5ba73a1a2 add own open_url crate
The upstream open crate keeps making stuff async/blocking/not-working on
windows, so this is a step towards removing this dependency.

refs: https://github.com/wez/wezterm/issues/3288
2023-03-19 12:44:12 -07:00
Wez Furlong 6c86bfba39 add wezterm-blob-leases crate 2023-03-18 20:30:47 -07:00
Wez Furlong 30238acb1b x11: potential fix for hanging IME
refs: https://github.com/H-M-H/xcb-imdkit-rs/issues/5
refs: https://github.com/wez/wezterm/issues/2819
2022-12-19 12:23:04 -07:00
Wez Furlong 8479be7465 Basic useless wgpu based rendering foundation 2022-11-18 10:03:49 -07:00