Fixed docs build (#475)

Also sets code font size in docs back to normal (no longer small)
This commit is contained in:
Michael Rosenberg 2022-12-13 02:29:45 -05:00 committed by GitHub
parent 174611895b
commit 1cedb3727e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 17 additions and 5 deletions

View file

@ -1,8 +1,7 @@
FEATURES := simd_backend serde rand_core digest
FEATURES := serde rand_core digest
doc:
cargo +nightly rustdoc --features "$(FEATURES)" -- --html-in-header docs/assets/rustdoc-include-katex-header.html --cfg docsrs
cargo +nightly rustdoc --features "$(FEATURES)" -- --html-in-header docs/assets/rustdoc-include-katex-header.html --cfg docsrs --cfg=curve25519_dalek_backend=\"simd\"
doc-internal:
cargo +nightly rustdoc --features "$(FEATURES)" -- --html-in-header docs/assets/rustdoc-include-katex-header.html --document-private-items --cfg docsrs
cargo +nightly rustdoc --features "$(FEATURES)" -- --html-in-header docs/assets/rustdoc-include-katex-header.html --document-private-items --cfg docsrs --cfg=curve25519_dalek_backend=\"simd\"

View file

@ -9,5 +9,4 @@
<style>
.katex { font-size: 1em !important; }
pre.rust, .docblock code, .docblock-short code { font-size: 0.85em !important; }
</style>

View file

@ -177,8 +177,11 @@ impl ConditionallySelectable for FieldElement2625 {
}
impl FieldElement2625 {
/// The scalar \\( 0 \\).
pub const ZERO: FieldElement2625 = FieldElement2625([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
/// The scalar \\( 1 \\).
pub const ONE: FieldElement2625 = FieldElement2625([1, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
/// The scalar \\( -1 \\).
pub const MINUS_ONE: FieldElement2625 = FieldElement2625([
0x3ffffec, 0x1ffffff, 0x3ffffff, 0x1ffffff, 0x3ffffff, 0x1ffffff, 0x3ffffff, 0x1ffffff,
0x3ffffff, 0x1ffffff,

View file

@ -156,8 +156,11 @@ impl ConditionallySelectable for FieldElement51 {
}
impl FieldElement51 {
/// The scalar \\( 0 \\).
pub const ZERO: FieldElement51 = FieldElement51([0, 0, 0, 0, 0]);
/// The scalar \\( 1 \\).
pub const ONE: FieldElement51 = FieldElement51([1, 0, 0, 0, 0]);
/// The scalar \\( -1 \\).
pub const MINUS_ONE: FieldElement51 = FieldElement51([
2251799813685228,
2251799813685247,

View file

@ -282,8 +282,11 @@ impl ConditionallySelectable for FieldElement2625 {
}
impl FieldElement2625 {
/// The scalar \\( 0 \\).
pub const ZERO: FieldElement2625 = FieldElement2625([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
/// The scalar \\( 1 \\).
pub const ONE: FieldElement2625 = FieldElement2625([1, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
/// The scalar \\( -1 \\).
pub const MINUS_ONE: FieldElement2625 = FieldElement2625([
0x3ffffec, 0x1ffffff, 0x3ffffff, 0x1ffffff, 0x3ffffff, 0x1ffffff, 0x3ffffff, 0x1ffffff,
0x3ffffff, 0x1ffffff,

View file

@ -53,6 +53,7 @@ fn m(x: u32, y: u32) -> u64 {
}
impl Scalar29 {
/// The scalar \\( 0 \\).
pub const ZERO: Scalar29 = Scalar29([0, 0, 0, 0, 0, 0, 0, 0, 0]);
/// Unpack a 32 byte / 256 bit scalar into 9 29-bit limbs.

View file

@ -253,8 +253,11 @@ impl ConditionallySelectable for FieldElement51 {
}
impl FieldElement51 {
/// The scalar \\( 0 \\).
pub const ZERO: FieldElement51 = FieldElement51([0, 0, 0, 0, 0]);
/// The scalar \\( 1 \\).
pub const ONE: FieldElement51 = FieldElement51([1, 0, 0, 0, 0]);
/// The scalar \\( -1 \\).
pub const MINUS_ONE: FieldElement51 = FieldElement51([
2251799813685228,
2251799813685247,

View file

@ -55,6 +55,7 @@ fn m(x: u64, y: u64) -> u128 {
}
impl Scalar52 {
/// The scalar \\( 0 \\).
pub const ZERO: Scalar52 = Scalar52([0, 0, 0, 0, 0]);
/// Unpack a 32 byte / 256 bit scalar into 5 52-bit limbs.