File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,9 @@ mio = { version = "0.6", optional = true }
30
30
[dev-dependencies ]
31
31
quicli = " 0.2"
32
32
anyhow = " 1.0"
33
+
34
+ [package .metadata .docs .rs ]
35
+ # To build locally:
36
+ # RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --open
37
+ all-features = true
38
+ rustdoc-args = [" --cfg" , " docsrs" ]
Original file line number Diff line number Diff line change 82
82
//!
83
83
//! [README on Github]: https://github.com/rust-embedded/rust-gpio-cdev
84
84
85
+ #![ cfg_attr( docsrs, feature( doc_cfg) ) ]
86
+
85
87
#[ macro_use]
86
88
extern crate bitflags;
87
89
#[ macro_use]
@@ -99,6 +101,7 @@ use std::slice;
99
101
use std:: sync:: Arc ;
100
102
101
103
#[ cfg( feature = "async-tokio" ) ]
104
+ #[ cfg_attr( docsrs, doc( cfg( feature = "async-tokio" ) ) ) ]
102
105
mod async_tokio;
103
106
pub mod errors; // pub portion is deprecated
104
107
mod ffi;
@@ -114,6 +117,7 @@ pub enum IoctlKind {
114
117
}
115
118
116
119
#[ cfg( feature = "async-tokio" ) ]
120
+ #[ cfg_attr( docsrs, doc( cfg( feature = "async-tokio" ) ) ) ]
117
121
pub use crate :: async_tokio:: AsyncLineEventHandle ;
118
122
pub use errors:: * ;
119
123
@@ -562,6 +566,7 @@ impl Line {
562
566
}
563
567
564
568
#[ cfg( feature = "async-tokio" ) ]
569
+ #[ cfg_attr( docsrs, doc( cfg( feature = "async-tokio" ) ) ) ]
565
570
pub fn async_events (
566
571
& self ,
567
572
handle_flags : LineRequestFlags ,
You can’t perform that action at this time.
0 commit comments