Giter VIP home page Giter VIP logo

Comments (5)

AeriaVelocity avatar AeriaVelocity commented on August 16, 2024

+1, Termux support would be great

from arboard.

complexspaces avatar complexspaces commented on August 16, 2024

I hadn't heard of termux's API before, but I wouldn't be opposed to supporting this behind an opt-in feature flag. Would that be sufficient for your needs?

I don't think this could be the default because I do want to add proper Android clipboard support eventually (#56), but again the feature flag could work.

from arboard.

AeriaVelocity avatar AeriaVelocity commented on August 16, 2024

A feature flag sounds good, yeah

from arboard.

complexspaces avatar complexspaces commented on August 16, 2024

This is going to be very low priority for me to implement, but I would review a PR that cleanly overrode the "platform clipboard" with a tmux implementation based on the discussed feature flag if anyone is interested in contributing.

from arboard.

w1475963 avatar w1475963 commented on August 16, 2024

I also encountered this problem.

❯ cargo check
    Checking arboard v3.3.2
error[E0433]: failed to resolve: could not find `Clipboard` in `platform`
  --> /data/data/com.termux/files/home/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/arboard-3.3.2/src/lib.rs:76:38
   |
76 |         Ok(Clipboard { platform: platform::Clipboard::...
   |                                            ^^^^^^^^^ could not find `Clipboard` in `platform`

error[E0433]: failed to resolve: could not find `Clear` in `platform`
   --> /data/data/com.termux/files/home/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/arboard-3.3.2/src/lib.rs:156:31
    |
156 | ...rm::Clear::new(&mut self.platform) }
    |        ^^^^^ could not find `Clear` in `platform`

error[E0433]: failed to resolve: could not find `Get` in `platform`
   --> /data/data/com.termux/files/home/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/arboard-3.3.2/src/lib.rs:161:29
    |
161 | ...form::Get::new(&mut self.platform) }
    |          ^^^ could not find `Get` in `platform`

error[E0433]: failed to resolve: could not find `Set` in `platform`
   --> /data/data/com.termux/files/home/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/arboard-3.3.2/src/lib.rs:166:29
    |
166 | ...form::Set::new(&mut self.platform) }
    |          ^^^ could not find `Set` in `platform`

error[E0412]: cannot find type `Clipboard` in module `platform`
  --> /data/data/com.termux/files/home/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/arboard-3.3.2/src/lib.rs:65:33
   |
65 |     pub(crate) platform: platform::Clipboard,
   |                                    ^^^^^^^^^ not found in `platform`

error[E0412]: cannot find type `Get` in module `platform`
   --> /data/data/com.termux/files/home/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/arboard-3.3.2/src/lib.rs:173:33
    |
173 |     pub(crate) platform: platform::Get<'clipboard>,
    |                                    ^^^ not found in `platform`

error[E0412]: cannot find type `Set` in module `platform`
   --> /data/data/com.termux/files/home/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/arboard-3.3.2/src/lib.rs:197:33
    |
197 |     pub(crate) platform: platform::Set<'clipboard>,
    |                                    ^^^ not found in `platform`

error[E0412]: cannot find type `Clear` in module `platform`
   --> /data/data/com.termux/files/home/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/arboard-3.3.2/src/lib.rs:238:33
    |
238 |     pub(crate) platform: platform::Clear<'clipboard>,
    |                                    ^^^^^ not found in `platform`

Some errors have detailed explanations: E0412, E0433.

from arboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.