Skip to content

Commit 0fe8de0

Browse files
committed
Improve documentation
1 parent 47efc12 commit 0fe8de0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ harness = false
6666
name = "opaque"
6767

6868
[package.metadata.docs.rs]
69-
features = ["argon2", "std", "curve25519"]
69+
all-features = true
70+
rustdoc-args = ["--cfg", "docsrs"]
7071
targets = []
7172

7273
[[example]]

src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,9 @@
11141114
//! (https://docs.rs/curve25519-dalek/4.0.0-pre.5/curve25519_dalek/index.html#backends)
11151115
//! [`p256::NistP256`]: https://docs.rs/p256/latest/p256/struct.NistP256.html
11161116
1117-
#![cfg_attr(not(test), deny(unsafe_code))]
11181117
#![no_std]
1118+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1119+
#![cfg_attr(not(test), deny(unsafe_code))]
11191120
#![warn(clippy::cargo, missing_docs)]
11201121
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
11211122
#![allow(type_alias_bounds)]

0 commit comments

Comments
 (0)