@@ -5,7 +5,7 @@ use std::path::PathBuf;
5
5
use paths:: { AbsPath , AbsPathBuf } ;
6
6
use ra_cfg:: CfgOptions ;
7
7
use ra_db:: { CrateId , CrateName , Dependency , Edition } ;
8
- use rustc_hash:: FxHashSet ;
8
+ use rustc_hash:: { FxHashMap , FxHashSet } ;
9
9
use serde:: { de, Deserialize } ;
10
10
use stdx:: split_delim;
11
11
@@ -24,7 +24,7 @@ pub struct Crate {
24
24
pub ( crate ) deps : Vec < Dependency > ,
25
25
pub ( crate ) cfg : CfgOptions ,
26
26
pub ( crate ) target : Option < String > ,
27
- pub ( crate ) out_dir : Option < AbsPathBuf > ,
27
+ pub ( crate ) env : FxHashMap < String , String > ,
28
28
pub ( crate ) proc_macro_dylib_path : Option < AbsPathBuf > ,
29
29
pub ( crate ) is_workspace_member : bool ,
30
30
pub ( crate ) include : Vec < AbsPathBuf > ,
@@ -78,7 +78,7 @@ impl ProjectJson {
78
78
cfg
79
79
} ,
80
80
target : crate_data. target ,
81
- out_dir : crate_data. out_dir . map ( |it| base . join ( it ) ) ,
81
+ env : crate_data. env ,
82
82
proc_macro_dylib_path : crate_data
83
83
. proc_macro_dylib_path
84
84
. map ( |it| base. join ( it) ) ,
@@ -105,7 +105,8 @@ struct CrateData {
105
105
#[ serde( default ) ]
106
106
cfg : FxHashSet < String > ,
107
107
target : Option < String > ,
108
- out_dir : Option < PathBuf > ,
108
+ #[ serde( default ) ]
109
+ env : FxHashMap < String , String > ,
109
110
proc_macro_dylib_path : Option < PathBuf > ,
110
111
is_workspace_member : Option < bool > ,
111
112
source : Option < CrateSource > ,
0 commit comments