Use doc_auto_cfg

This commit is contained in:
Luke Parker 2022-09-29 04:47:55 -04:00
parent 8b0f0a3713
commit 19cd609cba
No known key found for this signature in database
GPG key ID: F9F1386DB1E119B6
13 changed files with 16 additions and 0 deletions

View file

@ -9,6 +9,7 @@ edition = "2021"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
hex-literal = "0.3" hex-literal = "0.3"

View file

@ -8,6 +8,7 @@ edition = "2021"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
lazy_static = "1" lazy_static = "1"

View file

@ -1,3 +1,5 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
///! monero-serai: A modern Monero transaction library intended for usage in wallets. It prides ///! monero-serai: A modern Monero transaction library intended for usage in wallets. It prides
///! itself on accuracy, correctness, and removing common pit falls developers may face. ///! itself on accuracy, correctness, and removing common pit falls developers may face.
///! ///!

View file

@ -10,6 +10,7 @@ edition = "2021"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
rand_core = "0.6" rand_core = "0.6"

View file

@ -9,6 +9,7 @@ edition = "2021"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
thiserror = "1" thiserror = "1"

View file

@ -1,3 +1,4 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
use rand_core::{RngCore, CryptoRng}; use rand_core::{RngCore, CryptoRng};

View file

@ -10,6 +10,7 @@ edition = "2021"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
lazy_static = "1" lazy_static = "1"

View file

@ -10,6 +10,7 @@ edition = "2021"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
thiserror = "1" thiserror = "1"

View file

@ -1,3 +1,5 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
use core::fmt::{self, Debug}; use core::fmt::{self, Debug};
use std::{io::Read, sync::Arc, collections::HashMap}; use std::{io::Read, sync::Arc, collections::HashMap};

View file

@ -10,6 +10,7 @@ edition = "2021"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
zeroize = { version = "1.5", features = ["zeroize_derive"] } zeroize = { version = "1.5", features = ["zeroize_derive"] }

View file

@ -1,3 +1,5 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
use zeroize::Zeroize; use zeroize::Zeroize;
use ff::PrimeFieldBits; use ff::PrimeFieldBits;

View file

@ -10,6 +10,7 @@ edition = "2021"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
digest = "0.10" digest = "0.10"

View file

@ -1,3 +1,4 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![no_std] #![no_std]
#[cfg(feature = "merlin")] #[cfg(feature = "merlin")]