File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,15 @@ options:
2323 title : Controls compression for the TRAP files written by the extractor.
2424 description : >
2525 This option is only intended for use in debugging the extractor. Accepted
26- values are 'gzip' (the default, to write gzip-compressed TRAP) and 'none'
27- (to write uncompressed TRAP).
26+ values are 'gzip' (to write gzip-compressed TRAP) and 'none'
27+ (currently the default, to write uncompressed TRAP).
2828 type : string
2929 pattern : " ^(none|gzip)$"
30- extract_dependencies :
31- title : Whether to extract dependencies .
30+ cargo_target_dir :
31+ title : Directory to use for cargo output files .
3232 description : >
33- Extract the source code of dependencies and the standard libraries in addition to
34- normal source code.
33+ This value is an optional path to use as `CARGO_TARGET_DIR` for the internal
34+ cargo commands the extractor uses. Pointing it to a persistent directory may
35+ reduce execution time of consecutive extractor runs. By default, a new scratch
36+ directory is used for each run.
3537 type : string
36- pattern : " ^(false|true)$"
Original file line number Diff line number Diff line change @@ -37,8 +37,7 @@ pub struct Config {
3737 pub scratch_dir : PathBuf ,
3838 pub trap_dir : PathBuf ,
3939 pub source_archive_dir : PathBuf ,
40- pub target_dir : Option < PathBuf > ,
41- pub extract_dependencies : bool ,
40+ pub cargo_target_dir : Option < PathBuf > ,
4241 pub verbose : u8 ,
4342 pub compression : Compression ,
4443 pub inputs : Vec < PathBuf > ,
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ fn main() -> anyhow::Result<()> {
131131 extractor. extract_without_semantics ( file, "no manifest found" ) ;
132132 }
133133 let target_dir = & cfg
134- . target_dir
134+ . cargo_target_dir
135135 . unwrap_or_else ( || cfg. scratch_dir . join ( "target" ) ) ;
136136 for ( manifest, files) in map. values ( ) . filter ( |( _, files) | !files. is_empty ( ) ) {
137137 if let Some ( ( ref db, ref vfs) ) = RustAnalyzer :: load_workspace ( manifest, target_dir) {
You can’t perform that action at this time.
0 commit comments