File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,5 @@ libc = { version = "0.2", default_features = false }
25
25
[target .'cfg(target_os = "windows")' .dependencies ]
26
26
winapi = { version = " 0.3" , features = [" profileapi" ] }
27
27
28
- [dev-dependencies ]
29
- doc-comment = " 0.3"
30
-
31
28
[features ]
32
29
std = [" rand_core/std" ]
Original file line number Diff line number Diff line change @@ -63,12 +63,17 @@ extern crate libc;
63
63
#[ cfg( target_os = "windows" ) ]
64
64
extern crate winapi;
65
65
66
+ // Coming from https://crates.io/crates/doc-comment
66
67
#[ cfg( test) ]
67
- #[ macro_use]
68
- extern crate doc_comment;
68
+ macro_rules! doc_comment {
69
+ ( $x: expr) => {
70
+ #[ doc = $x]
71
+ extern { }
72
+ } ;
73
+ }
69
74
70
75
#[ cfg( test) ]
71
- doctest ! ( "../README.md" ) ;
76
+ doc_comment ! ( include_str! ( "../README.md" ) ) ;
72
77
73
78
#[ cfg( not( feature = "log" ) ) ]
74
79
#[ macro_use] mod dummy_log;
You can’t perform that action at this time.
0 commit comments