Crate yyid [−] [src]
Generate YYIDs
- GitHub: https://github.com/asaaki/yyid.rs
- crates.io: https://crates.io/crates/yyid
Example
Rust
extern crate yyid; use yyid::yyid_string; fn main() { println!("{}", yyid_string()); // => "02e7f0f6-067e-8c92-b25c-12c9180540a9" }
C
#include "path/to/yyid.rs/include/libyyid.h"
const char* my_yyid = yyid_c_string();
Other libraries for YYID
Ruby: https://github.com/janlelis/yyid.rb
# Code here, since it is only a require and a one-liner: require "securerandom" "%08x-%04x-%04x-%04x-%04x%08x" % SecureRandom.random_bytes(16).unpack("NnnnnN") #=> "37ab3494-7e04-ecf1-b99f-259999a44d16"
JavaScript: https://github.com/janlelis/yyid.js
Structs
YYID |
Functions
yyid_c_string |
Creates a new random YYID as a C-compatible char* |
yyid_string |
Creates a new random YYID as String |
Type Definitions
YYIDBytes |