@@ -118,11 +118,16 @@ pub fn generate_binding(
118118 let source = artifact_source_override. unwrap_or_else ( || artifact. path . clone ( ) ) ;
119119
120120 // 2. Install the artifact
121+ eprintln ! (
122+ "Copying artifact from {} to {}" ,
123+ source. display( ) ,
124+ target. display( )
125+ ) ;
121126 fs:: copy ( & source, & target) . with_context ( || {
122127 format ! (
123128 "Failed to copy {} to {}" ,
124129 source. display( ) ,
125- target. display( )
130+ target. display( ) ,
126131 )
127132 } ) ?;
128133
@@ -131,6 +136,7 @@ pub fn generate_binding(
131136 for ( target, data) in additional_files {
132137 let target = base_path. join ( target) ;
133138 fs:: create_dir_all ( target. parent ( ) . unwrap ( ) ) ?;
139+ eprintln ! ( "Writing additional file to {}" , target. display( ) ) ;
134140 let mut file = File :: options ( ) . create ( true ) . truncate ( true ) . open ( & target) ?;
135141 file. write_all ( data. as_slice ( ) ) ?;
136142 }
@@ -139,11 +145,17 @@ pub fn generate_binding(
139145 _ => {
140146 // 2. Install the artifact
141147 let source = artifact_source_override. unwrap_or_else ( || artifact. path . clone ( ) ) ;
148+ eprintln ! (
149+ "Copying artifact from {} to {}" ,
150+ source. display( ) ,
151+ artifact_target. display( )
152+ ) ;
142153 writer. add_file ( artifact_target, source, true ) ?;
143154
144155 // 3. Install additional files
145156 if let Some ( additional_files) = additional_files {
146157 for ( target, data) in additional_files {
158+ eprintln ! ( "Writing additional file to {}" , target. display( ) ) ;
147159 writer. add_bytes ( target, None , data. as_slice ( ) , false ) ?;
148160 }
149161 }
0 commit comments