16 stable releases

3.24.4 Feb 13, 2025
3.24.3 Nov 28, 2024
3.24.0 Sep 19, 2024
3.22.2 Apr 8, 2024
3.21.2 Jul 12, 2023

#331 in Network programming

Download history 34/week @ 2024-10-29 85/week @ 2024-11-05 216/week @ 2024-11-12 61/week @ 2024-11-19 296/week @ 2024-11-26 361/week @ 2024-12-03 456/week @ 2024-12-10 216/week @ 2024-12-17 118/week @ 2024-12-24 66/week @ 2024-12-31 54/week @ 2025-01-07 21/week @ 2025-01-14 8/week @ 2025-01-21 11/week @ 2025-01-28 69/week @ 2025-02-04 234/week @ 2025-02-11

322 downloads per month

MIT license

36MB
2K 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, 1.5MB) 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.24.4"}

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