]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Disable doctests in src/rust/crypto module.
authorNick Mathewson <nickm@torproject.org>
Wed, 20 Jun 2018 21:16:44 +0000 (17:16 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 20 Jun 2018 21:16:44 +0000 (17:16 -0400)
These all need C linking to work, and so far, rustdoc does not seem
to respect cargo setting about build scripts or RUSTOPTIONS.

src/rust/crypto/digests/sha2.rs
src/rust/crypto/lib.rs

index 1e6b8e0e86fa2b1a1af3c1c70c1a4e389fba148e..03e0843dc0851fcdb2352861818ee7db9fbe5843 100644 (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();
index d120635b953ca356761c1cd0d9e40cf2272a0e01..f72a859dd78543ef9ef54f0f6cce7f3e327677fd 100644 (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;
-