ids_service 2.1.3

Library that allows to generate unique Ids.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: MIT
//! Standalone id generation without the caching service (rust_hash).
//! This example requires the `rust` or `all` feature.

#[cfg(feature = "rust")]
use ids_service::common::Encode;
#[cfg(feature = "rust")]
use ids_service::rust_hash::create_id;

fn main() {
    println!("id      : {}", create_id());
    println!("id hex  : {}", create_id().as_hex());
    println!("id b64  : {}", create_id().as_base64());
}