Sha256: 14e5c659af4efa3ecd6fef850e25b8d6ff1225bde79e4290591ac5efaf4bd68b
Contents?: true
Size: 232 Bytes
Versions: 1
Compression:
Stored size: 232 Bytes
Contents
extern crate uuid_v1; use libc::c_char; use std::ffi::{CStr, CString}; #[no_mangle] pub extern "C" fn generate_uuid() -> *const c_char { let uuid = uuid_v1::new_v1(); CString::new(&*uuid.to_string()).unwrap().into_raw() }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rust_uuid-0.1 | src/generate_uuid.rs |