From d99a256b6f7ced624dcc7b306f576512ef1f6247 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 19 Nov 2021 23:06:53 +0000 Subject: [PATCH] Set MSRV to 1.51 The `doc(include)` logic is placed back behind the `nightly` feature flag, as it requires 1.54. --- rust-toolchain | 1 + src/lib.rs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 rust-toolchain diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000..ba0a719 --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +1.51.0 diff --git a/src/lib.rs b/src/lib.rs index 81c7161..5d03961 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,8 +8,12 @@ // - Deirdre Connolly // - Henry de Valence +#![doc(html_root_url = "https://docs.rs/reddsa/0.0.0")] +#![cfg_attr(feature = "nightly", feature(external_doc))] +#![cfg_attr(feature = "nightly", doc(include = "../README.md"))] #![deny(missing_docs)] -#![doc = include_str!("../README.md")] + +//! Docs require the `nightly` feature until RFC 1990 lands. pub mod batch; mod constants;