Skip to content

Commit

Permalink
feat: skip build when building docs (#13)
Browse files Browse the repository at this point in the history
* feat: skip build when building docs

* chore: bump version
  • Loading branch information
0xWOLAND authored Aug 29, 2024
1 parent 7f99143 commit 59c3e1f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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
}

0 comments on commit 59c3e1f

Please sign in to comment.