Tauri Plugin keygen-rs2
Tauri V2 plugin for Keygen.sh licensing, based on the keygen-rs SDK.
For Tauri v1, please use tauri-plugin-keygen-rs.
Sponsored by
Keymana is a desktop interface for Keygen.sh that eliminates API calls, offering intuitive license management with multi-account support, advanced filtering, and compatibility with both cloud and self-hosted instances.
Features
- License validation and management
- Machine-specific license activation and deactivation
- Real-time license state updates
- Rust and TypeScript APIs for seamless integration
- Customizable Keygen.sh API endpoint
Installation
Add the following to your Cargo.toml
:
[]
= "0.4"
Usage
- In your Tauri app's
main.rs
, import and use the plugin:
use Builder;
- You can use the plugin's API in your frontend code:
import {
getLicense,
validateKey,
deactivate,
checkoutLicense,
checkoutMachine,
} from 'tauri-plugin-keygen-rs-api2';
const license = await validateKey('YOUR_LICENSE_KEY');
- Access the plugin state in Rust code:
// ... other configurations
.setup
.run
.expect;
default
For more detailed examples, refer to the examples directory.
Error Handling
The plugin uses a KeygenError
class for error handling. Catch and handle these errors in your application as needed.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.