mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
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:
parent
901ada7e5f
commit
592e8ac395
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user