chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
use iana_time_zone::{get_timezone, GetTimezoneError};
fn main() -> Result<(), GetTimezoneError> {
println!("{}", get_timezone()?);
Ok(())
}

View File

@@ -0,0 +1,13 @@
use std::thread;
use std::time::Duration;
use iana_time_zone::{get_timezone, GetTimezoneError};
const WAIT: Duration = Duration::from_secs(1);
fn main() -> Result<(), GetTimezoneError> {
loop {
println!("{}", get_timezone()?);
thread::sleep(WAIT);
}
}

View File

@@ -0,0 +1,25 @@
use std::sync::atomic::{AtomicUsize, Ordering};
use std::thread::spawn;
use iana_time_zone::get_timezone;
const THREADS: usize = 10;
const ITERATIONS: usize = 100_000;
static COUNT: AtomicUsize = AtomicUsize::new(0);
fn main() {
let mut threads = Vec::with_capacity(THREADS);
for _ in 0..THREADS {
threads.push(spawn(|| {
for _ in 0..ITERATIONS {
get_timezone().unwrap();
COUNT.fetch_add(1, Ordering::Relaxed);
}
}));
}
for thread in threads {
thread.join().unwrap();
}
assert_eq!(COUNT.load(Ordering::SeqCst), THREADS * ITERATIONS);
}