Repository navigation
Add support for Termux (Android) #52
Copy link
Copy link
Closed
Description
Check if target os is Android disable arboard
remote-client also needa an adjustment to use nodejs instead of bun
Compiling arboard v3.6.1
error[E0433]: cannot find `Clipboard` in `platform`
--> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arboard-3.6.1/src/lib.rs:82:38
|
82 | ...latform: platform::Clipboard::new()? })
| ^^^^^^^^^ could not find `Clipboard` in `platform`
error[E0433]: cannot find `Clear` in `platform`
--> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arboard-3.6.1/src/lib.rs:162:31
|
162 | ...form::Clear::new(&mut self.platform) }
| ^^^^^ could not find `Clear` in `platform`
error[E0433]: cannot find `Get` in `platform`
--> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arboard-3.6.1/src/lib.rs:167:29
|
167 | ...atform::Get::new(&mut self.platform) }
| ^^^ could not find `Get` in `platform`
error[E0433]: cannot find `Set` in `platform`
--> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arboard-3.6.1/src/lib.rs:172:29
|
172 | ...atform::Set::new(&mut self.platform) }
| ^^^ could not find `Set` in `platform`
error[E0425]: cannot find type `Clipboard` in module `platform`
--> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arboard-3.6.1/src/lib.rs:71:33
|
71 | pub(crate) platform: platform::Clipboard,
| ^^^^^^^^^ not found in `platform`
error[E0425]: cannot find type `Get` in module `platform`
--> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arboard-3.6.1/src/lib.rs:179:33
|
179 | pub(crate) platform: platform::Get<'clipboard>,
| ^^^ not found in `platform`
error[E0425]: cannot find type `Set` in module `platform`
--> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arboard-3.6.1/src/lib.rs:213:33
|
213 | pub(crate) platform: platform::Set<'clipboard>,
| ^^^ not found in `platform`
error[E0425]: cannot find type `Clear` in module `platform`
--> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arboard-3.6.1/src/lib.rs:259:33
|
259 | pub(crate) platform: platform::Clear<'clipboard>,
| ^^^^^ not found in `platform`
Some errors have detailed explanations: E0425, E0433.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `arboard` (lib) due to 8 previous errors
warning: build failed, waiting for other jobs to finish...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
hjfghycvdt commentedon Sep 8, 2026
I asked Big Pickles to fix the previous error, and this is the result: Crabcode is running on Termux.
yan-ad commentedon Sep 9, 2026
Thanks for confirming that Crabcode can run on Termux with the initial workaround.
At the moment, Android/Termux is still experimental and unsupported in the current release train. The focused compatibility work addresses the build blocker from
arboardand makes the remote client runnable with Node/npm.Image attachments are not supported on Android yet.
arboardhas no Android clipboard-image backend, so image paste needs a dedicated Android/Termux implementation rather than just disabling the dependency. Until that exists, the intended behavior is a clear unsupported-feature error instead of a failed build.We should treat a successful Termux launch as encouraging validation, not a support guarantee, until the Android build and runtime paths are covered by CI and documented.
hjfghycvdt commentedon Sep 10, 2026
I asked GPT, and it said we can use Termux:API for the clipboard.
And here is an example of how to build CrabCode in GitHub Actions using a Termux Docker image:
hjfghycvdt commentedon Sep 10, 2026
I tried this PRin my private repo, it builds successfully in Termux.