File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 66
66
toolchain : ' stable'
67
67
profile : minimal
68
68
override : true
69
+ - run : cargo build
69
70
# Since cargo test will run tests in parallel, and the crate uses cwd in
70
71
# legacy importer and captured stdio for testing logger, so we need to
71
72
# run tests in sequentially by adding `--test-threads=1`
Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ pub struct Options {
28
28
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/Options#alertColor)
29
29
pub alert_color : Option < bool > ,
30
30
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/Options#importers)
31
- #[ serde( skip) ]
31
+ #[ cfg_attr ( feature = " serde" , serde ( skip) ) ]
32
32
pub importers : Vec < SassImporter > ,
33
33
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/Options#loadPaths)
34
34
pub load_paths : Vec < PathBuf > ,
35
35
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/Options#logger)
36
- #[ serde( skip) ]
36
+ #[ cfg_attr ( feature = " serde" , serde ( skip) ) ]
37
37
pub logger : Option < BoxedLogger > ,
38
38
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/Options#quietDeps)
39
39
pub quiet_deps : bool ,
@@ -193,7 +193,7 @@ pub struct StringOptions {
193
193
/// Field for [Options]
194
194
pub common : Options ,
195
195
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/StringOptionsWithImporter#importer)
196
- #[ serde( skip) ]
196
+ #[ cfg_attr ( feature = " serde" , serde ( skip) ) ]
197
197
pub input_importer : Option < SassImporter > ,
198
198
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/StringOptionsWithoutImporter#syntax)
199
199
/// - [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/StringOptionsWithImporter#syntax)
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ pub struct LegacyOptions {
358
358
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/LegacySharedOptions#sourceMapContents)
359
359
pub source_map_contents : bool ,
360
360
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/LegacySharedOptions#importer)
361
- #[ serde( skip) ]
361
+ #[ cfg_attr ( feature = " serde" , serde ( skip) ) ]
362
362
pub importers : Option < Vec < BoxedLegacyImporter > > ,
363
363
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/LegacySharedOptions#charset)
364
364
pub charset : bool ,
@@ -367,7 +367,7 @@ pub struct LegacyOptions {
367
367
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/LegacySharedOptions#verbose)
368
368
pub verbose : bool ,
369
369
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/LegacySharedOptions#logger)
370
- #[ serde( skip) ]
370
+ #[ cfg_attr ( feature = " serde" , serde ( skip) ) ]
371
371
pub logger : Option < BoxedLogger > ,
372
372
/// More information: [Sass documentation](https://sass-lang.com/documentation/js-api/interfaces/LegacyFileOptions#file)
373
373
pub file : Option < PathBuf > ,
You can’t perform that action at this time.
0 commit comments