#plugin #automatic #clipboard #develop #autoclip #📎

autoclip-core

The core crate to develop plugins for autoclip

1 unstable release

0.1.0 Jan 6, 2021

#17 in #develop

MIT license

4KB

📎 autoclip

Rust

Do something on your clipboard, automatically.

✨ Features

  • Automatic
  • Customisable with Plugins

📦 Installation

$ cargo build --release

🔌 Installing Plugins

If the plugin is published to autoclip-plugins repository, you can install it automatically:

$ ./autoclip-app install [name]

Manually

  1. Open the local data directory.
    • Windows: C:\Users\[Your Name]\AppData\Local
    • macOS: /Users/[Your Name]/Library/Application Support
    • Linux: /home/[your_name]/.local/share
  2. Now go into autoclip directory, then plugins .
    • If the directories not exists, create them.
  3. Put the .dll, .dylib or .so files of plugins into the plugins directory.

🔧 Developing Plugins

  1. Setup your Rust environment.
  2. Create a new lib crate.
    $ cargo new --lib plugin-name-of-your-plugin
    
  3. Configure Cargo.toml, changing the crate type to cdylib.
    [lib]
    crate-type = ["cdylib"]
    
  4. Add autoclip-core as a dependency.
    [dependencies]
    autoclip-core = "0.1.0"
    
  5. Implement AutoclipPlugin trait as you like.
  6. Export the plugin with a macro:
    autoclip_core::export_plugin!("name-of-your-plugin", AutoclipPluginImpl);
    
  7. Build & distribute .dll, .dylib and .so files!

☑ ToDo

  • OS Support
    • Windows Support
    • macOS Support
    • Linux Support
  • Customisation
    • Polling Interval
  • Installer
  • Plugin Installer

No runtime deps

~190KB