Skip to content

Commit

Permalink
sdk: add doctest module
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Jan 15, 2023
1 parent d9ea5ca commit 446f1f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions crates/nostr-sdk/src/doctest.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright (c) 2022-2023 Yuki Kishimoto
// Distributed under the MIT software license

#[doc = include_str!("../README.md")]
#[cfg(doctest)]
pub struct ReadmeDoctests;
4 changes: 2 additions & 2 deletions crates/nostr-sdk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) 2022-2023 Yuki Kishimoto
// Distributed under the MIT software license

#![doc = include_str!("../README.md")]

#[cfg(feature = "blocking")]
use once_cell::sync::Lazy;
#[cfg(feature = "blocking")]
Expand All @@ -12,6 +10,8 @@ pub use nostr;
pub use nostr::Result;

pub mod client;
#[cfg(feature = "all-nips")]
mod doctest;
pub mod relay;
pub mod subscription;
mod thread;
Expand Down

0 comments on commit 446f1f0

Please sign in to comment.