Skip to content

Instantly share code, notes, and snippets.

View mzhrayhm5-dev's full-sized avatar

mzhrayhm5-dev

  • Joined Apr 12, 2026
View GitHub Profile
#![allow(non_upper_case_globals)]
#![forbid(clippy::mutex_atomic)]
#![deny(clippy::cast_possible_truncation)]
#![deny(clippy::cast_possible_wrap)]
use std::alloc::{alloc_zeroed, dealloc, Layout};
use std::cell::UnsafeCell;
use std::mem::{size_of, MaybeUninit};
use std::ptr::NonNull;
use std::sync::atomic::{