docs.rs failed to build tauri-plugin-keygen-rs-0.4.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
tauri-plugin-keygen-rs-0.4.2
Tauri Plugin keygen-rs
Tauri plugin for Keygen.sh licensing, based on the keygen-rs SDK.
For Tauri v2 support, please use tauri-plugin-keygen-rs2.
Sponsored by
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-api';
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.