22mod syscall_handler;
33
44#[ cfg( target_os = "macos" ) ]
5- mod macos_fixtures ;
5+ mod macos_artifacts ;
66
77use std:: { io, path:: Path } ;
88
99#[ cfg( target_os = "linux" ) ]
1010use fspy_seccomp_unotify:: supervisor:: supervise;
1111use fspy_shared:: ipc:: { NativeString , PathAccess , channel:: channel} ;
1212#[ cfg( target_os = "macos" ) ]
13- use fspy_shared_unix:: payload:: Fixtures ;
13+ use fspy_shared_unix:: payload:: Artifacts ;
1414use fspy_shared_unix:: {
1515 exec:: ExecResolveConfig ,
1616 payload:: { Payload , encode_payload} ,
@@ -31,7 +31,7 @@ use crate::{
3131#[ derive( Debug , Clone ) ]
3232pub struct SpyImpl {
3333 #[ cfg( target_os = "macos" ) ]
34- fixtures : Fixtures ,
34+ artifacts : Artifacts ,
3535
3636 preload_path : NativeString ,
3737}
@@ -44,9 +44,9 @@ impl SpyImpl {
4444 use const_format:: formatcp;
4545 use xxhash_rust:: const_xxh3:: xxh3_128;
4646
47- use crate :: fixture :: Fixture ;
47+ use crate :: artifact :: Artifact ;
4848
49- const PRELOAD_CDYLIB : Fixture = Fixture {
49+ const PRELOAD_CDYLIB : Artifact = Artifact {
5050 name : "fspy_preload" ,
5151 content : PRELOAD_CDYLIB_BINARY ,
5252 hash : formatcp ! ( "{:x}" , xxh3_128( PRELOAD_CDYLIB_BINARY ) ) ,
@@ -56,10 +56,10 @@ impl SpyImpl {
5656 Ok ( Self {
5757 preload_path : preload_cdylib_path. as_path ( ) . into ( ) ,
5858 #[ cfg( target_os = "macos" ) ]
59- fixtures : {
60- let coreutils_path = macos_fixtures :: COREUTILS_BINARY . write_to ( dir, "" ) ?;
61- let bash_path = macos_fixtures :: OILS_BINARY . write_to ( dir, "" ) ?;
62- Fixtures {
59+ artifacts : {
60+ let coreutils_path = macos_artifacts :: COREUTILS_BINARY . write_to ( dir, "" ) ?;
61+ let bash_path = macos_artifacts :: OILS_BINARY . write_to ( dir, "" ) ?;
62+ Artifacts {
6363 bash_path : bash_path. as_path ( ) . into ( ) ,
6464 coreutils_path : coreutils_path. as_path ( ) . into ( ) ,
6565 }
@@ -78,7 +78,7 @@ impl SpyImpl {
7878 ipc_channel_conf,
7979
8080 #[ cfg( target_os = "macos" ) ]
81- fixtures : self . fixtures . clone ( ) ,
81+ artifacts : self . artifacts . clone ( ) ,
8282
8383 preload_path : self . preload_path . clone ( ) ,
8484
0 commit comments