From 59c3e1f439ef58385277a32c0b1bd4895485a1eb Mon Sep 17 00:00:00 2001 From: Bhargav Annem Date: Thu, 29 Aug 2024 16:31:22 -0700 Subject: [PATCH] feat: skip build when building docs (#13) * feat: skip build when building docs * chore: bump version --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- build.rs | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ed2df59..a8f4e2c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -203,7 +203,7 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "kzg-rs" -version = "0.2.2" +version = "0.2.3" dependencies = [ "ff", "hex", diff --git a/Cargo.toml b/Cargo.toml index 0ae911c..3aa1a3e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "Rust implementation of KZG point evaluation" edition = "2021" license = "MIT" name = "kzg-rs" -version = "0.2.2" +version = "0.2.3" repository = "https://github.com/succinctlabs/kzg-rs" [dependencies] diff --git a/README.md b/README.md index d11960a..3f7aff4 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ cargo add kzg-rs ``` Or add ```toml -kzg-rs = { version = "0.2.2" } +kzg-rs = { version = "0.2.3" } ``` You can rebuild `roots_of_unity.bin`, `g1.bin`, and `g2.bin` by running diff --git a/build.rs b/build.rs index f1a9813..ae087ca 100644 --- a/build.rs +++ b/build.rs @@ -4,7 +4,7 @@ include!("src/enums.rs"); include!("src/consts.rs"); include!("src/pairings.rs"); -#[cfg(not(target_arch = "riscv32"))] +#[cfg(not(any(target_arch = "riscv32", doc)))] fn main() { use std::{fs, io::Write, path::Path}; #[derive(Debug, Clone, PartialEq, Eq)] @@ -230,7 +230,7 @@ fn main() { g2_file.write_all(&g2_bytes).unwrap(); } -#[cfg(target_arch = "riscv32")] +#[cfg(any(target_arch = "riscv32", doc))] fn main() { - // Binaries cannot be built in a RISC-V environment + // Binaries cannot be built in a RISC-V environment or when building docs }