dlcns 0.1.0-alpha

A library for interacting with the DarkLight Centralized Name Server.
Documentation
  • Coverage
  • 14.71%
    5 out of 34 items documented1 out of 15 items with examples
  • Size
  • Source code size: 11.16 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 547.53 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 29s Average build duration of successful builds.
  • all releases: 29s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • NathanMcMillan54/dlw
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • NathanMcMillan54

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");
    }
}