Skip to content

Commit 3b59df6

Browse files
authored
add MSRV of 1.73.0 (#114)
1 parent 8c2cdf1 commit 3b59df6

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,33 @@ on:
99
pull_request: {}
1010

1111
jobs:
12+
resolve:
13+
14+
runs-on: ubuntu-latest
15+
outputs:
16+
MSRV: ${{ steps.resolve-msrv.outputs.MSRV }}
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: set up python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.12'
24+
25+
- name: resolve MSRV
26+
id: resolve-msrv
27+
run:
28+
echo MSRV=`python -c 'import tomllib; print(tomllib.load(open("Cargo.toml", "rb"))["workspace"]["package"]["rust-version"])'` >> $GITHUB_OUTPUT
29+
1230
test-linux:
31+
needs: [resolve]
1332
name: test rust-${{ matrix.rust-version }} on linux
1433
strategy:
1534
fail-fast: false
1635
matrix:
1736
rust-version: [stable, nightly]
37+
include:
38+
- rust-version: ${{ needs.resolve.outputs.MSRV }}
1839

1940
runs-on: ubuntu-latest
2041

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ keywords = ["JSON", "parsing", "deserialization", "iter"]
1515
categories = ["parser-implementations", "parsing"]
1616
homepage = "https://github.com/pydantic/jiter/"
1717
repository = "https://github.com/pydantic/jiter/"
18+
rust-version = "1.73.0"
1819

1920
[profile.bench]
2021
debug = true

crates/jiter/src/simd_aarch64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const CONTROL_16: SimdVecu8_16 = simd_const!([32u8; 16]);
192192
const ASCII_MAX_16: SimdVecu8_16 = simd_const!([127u8; 16]);
193193

194194
#[inline(always)]
195-
pub fn decode_string_chunk(
195+
pub(crate) fn decode_string_chunk(
196196
data: &[u8],
197197
mut index: usize,
198198
mut ascii_only: bool,

crates/jiter/src/string_decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn decode_to_tape<'t, 'j>(
146146
}
147147

148148
#[inline(always)]
149-
pub fn decode_chunk(
149+
pub(crate) fn decode_chunk(
150150
data: &[u8],
151151
index: usize,
152152
ascii_only: bool,

0 commit comments

Comments
 (0)