File tree Expand file tree Collapse file tree 4 files changed +2
-12
lines changed Expand file tree Collapse file tree 4 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,5 @@ opt-level = 3
55
55
[workspace ]
56
56
members = [" rustdx-cmd" ]
57
57
58
- # docs.rs-specific configuration
59
58
[package .metadata .docs .rs ]
60
- # document all features
61
59
all-features = true
62
- # defines the configuration attribute `docsrs`
63
- rustdoc-args = [" --cfg" , " docsrs" ]
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ pub fn date_string(x: u32) -> String {
48
48
}
49
49
50
50
#[ cfg( feature = "serde" ) ]
51
- #[ cfg_attr( docsrs, doc( cfg( feature = "serde" ) ) ) ]
52
51
pub fn ser_date_string < S > ( date : & u32 , serializer : S ) -> Result < S :: Ok , S :: Error >
53
52
where
54
53
S : serde:: Serializer ,
57
56
}
58
57
59
58
#[ cfg( feature = "serde" ) ]
60
- #[ cfg_attr( docsrs, doc( cfg( feature = "serde" ) ) ) ]
61
59
pub fn ser_code_string < S > ( code : & u32 , serializer : S ) -> Result < S :: Ok , S :: Error >
62
60
where
63
61
S : serde:: Serializer ,
Original file line number Diff line number Diff line change 1
- #![ doc( html_root_url = "https://docs.rs/rustdx/0.2.5 " ) ]
2
- #![ cfg_attr ( docsrs , feature( doc_auto_cfg) ) ]
1
+ #![ doc( html_root_url = "https://docs.rs/rustdx/0.3.0 " ) ]
2
+ #![ feature( doc_auto_cfg) ]
3
3
// #![feature(test)]
4
4
// extern crate test;
5
5
6
6
pub mod bytes_helper;
7
7
8
8
#[ cfg( feature = "file" ) ]
9
- #[ cfg_attr( docsrs, doc( cfg( feature = "file" ) ) ) ]
10
9
pub mod file;
11
10
12
11
#[ cfg( feature = "tcp" ) ]
13
- #[ cfg_attr( docsrs, doc( cfg( feature = "tcp" ) ) ) ]
14
12
pub mod tcp;
15
13
16
14
use thiserror:: Error ;
Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ impl SecurityList {
116
116
}
117
117
118
118
#[ cfg( feature = "encoding_rs" ) ]
119
- #[ cfg_attr( docsrs, doc( cfg( feature = "encoding_rs" ) ) ) ]
120
119
impl Tdx for SecurityList {
121
120
type Item = [ SecurityListData ] ;
122
121
@@ -178,7 +177,6 @@ impl SecurityListData {
178
177
/// ) = struct.unpack("<6sH8s4sBI4s", bytes) # python 表示方式
179
178
/// ```
180
179
#[ cfg( feature = "encoding_rs" ) ]
181
- #[ cfg_attr( docsrs, doc( cfg( feature = "encoding_rs" ) ) ) ]
182
180
pub fn parse ( bytes : & [ u8 ] ) -> Self {
183
181
let code = unsafe { std:: str:: from_utf8_unchecked ( & bytes[ 0 ..6 ] ) } . into ( ) ;
184
182
let ( name, encoding_used, had_errors) = encoding_rs:: GBK . decode ( & bytes[ 8 ..16 ] ) ;
You can’t perform that action at this time.
0 commit comments