Skip to content

Commit

Permalink
add MSRV of 1.73.0 (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Jun 5, 2024
1 parent 8c2cdf1 commit 3b59df6
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,33 @@ on:
pull_request: {}

jobs:
resolve:

runs-on: ubuntu-latest
outputs:
MSRV: ${{ steps.resolve-msrv.outputs.MSRV }}
steps:
- uses: actions/checkout@v4

- name: set up python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: resolve MSRV
id: resolve-msrv
run:
echo MSRV=`python -c 'import tomllib; print(tomllib.load(open("Cargo.toml", "rb"))["workspace"]["package"]["rust-version"])'` >> $GITHUB_OUTPUT

test-linux:
needs: [resolve]
name: test rust-${{ matrix.rust-version }} on linux
strategy:
fail-fast: false
matrix:
rust-version: [stable, nightly]
include:
- rust-version: ${{ needs.resolve.outputs.MSRV }}

runs-on: ubuntu-latest

Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ keywords = ["JSON", "parsing", "deserialization", "iter"]
categories = ["parser-implementations", "parsing"]
homepage = "https://github.com/pydantic/jiter/"
repository = "https://github.com/pydantic/jiter/"
rust-version = "1.73.0"

[profile.bench]
debug = true
Expand Down
2 changes: 1 addition & 1 deletion crates/jiter/src/simd_aarch64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const CONTROL_16: SimdVecu8_16 = simd_const!([32u8; 16]);
const ASCII_MAX_16: SimdVecu8_16 = simd_const!([127u8; 16]);

#[inline(always)]
pub fn decode_string_chunk(
pub(crate) fn decode_string_chunk(
data: &[u8],
mut index: usize,
mut ascii_only: bool,
Expand Down
2 changes: 1 addition & 1 deletion crates/jiter/src/string_decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn decode_to_tape<'t, 'j>(
}

#[inline(always)]
pub fn decode_chunk(
pub(crate) fn decode_chunk(
data: &[u8],
index: usize,
ascii_only: bool,
Expand Down

0 comments on commit 3b59df6

Please sign in to comment.