Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix no-bigint build failures, check those in CI #138

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ repos:
types: [rust]
language: system
pass_filenames: false
- id: check-without-num-bigint
name: Check without num-bigint feature
entry: cargo check --no-default-features --package jiter
types: [rust]
language: system
pass_filenames: false
- id: test
name: Test
entry: cargo test --test main
Expand Down
2 changes: 2 additions & 0 deletions crates/jiter/src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ fn take_value_recursive<'j, 's>(
})?;
match n {
NumberAny::Int(NumberInt::Int(int)) => JsonValue::Int(int),
#[cfg(feature = "num-bigint")]
NumberAny::Int(NumberInt::BigInt(big_int)) => JsonValue::BigInt(big_int),
NumberAny::Float(float) => JsonValue::Float(float),
}
Expand Down Expand Up @@ -386,6 +387,7 @@ fn take_value_recursive<'j, 's>(
})?;
match n {
NumberAny::Int(NumberInt::Int(int)) => JsonValue::Int(int),
#[cfg(feature = "num-bigint")]
NumberAny::Int(NumberInt::BigInt(big_int)) => JsonValue::BigInt(big_int),
NumberAny::Float(float) => JsonValue::Float(float),
}
Expand Down
Loading