referrerpolicy=no-referrer-when-downgrade

cumulus_test_runtime/
flavors.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Cumulus.
3
4// Cumulus is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Cumulus is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Cumulus.  If not, see <http://www.gnu.org/licenses/>.
16
17#[macro_export]
18macro_rules! define_flavor {
19	($module: ident, $($capability:tt)*) => {
20		#[cfg(feature = "std")]
21		pub mod $module {
22			$(crate::define_flavor!(impl $module, $capability);)*
23		}
24	};
25	(impl $module: ident, wasm) => {
26		include!(concat!(env!("OUT_DIR"), "/wasm_binary_", stringify!($module), ".rs"));
27	};
28	(impl $module: ident, consts) => {
29		pub const WASM_FILE_NAME: &str = concat!("wasm_binary_", stringify!($module), ".rs");
30	};
31}
32
33#[macro_export]
34macro_rules! define_flavors {
35	($($capabilities:tt)*) => {
36		define_flavor!(spec_version_incremented, $($capabilities)*);
37		define_flavor!(relay_parent_offset, $($capabilities)*);
38		define_flavor!(elastic_scaling_500ms, $($capabilities)*);
39		define_flavor!(elastic_scaling, $($capabilities)*);
40		define_flavor!(elastic_scaling_12s_slot, $($capabilities)*);
41		define_flavor!(block_bundling, $($capabilities)*);
42		define_flavor!(sync_backing, $($capabilities)*);
43		define_flavor!(v3, $($capabilities)*);
44		define_flavor!(v3_rpo_2, $($capabilities)*);
45		define_flavor!(v3_rpo_4, $($capabilities)*);
46		define_flavor!(v3_rpo_6, $($capabilities)*);
47		define_flavor!(v3_rpo_15, $($capabilities)*);
48		define_flavor!(elastic_scaling_v3, $($capabilities)*);
49		define_flavor!(slot_duration_18s, $($capabilities)*);
50		define_flavor!(with_authority_discovery, $($capabilities)*);
51	};
52}