1 unstable release
0.1.0 | Jan 6, 2021 |
---|
#17 in #develop
4KB
📎 autoclip
Do something on your clipboard, automatically.
✨ Features
- Automatic
- Customisable with Plugins
📦 Installation
$ cargo build --release
🔌 Installing Plugins
Automatically (recommended)
If the plugin is published to autoclip-plugins repository, you can install it automatically:
$ ./autoclip-app install [name]
Manually
- 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
- Windows:
- Now go into
autoclip
directory, thenplugins
.- If the directories not exists, create them.
- Put the
.dll
,.dylib
or.so
files of plugins into theplugins
directory.
🔧 Developing Plugins
- Setup your Rust environment.
- Create a new lib crate.
$ cargo new --lib plugin-name-of-your-plugin
- Configure Cargo.toml, changing the crate type to
cdylib
.[lib] crate-type = ["cdylib"]
- Add
autoclip-core
as a dependency.[dependencies] autoclip-core = "0.1.0"
- Implement
AutoclipPlugin
trait as you like. - Export the plugin with a macro:
autoclip_core::export_plugin!("name-of-your-plugin", AutoclipPluginImpl);
- 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