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:
23
23
title : Controls compression for the TRAP files written by the extractor.
24
24
description : >
25
25
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).
28
28
type : string
29
29
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 .
32
32
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.
35
37
type : string
36
- pattern : " ^(false|true)$"
Original file line number Diff line number Diff line change @@ -37,8 +37,7 @@ pub struct Config {
37
37
pub scratch_dir : PathBuf ,
38
38
pub trap_dir : PathBuf ,
39
39
pub source_archive_dir : PathBuf ,
40
- pub target_dir : Option < PathBuf > ,
41
- pub extract_dependencies : bool ,
40
+ pub cargo_target_dir : Option < PathBuf > ,
42
41
pub verbose : u8 ,
43
42
pub compression : Compression ,
44
43
pub inputs : Vec < PathBuf > ,
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ fn main() -> anyhow::Result<()> {
131
131
extractor. extract_without_semantics ( file, "no manifest found" ) ;
132
132
}
133
133
let target_dir = & cfg
134
- . target_dir
134
+ . cargo_target_dir
135
135
. unwrap_or_else ( || cfg. scratch_dir . join ( "target" ) ) ;
136
136
for ( manifest, files) in map. values ( ) . filter ( |( _, files) | !files. is_empty ( ) ) {
137
137
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