@@ -317,12 +317,15 @@ pub fn vm_generic_config_derive(input: proc_macro::TokenStream) -> proc_macro::T
317
317
#field_name_upper( #periphery_name<F >) ,
318
318
} ) ;
319
319
create_chip_complex. push ( quote ! {
320
- let complex: VmChipComplex <F , Self :: Executor , Self :: Periphery > = complex. extend( & self . #field_name) ?;
320
+ let complex: :: openvm_circuit :: arch :: VmChipComplex <F , Self :: Executor , Self :: Periphery > = complex. extend( & self . #field_name) ?;
321
321
} ) ;
322
322
}
323
323
324
324
let ( source_executor_type, source_periphery_type) = match & source {
325
- Source :: System ( _) => ( quote ! { SystemExecutor } , quote ! { SystemPeriphery } ) ,
325
+ Source :: System ( _) => (
326
+ quote ! { :: openvm_circuit:: arch:: SystemExecutor } ,
327
+ quote ! { :: openvm_circuit:: arch:: SystemPeriphery } ,
328
+ ) ,
326
329
Source :: Config ( field_ident) => {
327
330
let field_type = fields
328
331
. iter ( )
@@ -344,34 +347,34 @@ pub fn vm_generic_config_derive(input: proc_macro::TokenStream) -> proc_macro::T
344
347
let periphery_type = Ident :: new ( & format ! ( "{}Periphery" , name) , name. span ( ) ) ;
345
348
346
349
TokenStream :: from ( quote ! {
347
- #[ derive( ChipUsageGetter , Chip , InstructionExecutor , From , AnyEnum ) ]
350
+ #[ derive( :: openvm_circuit :: circuit_derive :: ChipUsageGetter , :: openvm_circuit :: circuit_derive :: Chip , :: openvm_circuit :: derive :: InstructionExecutor , :: derive_more :: derive :: From , :: openvm_circuit :: derive :: AnyEnum ) ]
348
351
pub enum #executor_type<F : PrimeField32 > {
349
352
#[ any_enum]
350
353
#source_name_upper( #source_executor_type<F >) ,
351
354
#( #executor_enum_fields) *
352
355
}
353
356
354
- #[ derive( ChipUsageGetter , Chip , From , AnyEnum ) ]
357
+ #[ derive( :: openvm_circuit :: circuit_derive :: ChipUsageGetter , :: openvm_circuit :: circuit_derive :: Chip , :: derive_more :: derive :: From , :: openvm_circuit :: derive :: AnyEnum ) ]
355
358
pub enum #periphery_type<F : PrimeField32 > {
356
359
#[ any_enum]
357
360
#source_name_upper( #source_periphery_type<F >) ,
358
361
#( #periphery_enum_fields) *
359
362
}
360
363
361
- impl <F : PrimeField32 > VmConfig <F > for #name {
364
+ impl <F : PrimeField32 > :: openvm_circuit :: arch :: VmConfig <F > for #name {
362
365
type Executor = #executor_type<F >;
363
366
type Periphery = #periphery_type<F >;
364
367
365
- fn system( & self ) -> & SystemConfig {
366
- VmConfig :: <F >:: system( & self . #source_name)
368
+ fn system( & self ) -> & :: openvm_circuit :: arch :: SystemConfig {
369
+ :: openvm_circuit :: arch :: VmConfig :: <F >:: system( & self . #source_name)
367
370
}
368
- fn system_mut( & mut self ) -> & mut SystemConfig {
369
- VmConfig :: <F >:: system_mut( & mut self . #source_name)
371
+ fn system_mut( & mut self ) -> & mut :: openvm_circuit :: arch :: SystemConfig {
372
+ :: openvm_circuit :: arch :: VmConfig :: <F >:: system_mut( & mut self . #source_name)
370
373
}
371
374
372
375
fn create_chip_complex(
373
376
& self ,
374
- ) -> Result <VmChipComplex <F , Self :: Executor , Self :: Periphery >, VmInventoryError > {
377
+ ) -> Result <:: openvm_circuit :: arch :: VmChipComplex <F , Self :: Executor , Self :: Periphery >, :: openvm_circuit :: arch :: VmInventoryError > {
375
378
let complex = self . #source_name. create_chip_complex( ) ?;
376
379
#( #create_chip_complex) *
377
380
Ok ( complex)
0 commit comments