From da7545836e388bb92b48089297c8a0c078d7bb03 Mon Sep 17 00:00:00 2001 From: rreiner-hqs Date: Tue, 26 Nov 2024 15:56:00 +0100 Subject: [PATCH] edits to build.rs --- roqoqo/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roqoqo/build.rs b/roqoqo/build.rs index 78d777e50..bc0cdb450 100644 --- a/roqoqo/build.rs +++ b/roqoqo/build.rs @@ -22,7 +22,7 @@ use syn::punctuated::Punctuated; use syn::visit::{self, Visit}; use syn::{AttrStyle, File, Ident, ItemImpl, ItemStruct, LitStr, Path, Token, Type, TypePath}; -const NUMBER_OF_MINOR_VERSIONS: usize = 17; +const NUMBER_OF_MINOR_VERSIONS: usize = 18; static AVAILABLE_GATES: OnceLock>> = OnceLock::new(); @@ -402,6 +402,9 @@ impl<'ast> Visit<'ast> for Visitor { if trait_name.as_str() == "ImplementedIn1point16" { self.roqoqo_version_register.insert(id.clone(), 16); } + if trait_name.as_str() == "ImplementedIn1point17" { + self.roqoqo_version_register.insert(id.clone(), 17); + } if trait_name.as_str() == "OperateSingleQubitGate" { self.single_qubit_gate_operations.push(id.clone()); }