9 stable releases

3.22.2 Apr 8, 2024
3.22.1 Apr 4, 2024
3.21.4 Sep 27, 2023
3.21.2 Jul 12, 2023

#537 in Development tools

Download history 9/week @ 2024-01-24 52/week @ 2024-01-31 47/week @ 2024-02-07 62/week @ 2024-02-14 95/week @ 2024-02-21 57/week @ 2024-02-28 45/week @ 2024-03-06 30/week @ 2024-03-13 25/week @ 2024-03-20 7/week @ 2024-03-27 447/week @ 2024-04-03 149/week @ 2024-04-10 56/week @ 2024-04-17 61/week @ 2024-04-24 67/week @ 2024-05-01

375 downloads per month

MIT license

35MB
1.5K SLoC

Contains (static library, 6MB) libs/musl-x86_64/libLexActivator.a, (static library, 5.5MB) libs/linux-aarch64/libLexActivator.a, (static library, 4.5MB) libs/linux-x86/libLexActivator.a, (static library, 6MB) libs/linux-x86_64/libLexActivator.a, (static library, 5MB) libs/musl-aarch64/libLexActivator.a, (Windows DLL, 1MB) libs/win32-x86/LexActivator.dll and 3 more.

lexactivator

Latest Version Build Documentation License

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:

[dependencies]
lexactivator = { version = "3.22.2"}

Simple example usage:


use lexactivator::*;

fn main() {
    let license_key: String = String::from("LICENSE_KEY");
    let result = lexactivator::set_license_key(license_key);
    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 activation_result: Result<LexActivatorStatus, LexActivatorError> = lexactivator::activate_license();
    match activation_result {
        Ok(LexActivatorStatus::LA_OK) => {
            println!("License activated successfully");
        }
        Ok(_) => {
            // Other success cases if needed
        }
        
        Err(error) => {
            println!("License activation failed: {:?}", error);
        }
    }

}

License

This project is licensed under

Dependencies