1
0
mirror of synced 2026-04-23 08:48:41 +08:00

auto commit

This commit is contained in:
yitter
2021-04-05 23:26:12 +08:00
parent 012d99838b
commit 46328d9eae
9 changed files with 71 additions and 40 deletions

View File

@@ -14,17 +14,17 @@ use libc::{c_char, uint32_t};
use std::ffi::{CStr, CString};
use std::str;
lazy_static! {
//static ref TestValue: Vec<i32> = vec!(0);
// static ref MAP: HashMap<u32, String> = HashMap::new();
}
// lazy_static! {
// static ref TestValue: Vec<i32> = vec!(0);
// static ref MAP: HashMap<u32, String> = HashMap::new();
// }
// // #[export_name = "SetIdGenerator"]
// #[no_mangle]
// pub extern "C" fn SetIdGenerator(options: IdGeneratorOptions) {
// YitIdHelper::SetIdGenerator(options);
// }
// #[export_name = "SetIdGenerator"]
#[no_mangle]
pub extern "C" fn SetIdGenerator(options: IdGeneratorOptions) {
YitIdHelper::SetIdGenerator(options);
}
#[no_mangle]
pub extern "C" fn SetOptions(workerId: u32, workerIdBitLength: u8, seqBitLength: u8) {