refactor(workspace): enforce layered crate boundaries

This commit is contained in:
elky
2026-07-15 23:47:19 +08:00
parent a728c090a9
commit 8616fe6ee2
969 changed files with 40187 additions and 27240 deletions
+16
View File
@@ -0,0 +1,16 @@
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct FencingToken(u64);
impl FencingToken {
pub const fn new(value: u64) -> Option<Self> {
if value == 0 {
None
} else {
Some(Self(value))
}
}
pub const fn get(self) -> u64 {
self.0
}
}