lexactivator

Documentation Build Status (GitHub)

lexactivator is a rust wrapper for cryptlex's licensing SDK that lets you implement any type of licensing model such as node-locked, hosted floating licenses, trials and much more. This SDK offers support for online and offline activations.

Usage

In your Cargo.toml:

toml [dependencies] lexactivator = { version = "3.0.0"}

Simple example usage:

```rust

use lexactivator::*;

fn main() { let licensekey: String = String::from("LICENSEKEY"); let result = lexactivator::setlicensekey(licensekey); match result { Ok(()) => { // License Key set successfully println!("License key set successfully."); } Err(error) => { // Error occurred while setting license key println!("Error while setting license key: {:?}", error); } } let activationresult: Result = lexactivator::activatelicense(); match activationresult { Ok(LexActivatorStatus::LAOK) => { println!("License activated successfully"); } Ok() => { // Other success cases if needed }

    Err(error) => {
        println!("License activation failed: {:?}", error);
    }
}

} ```

License

This project is licensed under