1 unstable release

0.0.1 Jul 17, 2024

#63 in #utils

BSD-3-Clause

4KB

cdumay_core License: BSD-3-Clause cdumay_core on crates.io cdumay_core on docs.rs Source Code Repository

cdumay_core is a bundle of tools used by other libraries.

Quickstart

Cargo.toml:

[dependencies]
cdumay_core = "0.3"
serde_json = "1.0"

main.rs:

extern crate cdumay_core;
extern crate serde_json;

use cdumay_core::{Value, Uuid};

fn main() {
    let data = r#"
        {
            "name": "John Doe",
            "age": 43
        }"#;
    let v: Value = serde_json::from_str(data).unwrap();
    assert_eq!(v["name"], "John Doe");
    assert_eq!(v["age"], 43);
    let uuid = Uuid::new_v4();
    println!("{}", serde_json::to_string_pretty(&uuid).unwrap());
}

Dependencies

~0.7–1.2MB
~24K SLoC