Commit dea5b92 lif
committed
1 parent fb6ca65 commit dea5b92 Copy full SHA for dea5b92
File tree 1 file changed +19
-4
lines changed
1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 5
5
//! which is opt-in at present with crate feature `generated`, and additional
6
6
//! compatibility impls and re-exports to approximate the former handmade
7
7
//! bindings' module layout with crate feature `generated-migration`.
8
+ //!
9
+ //! Presently, when built with the `generated` flag, the legacy handmade
10
+ //! bindings are available in the `handmade` submodule.
11
+
12
+ #![ cfg_attr(
13
+ feature = "generated" ,
14
+ doc = "This documentation was built with the `generated` feature **on**."
15
+ ) ]
16
+ #![ cfg_attr(
17
+ not( feature = "generated" ) ,
18
+ doc = "This documentation was built with the `generated` feature **off**."
19
+ ) ]
8
20
9
21
pub mod instance_spec;
10
22
11
23
#[ cfg( feature = "generated" ) ]
12
- pub mod generated;
13
- pub mod handmade;
24
+ mod generated;
25
+ #[ cfg( feature = "generated" ) ]
26
+ pub use generated:: * ;
14
27
28
+ #[ cfg( feature = "generated" ) ]
29
+ pub mod handmade;
30
+ #[ cfg( not( feature = "generated" ) ) ]
31
+ mod handmade;
15
32
#[ cfg( not( feature = "generated" ) ) ]
16
33
pub use handmade:: * ;
17
34
18
- #[ cfg( feature = "generated" ) ]
19
- pub use generated:: * ;
20
35
#[ cfg( feature = "generated-migration" ) ]
21
36
pub use types as api;
22
37
#[ cfg( feature = "generated-migration" ) ]
You can’t perform that action at this time.
0 commit comments