Skip to content

Commit

Permalink
Excluded examples in lib.rs when hazmat feature not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
msedzins committed Sep 17, 2024
1 parent 4dadd12 commit 21c672b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dsa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
//!
//! Generate a DSA keypair
//!
//! ```
#![cfg_attr(feature = "hazmat", doc = "```")]
#![cfg_attr(not(feature = "hazmat"), doc = "```ignore")]
//! # use dsa::{KeySize, Components, SigningKey};
//! let mut csprng = rand::thread_rng();
//! let components = Components::generate(&mut csprng, KeySize::DSA_2048_256);
Expand All @@ -22,7 +23,8 @@
//!
//! Create keypair from existing components
//!
//! ```
#![cfg_attr(feature = "hazmat", doc = "```")]
#![cfg_attr(not(feature = "hazmat"), doc = "```ignore")]
//! # use dsa::{Components, SigningKey, VerifyingKey};
//! # use num_bigint::BigUint;
//! # use num_traits::One;
Expand Down

0 comments on commit 21c672b

Please sign in to comment.