RPM build fix (reverted CI changes which will need to be un-reverted or made conditional) and vendor Rust dependencies to make builds much faster in any CI system.
This commit is contained in:
24
zeroidc/vendor/tinyvec_macros/src/lib.rs
vendored
Normal file
24
zeroidc/vendor/tinyvec_macros/src/lib.rs
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
#![no_std]
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! impl_mirrored {
|
||||
{
|
||||
type Mirror = $tinyname:ident;
|
||||
$(
|
||||
$(#[$attr:meta])*
|
||||
$v:vis fn $fname:ident ($seif:ident : $seifty:ty $(,$argname:ident : $argtype:ty)*) $(-> $ret:ty)? ;
|
||||
)*
|
||||
} => {
|
||||
$(
|
||||
$(#[$attr])*
|
||||
#[inline(always)]
|
||||
$v fn $fname($seif : $seifty, $($argname: $argtype),*) $(-> $ret)? {
|
||||
match $seif {
|
||||
$tinyname::Inline(i) => i.$fname($($argname),*),
|
||||
$tinyname::Heap(h) => h.$fname($($argname),*),
|
||||
}
|
||||
}
|
||||
)*
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user