proto_pdk/
macros.rs

1/// Generate all permutations for the provided OS and architecture mapping.
2#[macro_export]
3macro_rules! permutations {
4  [ $( $os:path => [ $($arch:path),* ], )* ] => {
5    std::collections::HashMap::from_iter([
6      $(
7        (
8          $os,
9          Vec::from_iter([
10            $(
11              $arch
12            ),*
13          ])
14        ),
15      )*
16    ])
17  };
18}