Skip to content

Commit

Permalink
Add rustdoc logo/root link config to sub-crates
Browse files Browse the repository at this point in the history
This is necessary even for the test crate to prevent spurious errors:
deadlinks/cargo-deadlinks#36
  • Loading branch information
dhardy committed Jan 25, 2019
1 parent ec13800 commit 9ffaeb7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rand_jitter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
//!
//! [Jitterentropy]: http://www.chronox.de/jent.html
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
html_root_url = "https://rust-random.github.io/rand/")]

#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![doc(test(attr(allow(unused_variables), deny(warnings))))]

// Note: the C implementation of `Jitterentropy` relies on being compiled
// without optimizations. This implementation goes through lengths to make the
// compiler not optimize out code which does influence timing jitter, but is
Expand Down
12 changes: 12 additions & 0 deletions tests/wasm_bindgen/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright 2018 Developers of the Rand project.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// Crate to test WASM with the `wasm-bindgen` lib.

#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png")]

extern crate rand;
extern crate wasm_bindgen;
extern crate wasm_bindgen_test;
Expand Down

0 comments on commit 9ffaeb7

Please sign in to comment.