From c411883ec639c9893ed9c33021c890485e91727b Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 24 Sep 2026 20:59:48 +0300 Subject: 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 --- src/platform/mod.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/platform/mod.rs') 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", + )) +} -- cgit v1.2.3