gitlab.com/rioadvancement/nalperion-rust.
For lastest updates: Go tonalperion_rust
The document provides information on Intergration to Nalperion for licensing using Rust Lang
This is reference code to help you operate with nalperion, but the way you use it in your software to make the entitlement work needs to be solutioned by you.
Rust Lang
Tested on rust 1.24.1
- Rio/OS Aventura
- Any linux
Reference
nalperion.rs
This code assumes that you have ShaferFileChk.so
downloaded and extracted, available in the tools/license
directory
create_trial_or_verify
This method does
- NalpLibOpen by using the .so file provided
- NSLValidateLibrary using CUSTOMER_ID, PRODUCT_D
- NSLGetLicense
- NalpLibClose
The output of the method is
- On error, the error msg has the information
- On success, trial commenced or activated using the license code.
If you have a license code from Nalperion then edit config.rs
activation_code: Some("09090000090909".to_string()),
Compile and Run
cargo build
cd ./target/debug/
./rioos-entitlement
Voila !