From 8bc1f3221819839ba1de3437fda9bb3e62ef2484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Tue, 25 Jun 2024 07:28:48 +0200 Subject: [PATCH] sasl: remove `ignore` from scram-requiring doctest We can make that conditional on the feature flag, thus always doing the right thing depending on how the sasl crate is being built. --- sasl/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sasl/src/lib.rs b/sasl/src/lib.rs index 9d3f006d..55400950 100644 --- a/sasl/src/lib.rs +++ b/sasl/src/lib.rs @@ -25,7 +25,8 @@ //! //! ## More complex usage //! -//! ```rust,ignore +#![cfg_attr(feature = "scram", doc = "```rust\n")] +#![cfg_attr(not(feature = "scram"), doc = "```rust,ignore\n")] //! #[macro_use] extern crate sasl; //! //! use sasl::server::{Validator, Provider, Mechanism as ServerMechanism, Response};