Skip to content

Commit

Permalink
Move the u64_digit build config into the macros
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed May 4, 2024
1 parent 49102cb commit 9eab65d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ name = "num-bigint"
repository = "https://github.com/rust-num/num-bigint"
version = "0.4.4"
readme = "README.md"
build = "build.rs"
exclude = ["/ci/*", "/.github/*"]
edition = "2021"
rust-version = "1.60"
Expand Down
15 changes: 0 additions & 15 deletions build.rs

This file was deleted.

6 changes: 3 additions & 3 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

macro_rules! cfg_32 {
($($any:tt)+) => {
#[cfg(not(u64_digit))] $($any)+
#[cfg(not(any(target_pointer_width = "64", target_pointer_width = "128")))] $($any)+
}
}

macro_rules! cfg_32_or_test {
($($any:tt)+) => {
#[cfg(any(not(u64_digit), test))] $($any)+
#[cfg(any(not(any(target_pointer_width = "64", target_pointer_width = "128")), test))] $($any)+
}
}

macro_rules! cfg_64 {
($($any:tt)+) => {
#[cfg(u64_digit)] $($any)+
#[cfg(any(target_pointer_width = "64", target_pointer_width = "128"))] $($any)+
}
}

Expand Down

0 comments on commit 9eab65d

Please sign in to comment.