From 034c64d997b8546f0649fd6d9be9832b1d0613da Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 5 Aug 2024 16:58:48 +0200 Subject: [PATCH] Add full readme to crate documentation --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index de692a42..7e8a7000 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,8 +5,11 @@ rustc::internal )] #![deny(missing_docs)] - -//! A crate to run the Rust compiler (or other binaries) and test their command line output. +#![cfg_attr(doc, doc = include_str!("../README.md"))] +#![cfg_attr( + not(doc), + doc = "A crate to run the Rust compiler (or other binaries) and test their command line output." +)] use build_manager::BuildManager; pub use color_eyre;