From 534733b77cb1baef1459faa16a45d75c5f6275e3 Mon Sep 17 00:00:00 2001 From: sigoden Date: Tue, 7 Nov 2023 16:36:40 +0800 Subject: fix: unable to build on android using termux (#222) --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 80ac6e1..b5f799b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,6 @@ base64 = "0.21.0" rustc-hash = "1.1.0" bstr = "1.3.0" nu-ansi-term = "0.47.0" -arboard = { version = "3.2.0", default-features = false } async-trait = "0.1.74" textwrap = "0.16.0" ansi_colours = "1.2.2" @@ -53,6 +52,9 @@ version = "5.0.0" default-features = false features = ["parsing", "regex-onig", "plist-load"] +[target.'cfg(not(any(target_os = "android", target_os = "emscripten")))'.dependencies] +arboard = { version = "3.2.0", default-features = false } + [profile.release] lto = true strip = true -- cgit v1.2.3