crabnebula-dev / drag-rs

Draggable for GUI apps
https://crabnebula.dev
Apache License 2.0
48 stars 9 forks source link

feat: add tauri plugin #4

Closed lucasfernog-crabnebula closed 7 months ago

lucasfernog-crabnebula commented 7 months ago

This PR adds a Tauri plugin interface for the drag crate, targeting Tauri v1.

I also changed the repo structure a bit as a Cargo workspace with a packages folder to hold the NPM API package. It feels a little weird to have the package.json on the root of the repo with this layout, so I dropped that support for NPM git dependencies. We can reconsider that in the future, specially when we decide how we want to manage versions of the plugin for v1 vs v2 (should we have a create for each in the main branch? should we use separate branches, with the main one only including the plugin for the latest Tauri release?).