Skip to content

Commit 9ffaeb7

Browse files
committed
Add rustdoc logo/root link config to sub-crates
This is necessary even for the test crate to prevent spurious errors: deadlinks/cargo-deadlinks#36
1 parent ec13800 commit 9ffaeb7

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

rand_jitter/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@
4040
//!
4141
//! [Jitterentropy]: http://www.chronox.de/jent.html
4242
43+
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
44+
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
45+
html_root_url = "https://rust-random.github.io/rand/")]
46+
47+
#![deny(missing_docs)]
48+
#![deny(missing_debug_implementations)]
49+
#![doc(test(attr(allow(unused_variables), deny(warnings))))]
50+
4351
// Note: the C implementation of `Jitterentropy` relies on being compiled
4452
// without optimizations. This implementation goes through lengths to make the
4553
// compiler not optimize out code which does influence timing jitter, but is

tests/wasm_bindgen/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
// Copyright 2018 Developers of the Rand project.
2+
//
3+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4+
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5+
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6+
// option. This file may not be copied, modified, or distributed
7+
// except according to those terms.
8+
9+
// Crate to test WASM with the `wasm-bindgen` lib.
10+
11+
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png")]
12+
113
extern crate rand;
214
extern crate wasm_bindgen;
315
extern crate wasm_bindgen_test;

0 commit comments

Comments
 (0)