| Crates.io | dlcns |
| lib.rs | dlcns |
| version | 0.1.0-alpha |
| created_at | 2024-07-05 19:12:48.770343+00 |
| updated_at | 2024-07-05 19:12:48.770343+00 |
| description | A library for interacting with the DarkLight Centralized Name Server. |
| homepage | |
| repository | https://github.com/NathanMcMillan54/dlw/ |
| max_upload_size | |
| id | 1293008 |
| size | 11,168 |
DarkLight Centeralized Name Serice (library) is used for getting human-readable names that are asociated with the Id and port
of a DarkLight server. This library can get the Id of a name or a name from an Id. See examples/ for usages.
use dlcns::get::CNSGet;
fn main() {
let mut cnsget = CNSGet::new();
let id = cnsget.get_owner_name(String::from("test"));
if id.is_some() {
println!("{:?}", id.unwrap());
} else {
println!("Not found");
}
}