| Crates.io | lunalib |
| lib.rs | lunalib |
| version | 0.1.3 |
| created_at | 2026-01-17 16:21:49.418654+00 |
| updated_at | 2026-01-17 16:46:08.111093+00 |
| description | Rust implementation of LunaLib: cryptocurrency wallet and mining system |
| homepage | |
| repository | https://github.com/taellinglin/LunaLibRust |
| max_upload_size | |
| id | 2050736 |
| size | 280,418 |
Rust implementation of LunaLib: a cryptocurrency wallet and mining system.
Add this to your Cargo.toml:
dependency = "lunalib_rust"
MIT OR Apache-2.0
Below are examples of how to initialize and use each major module in LunaLibRust.
use lunalib_rust::luna_lib::create_wallet;
let wallet = create_wallet();
// Use wallet methods, e.g. wallet.get_address(), wallet.get_balance(), etc.
use lunalib_rust::luna_lib::create_miner;
let miner = create_miner();
// Use miner methods, e.g. miner.start(), miner.stop(), etc.
use lunalib_rust::luna_lib::create_blockchain_manager;
let blockchain = create_blockchain_manager(Some("https://bank.linglin.art"));
// Use blockchain methods, e.g. blockchain.get_height(), blockchain.get_block(), etc.
use lunalib_rust::luna_lib::create_mempool_manager;
let mempool = create_mempool_manager(None);
// Use mempool methods, e.g. mempool.add_transaction(), mempool.get_pending(), etc.
use lunalib_rust::luna_lib::get_transaction_manager;
let tx_manager = get_transaction_manager();
// Use tx_manager methods, e.g. tx_manager.create_transfer(), tx_manager.validate_transaction(), etc.
use lunalib_rust::luna_lib::LunaLib;
println!("LunaLib version: {}", LunaLib::get_version());
for (name, desc) in LunaLib::get_available_classes() {
println!("{}: {}", name, desc);
}
For more details, see the documentation for each struct and method.