diff --git a/Cargo.toml b/Cargo.toml index 8fd0eaa..caa92dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "digit-layout" description = "This crate provides a unified data type definition across various libraries, efficiently encodes types in a compact layout, thus avoiding the redundancy of enumerating definitions for data types." -version = "0.2.0-alpha.1" +version = "0.2.0-alpha.2" edition = "2021" authors = ["YdrMaster "] repository = "https://github.com/InfiniTensor/digit-layout.git" diff --git a/src/macros.rs b/src/macros.rs index 7dec531..d249778 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -15,15 +15,15 @@ macro_rules! layout { }; ($name:ident u($bits:expr)) => { - layout!($name u($bits); 1); + $crate::layout!($name u($bits); 1); }; ($name:ident i($bits:expr)) => { - layout!($name e(0)m($bits - 1); 1); + $crate::layout!($name e(0)m($bits - 1); 1); }; ($name:ident e($exponent:expr)m($mantissa:expr)) => { - layout!($name e($exponent)m($mantissa); 1); + $crate::layout!($name e($exponent)m($mantissa); 1); }; ($name:ident; [$group:expr] in $size:expr) => { - layout!($name = stringify!($name); [$group] in $size); + $crate::layout!($name = stringify!($name); [$group] in $size); }; }