File tree 3 files changed +18
-13
lines changed 3 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -21,21 +21,18 @@ shlex = "0.1"
21
21
tests_expectations = { path = " tests/expectations" }
22
22
23
23
[build-dependencies ]
24
- quasi_codegen = " 0.20 "
24
+ quasi_codegen = " 0.25 "
25
25
26
26
[dependencies ]
27
+ aster = " 0.33"
28
+ cexpr = " 0.2"
27
29
cfg-if = " 0.1.0"
28
30
clang-sys = " 0.8.0"
29
31
lazy_static = " 0.1.*"
30
32
libc = " 0.2"
31
33
rustc-serialize = " 0.3.19"
32
- syntex_syntax = " 0.44"
33
34
regex = " 0.1"
34
- cexpr = " 0.2"
35
-
36
- [dependencies .aster ]
37
- features = [" with-syntex" ]
38
- version = " 0.28"
35
+ quasi = " 0.25"
39
36
40
37
[dependencies .clippy ]
41
38
optional = true
@@ -49,14 +46,15 @@ version = "0.3"
49
46
optional = true
50
47
version = " 0.3"
51
48
52
- [dependencies .quasi ]
53
- features = [ " with-syntex " ]
54
- version = " 0.20 "
49
+ [dependencies .syntex_syntax ]
50
+ optional = true
51
+ version = " 0.48 "
55
52
56
53
[features ]
57
- default = [" logging" ]
54
+ default = [" logging" , " syntex " ]
58
55
llvm_stable = []
59
56
logging = [" env_logger" , " log" ]
60
57
static = []
58
+ syntex = [" syntex_syntax" , " aster/with-syntex" , " quasi/with-syntex" ]
61
59
# This feature only exists for CI -- don't use it!
62
60
_docs = []
Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ impl<'ctx> BindgenContext<'ctx> {
397
397
let sess = parse:: ParseSess :: new ( ) ;
398
398
let mut loader = base:: DummyResolver ;
399
399
let mut ctx =
400
- GenContext ( base:: ExtCtxt :: new ( & sess, vec ! [ ] , cfg, & mut loader) ) ;
400
+ GenContext ( base:: ExtCtxt :: new ( & sess, cfg, & mut loader) ) ;
401
401
402
402
ctx. 0 . bt_push ( ExpnInfo {
403
403
call_site : self . span ,
Original file line number Diff line number Diff line change 8
8
#![ cfg_attr( feature = "clippy" , feature( plugin) ) ]
9
9
#![ cfg_attr( feature = "clippy" , plugin( clippy) ) ]
10
10
11
+ #![ cfg_attr( not( feature = "syntex" ) , feature( rustc_private) ) ]
12
+
11
13
#![ deny( missing_docs) ]
12
14
#![ deny( warnings) ]
13
15
22
24
#[ macro_use]
23
25
extern crate cfg_if;
24
26
extern crate cexpr;
25
- extern crate syntex_syntax as syntax;
26
27
extern crate aster;
27
28
extern crate quasi;
28
29
extern crate clang_sys;
@@ -39,6 +40,12 @@ extern crate log;
39
40
#[ macro_use]
40
41
mod log_stubs;
41
42
43
+ #[ cfg( feature = "syntex" ) ]
44
+ extern crate syntex_syntax as syntax;
45
+
46
+ #[ cfg( not( feature = "syntex" ) ) ]
47
+ extern crate syntax;
48
+
42
49
// A macro to declare an internal module for which we *must* provide
43
50
// documentation for. If we are building with the "_docs" feature, then the
44
51
// module is declared public, and our `#![deny(missing_docs)]` pragma applies to
You can’t perform that action at this time.
0 commit comments