From e5a24aad0184970d79716e3d64cab4ce9d0d4364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wo=C5=BAniak?= Date: Wed, 27 Mar 2024 11:13:14 +0100 Subject: [PATCH] docs: Add `doc_cfg` in `lib.rs` to fix compilation on docsrs --- sylvia/src/lib.rs | 1 + sylvia/src/multitest.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sylvia/src/lib.rs b/sylvia/src/lib.rs index dff12ea7..1945c6ff 100644 --- a/sylvia/src/lib.rs +++ b/sylvia/src/lib.rs @@ -1,3 +1,4 @@ +#![cfg_attr(docsrs, feature(doc_cfg))] //! Framework for creating CosmWasm Smart Contract with high-level abstraction layer //! //! Most of implementation lies in `sylvia-derive` crate which is reexported here diff --git a/sylvia/src/multitest.rs b/sylvia/src/multitest.rs index e302702b..3a06bad1 100644 --- a/sylvia/src/multitest.rs +++ b/sylvia/src/multitest.rs @@ -1,6 +1,6 @@ //! This module provides utilities to work with `cw_multi_test` crate. //! -//! Example usage: +//! ## Example usage: //! ```rust //! # use sylvia::cw_std::{Response, StdResult}; //! # use sylvia::types::{ExecCtx, InstantiateCtx, QueryCtx};