dlcns

Crates.iodlcns
lib.rsdlcns
version0.1.0-alpha
sourcesrc
created_at2024-07-05 19:12:48.770343
updated_at2024-07-05 19:12:48.770343
descriptionA library for interacting with the DarkLight Centralized Name Server.
homepage
repositoryhttps://github.com/NathanMcMillan54/dlw/
max_upload_size
id1293008
size11,168
(NathanMcMillan54)

documentation

https://docs.rs/

README

DLCNS

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");
    }
}
Commit count: 61

cargo fmt