From a2c2f0863f324212361847752a87cfc028c8f252 Mon Sep 17 00:00:00 2001 From: Expyron <5100376+Expyron@users.noreply.github.com> Date: Sat, 8 Nov 2025 15:03:40 +0100 Subject: [PATCH] Fix README doctests --- Cargo.toml | 1 - src/lib.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 45e433fff..2ed5980fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,6 @@ rand = { version = "0.9.0", features = ["small_rng"] } rayon = "1.2" fnv = "1.0.7" serde_test = "1.0" -doc-comment = "0.3.1" bumpalo = { version = "3.13.0", features = ["allocator-api2"] } [target.'cfg(unix)'.dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index d4a263d0c..8960c8ed1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,9 +59,9 @@ extern crate std; #[cfg_attr(feature = "rustc-dep-of-std", allow(unused_extern_crates))] extern crate alloc; -#[cfg(feature = "nightly")] +#[doc = include_str!("../README.md")] #[cfg(doctest)] -doc_comment::doctest!("../README.md"); +pub struct ReadmeDoctests; #[macro_use] mod macros;