diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-24 20:59:48 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-24 20:59:48 +0300 |
| commit | c411883ec639c9893ed9c33021c890485e91727b (patch) | |
| tree | 797bb6efdb3a9425e3d8c31953f62452bd564cb1 /src/platform/mod.rs | |
| parent | 11a7ab4ae21ab9427bcb44b3be01f62a4ab58c47 (diff) | |
feat!: replace the custom graphics api with optimized native kitty rendering (#4561)
* feat!: replace the custom graphics api with optimized native kitty rendering
* fix: enable safe kitty optimizations automatically
---------
Co-authored-by: JJ Liebig <jonathan.liebig@gmail.com>
Diffstat (limited to 'src/platform/mod.rs')
| -rw-r--r-- | src/platform/mod.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/platform/mod.rs b/src/platform/mod.rs index 88f433bf..65717228 100644 --- a/src/platform/mod.rs +++ b/src/platform/mod.rs @@ -328,6 +328,8 @@ mod remote_bridge_tests; #[cfg(unix)] mod unix_common; #[cfg(unix)] +pub(crate) mod unix_image_files; +#[cfg(unix)] pub(crate) use unix_common::{ begin_cli_output, end_cli_output, forward_remote_bridge_stdio, RemoteBridgeWake, }; @@ -725,3 +727,16 @@ pub(crate) fn shared_ssh_control_path( "interactive SSH recovery requires Unix OpenSSH multiplexing", )) } + +/// Kernel CoW snapshots are deliberately unsupported outside Linux. +#[cfg(not(target_os = "linux"))] +pub(crate) fn clone_native_image_source( + _source_fd: i64, + _destination: &std::fs::File, + _expected_len: usize, +) -> std::io::Result<()> { + Err(std::io::Error::new( + std::io::ErrorKind::Unsupported, + "native source cloning requires Linux", + )) +} |
