Closed jvjfk closed 11 months ago
concurrent-queue is imported (in Cargo.toml) only if target is linux, but is used when target is linux OR android.
concurrent-queue
linux
android
So, async-signal last release (v0.2.1) does not build on android target.
Thank you !
Cargo.toml [target.'cfg(target_os = "linux")'.dependencies] concurrent-queue = "2.2.0" lib.rs } else if #[cfg(any(target_os = "android", target_os = "linux"))] { mod signalfd; use signalfd as sys; } signalfd.rs use concurrent_queue::ConcurrentQueue;
Cargo.toml
[target.'cfg(target_os = "linux")'.dependencies] concurrent-queue = "2.2.0"
lib.rs
} else if #[cfg(any(target_os = "android", target_os = "linux"))] { mod signalfd; use signalfd as sys; }
signalfd.rs
use concurrent_queue::ConcurrentQueue;
Thanks for the report! Filed #18 to fix this.
concurrent-queue
is imported (in Cargo.toml) only if target islinux
, but is used when target islinux
ORandroid
.So, async-signal last release (v0.2.1) does not build on
android
target.Thank you !