File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ cmake = "0.1.50"
27
27
pico-args = " 0.5.0"
28
28
tar = " 0.4.41"
29
29
tools = { path = " ../tools" }
30
- toml = " 0.8.22 "
31
- serde = " 1.0.219 "
30
+ toml = " 0.8.19 "
31
+ serde = " 1.0.209 "
32
32
33
33
[[bin ]]
34
34
name = " release"
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ pub mod crashtracker;
9
9
pub mod module;
10
10
pub mod utils;
11
11
12
- // #[cfg(feature = "profiling")]
12
+ #[ cfg( feature = "profiling" ) ]
13
13
pub mod profiling;
Original file line number Diff line number Diff line change @@ -174,11 +174,15 @@ impl Module for Profiling {
174
174
cargo_args. push ( "--release" ) ;
175
175
}
176
176
177
+ // Parse profiling-ffi manifest in order to get the crate-type array.
177
178
let prof_path: PathBuf = [ project_root ( ) . to_str ( ) . unwrap ( ) , CRATE_FOLDER , "Cargo.toml" ]
178
179
. iter ( )
179
180
. collect ( ) ;
181
+ // Buffer the manifest file.
180
182
let cargo_toml = fs:: read_to_string ( prof_path) . unwrap ( ) ;
183
+ // Use serde to get access to the lib section.
181
184
let parsed: CargoFile = toml:: from_str ( & cargo_toml) . unwrap ( ) ;
185
+ // Iterate over all the crate types in order to build the artifacts for each one.
182
186
for crate_type in parsed. lib . crate_type . iter ( ) {
183
187
// Ignore lib crate-type
184
188
if crate_type == "lib" {
You can’t perform that action at this time.
0 commit comments