diff --git a/fixed_wide/Cargo.toml b/fixed_wide/Cargo.toml index eb8c705..cc218bc 100644 --- a/fixed_wide/Cargo.toml +++ b/fixed_wide/Cargo.toml @@ -11,3 +11,4 @@ zeroes=["ratio","dep:arrayvec"] [dependencies] bnum = "0.11.0" arrayvec = { version = "0.7.6", optional = true } +paste = "1.0.15" diff --git a/fixed_wide_vectors/Cargo.lock b/fixed_wide_vectors/Cargo.lock index 7c320dd..5bb2156 100644 --- a/fixed_wide_vectors/Cargo.lock +++ b/fixed_wide_vectors/Cargo.lock @@ -28,7 +28,6 @@ name = "fixed_wide_vectors" version = "0.1.0" dependencies = [ "fixed_wide", - "paste", ] [[package]] diff --git a/fixed_wide_vectors/src/macros/mod.rs b/fixed_wide_vectors/src/macros/mod.rs index 30d20cc..572d35c 100644 --- a/fixed_wide_vectors/src/macros/mod.rs +++ b/fixed_wide_vectors/src/macros/mod.rs @@ -4,3 +4,17 @@ pub mod fixed_wide; pub mod common; pub mod vector; pub mod matrix; + +#[doc(hidden)] +#[macro_export(local_inner_macros)] +macro_rules! macro_repeated{ + ( + $macro:ident, + $any:tt, + $($repeated:tt),* + )=>{ + $( + $crate::$macro!($any, $repeated); + )* + }; +}