diff --git a/yazi-term/Cargo.toml b/yazi-term/Cargo.toml index e44e7fe0..1f2eb148 100644 --- a/yazi-term/Cargo.toml +++ b/yazi-term/Cargo.toml @@ -22,3 +22,6 @@ parking_lot = { workspace = true } [target."cfg(unix)".dependencies] libc = { workspace = true } + +[target.'cfg(target_os = "macos")'.dependencies] +crossterm = { workspace = true, features = [ "use-dev-tty", "libc" ] } diff --git a/yazi-widgets/Cargo.toml b/yazi-widgets/Cargo.toml index ff15ece9..8e04168c 100644 --- a/yazi-widgets/Cargo.toml +++ b/yazi-widgets/Cargo.toml @@ -20,3 +20,6 @@ crossterm = { workspace = true } futures = { workspace = true } ratatui = { workspace = true } unicode-width = { workspace = true } + +[target.'cfg(target_os = "macos")'.dependencies] +crossterm = { workspace = true, features = [ "use-dev-tty", "libc" ] }