mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-06 10:51:07 +00:00
feat: add proc macro to reduce overseer mock boilerplate (#2949)
This commit is contained in:
1 parent
f36d8efb3d
commit
1ef8eac8ec
12 files changed
+309
-487
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#![allow(dead_code)]
|
||||
|
||||
use polkadot_procmacro_overseer_subsystems_gen::AllSubsystemsGen;
|
||||
|
||||
#[derive(Clone, AllSubsystemsGen)]
|
||||
enum AllSubsystems<A,B> {
|
||||
A(A),
|
||||
B(B),
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let all = AllSubsystems::<u8,u16>::A(0u8);
|
||||
}
|
||||
Reference in new issue
Block a user