Disable doctests in src/rust/crypto module.

These all need C linking to work, and so far, rustdoc does not seem
to respect cargo setting about build scripts or RUSTOPTIONS.
This commit is contained in:
Nick Mathewson 2018-06-20 17:16:44 -04:00
parent 901ada7e5f
commit 592e8ac395
2 changed files with 5 additions and 6 deletions

View File

@ -43,7 +43,7 @@ pub struct Sha256 {
///
/// # Examples
///
/// ```
/// ```rust,no_run
/// use crypto::digests::sha2::{Sha256, Digest};
///
/// let mut hasher: Sha256 = Sha256::default();
@ -66,7 +66,7 @@ impl BlockInput for Sha256 {
///
/// # Examples
///
/// ```
/// ```rust,no_run
/// use crypto::digests::sha2::{Sha256, Digest};
///
/// let mut hasher: Sha256 = Sha256::default();
@ -110,7 +110,7 @@ pub struct Sha512 {
///
/// # Examples
///
/// ```
/// ```rust,no_run
/// use crypto::digests::sha2::{Sha512, Digest};
///
/// let mut hasher: Sha512 = Sha512::default();
@ -133,7 +133,7 @@ impl BlockInput for Sha512 {
///
/// # Examples
///
/// ```
/// ```rust,no_run
/// use crypto::digests::sha2::{Sha512, Digest};
///
/// let mut hasher: Sha512 = Sha512::default();

View File

@ -9,7 +9,7 @@
//! The `digests` module contains submodules for specific hash digests
//! and extendable output functions.
//!
//! ```
//! ```rust,no_run
//! use crypto::digests::sha2::*;
//!
//! let mut hasher: Sha256 = Sha256::default();
@ -43,4 +43,3 @@ extern crate tor_log;
pub mod digests; // Unfortunately named "digests" plural to avoid name conflict with the digest crate
pub mod rand;