Skip to content

Commit 7a42b5c

Browse files
Drop doc-comment dependency but keep testing readme examples
1 parent 25c9687 commit 7a42b5c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

rand_jitter/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,5 @@ libc = { version = "0.2", default_features = false }
2525
[target.'cfg(target_os = "windows")'.dependencies]
2626
winapi = { version = "0.3", features = ["profileapi"] }
2727

28-
[dev-dependencies]
29-
doc-comment = "0.3"
30-
3128
[features]
3229
std = ["rand_core/std"]

rand_jitter/src/lib.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,17 @@ extern crate libc;
6363
#[cfg(target_os = "windows")]
6464
extern crate winapi;
6565

66+
// Coming from https://crates.io/crates/doc-comment
6667
#[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+
}
6974

7075
#[cfg(test)]
71-
doctest!("../README.md");
76+
doc_comment!(include_str!("../README.md"));
7277

7378
#[cfg(not(feature = "log"))]
7479
#[macro_use] mod dummy_log;

0 commit comments

Comments
 (0)