diff --git a/CHANGELOG.md b/CHANGELOG.md index fd6b29c..3363b93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ Entries are listed in reverse chronological order. +## 1.1.2 + +* Disabled KaTeX on `docs.rs` pending proper [support upstream](https://github.com/rust-lang/docs.rs/issues/302). + +## 1.1.1 + +* Fixed an issue related to `#[cfg(rustdoc)]` which prevented documenting multiple backends. + ## 1.1.0 * Adds support for precomputation for multiscalar multiplication. diff --git a/Cargo.toml b/Cargo.toml index 1a16652..8d33d2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curve25519-dalek" -version = "1.1.0" +version = "1.1.2" authors = ["Isis Lovecruft ", "Henry de Valence "] readme = "README.md" @@ -19,8 +19,9 @@ exclude = [ build = "build.rs" [package.metadata.docs.rs] -rustdoc-args = ["--html-in-header", ".cargo/registry/src/github.com-1ecc6299db9ec823/curve25519-dalek-0.13.2/rustdoc-include-katex-header.html"] -features = ["nightly"] +# Disabled for now since this is borked; tracking https://github.com/rust-lang/docs.rs/issues/302 +# rustdoc-args = ["--html-in-header", ".cargo/registry/src/github.com-1ecc6299db9ec823/curve25519-dalek-0.13.2/rustdoc-include-katex-header.html"] +features = ["nightly", "simd_backend"] [badges] travis-ci = { repository = "dalek-cryptography/curve25519-dalek", branch = "master"} diff --git a/src/backend/vector/mod.rs b/src/backend/vector/mod.rs index d034e6c..76d36ab 100644 --- a/src/backend/vector/mod.rs +++ b/src/backend/vector/mod.rs @@ -22,13 +22,19 @@ doc(include = "../docs/parallel-formulas.md") )] -#[cfg(not(any(target_feature = "avx2", target_feature = "avx512ifma",)))] +#[cfg(not(any(target_feature = "avx2", target_feature = "avx512ifma", rustdoc)))] compile_error!("simd_backend selected without target_feature=+avx2 or +avx512ifma"); -#[cfg(any(all(target_feature = "avx2", not(target_feature = "avx512ifma")), rustdoc))] +#[cfg(any( + all(target_feature = "avx2", not(target_feature = "avx512ifma")), + rustdoc +))] #[doc(cfg(all(target_feature = "avx2", not(target_feature = "avx512ifma"))))] pub mod avx2; -#[cfg(all(target_feature = "avx2", not(target_feature = "avx512ifma")))] +#[cfg(any( + all(target_feature = "avx2", not(target_feature = "avx512ifma")), + rustdoc +))] pub(crate) use self::avx2::{ constants::BASEPOINT_ODD_LOOKUP_TABLE, edwards::CachedPoint, edwards::ExtendedPoint, };