Skip to content

Commit

Permalink
Fix inclusion of README.md in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Mar 3, 2024
1 parent 11c07ec commit b70d3de
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![cfg_attr(feature = "_doc", feature(doc_cfg, external_doc))]
#![cfg_attr(feature = "_doc", doc(include = "../README.md"))]
#![doc = include_str!("../README.md")]

extern crate proc_macro;
extern crate proc_macro2;
Expand Down Expand Up @@ -95,6 +94,12 @@ impl Args {

// ---------------------------------------------------------------------------

/// Generate blanket implementations for a trait.
///
/// This procedural macro must be used on a `trait` block. It can be used
/// to either derive a blanket implementation, or to delegate the method
/// implementations of a trait to a module.
///
#[proc_macro_attribute]
pub fn blanket(
args: proc_macro::TokenStream,
Expand Down

0 comments on commit b70d3de

Please sign in to comment.