Skip to content

Commit 26c93c6

Browse files
committed
cargo update
1 parent 314dc9d commit 26c93c6

File tree

9 files changed

+42
-40
lines changed

9 files changed

+42
-40
lines changed

.github/workflows/linux.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ jobs:
6868
options: --user 0
6969
steps:
7070
- run: yum install -y clang lld
71-
- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2023-05-31 --profile minimal -y
72-
- run: rustup component add rust-src --toolchain nightly-2023-05-31-x86_64-unknown-linux-gnu
71+
- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2023-06-30 --profile minimal -y
72+
- run: rustup component add rust-src --toolchain nightly-2023-06-30-x86_64-unknown-linux-gnu
7373
- uses: actions/checkout@v3
7474

7575
- name: build-std
@@ -139,7 +139,7 @@ jobs:
139139
RUSTFLAGS: "-C target-feature=-crt-static"
140140
CARGO_UNSTABLE_SPARSE_REGISTRY: "true"
141141
with:
142-
rust-toolchain: nightly-2023-05-31
142+
rust-toolchain: nightly-2023-06-30
143143
rustup-components: rust-src
144144
target: ${{ matrix.platform.target }}
145145
manylinux: musllinux_1_1
@@ -196,7 +196,7 @@ jobs:
196196
{
197197
arch: 'armv7',
198198
target: 'armv7-unknown-linux-gnueabihf',
199-
cflags: '-Os',
199+
cflags: '-Os -fstrict-aliasing',
200200
},
201201
{
202202
arch: 'ppc64le',
@@ -228,7 +228,7 @@ jobs:
228228
CARGO_FEATURE_YYJSON: "1"
229229
with:
230230
target: ${{ matrix.target.target }}
231-
rust-toolchain: nightly-2023-05-31
231+
rust-toolchain: nightly-2023-06-30
232232
rustup-components: rust-src
233233
manylinux: auto
234234
args: --release --strip --out=dist -i python${{ matrix.python.version }}

.github/workflows/next.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
image: registry.hub.docker.com/library/python:3.12-rc-bullseye
2222
options: --user 0
2323
steps:
24-
- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2023-05-31 --profile minimal -y
24+
- run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2023-06-30 --profile minimal -y
2525
- run: python3 -m pip install --user --upgrade pip "maturin>=1,<2" wheel
2626
- uses: actions/checkout@v3
2727

Cargo.lock

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ encoding_rs = { version = "0.8", default_features = false }
5454
itoa = { version = "1", default_features = false }
5555
itoap = { version = "1", features = ["std", "simd"] }
5656
once_cell = { version = "1", default_features = false, features = ["race"] }
57-
pyo3-ffi = { version = "0.19", default_features = false, features = ["extension-module"]}
57+
pyo3-ffi = { version = "^0.19.1", default_features = false, features = ["extension-module"]}
5858
ryu = { version = "1", default_features = false }
5959
serde = { version = "1", default_features = false }
6060
serde_json = { version = "1", default_features = false, features = ["std", "float_roundtrip"] }
@@ -63,7 +63,7 @@ smallvec = { version = "^1.10", default_features = false, features = ["union", "
6363

6464
[build-dependencies]
6565
cc = { version = "1" }
66-
pyo3-build-config = { version = "0.19" }
66+
pyo3-build-config = { version = "^0.19.1" }
6767
version_check = { version = "0.9" }
6868

6969
[profile.release]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ b'"1970-01-01T00:00:00Z"'
576576
#### Fragment
577577

578578
`orjson.Fragment` includes already-serialized JSON in a document. This is an
579-
efficient way include JSON blobs from a cache, JSONB field, or separately
579+
efficient way to include JSON blobs from a cache, JSONB field, or separately
580580
serialized object without first deserializing to Python objects via `loads()`.
581581

582582
```python
@@ -1195,7 +1195,7 @@ It benefits from also having a C build environment to compile a faster
11951195
deserialization backend. See this project's `manylinux_2_28` builds for an
11961196
example using clang and LTO.
11971197

1198-
The project's own CI tests against `nightly-2023-05-31` and stable 1.60. It
1198+
The project's own CI tests against `nightly-2023-06-30` and stable 1.60. It
11991199
is prudent to pin the nightly version because that channel can introduce
12001200
breaking changes.
12011201

ci/azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
variables:
2-
toolchain: nightly-2023-05-31
2+
toolchain: nightly-2023-06-30
33

44
jobs:
55

script/develop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ rm -f target/wheels/*
44

55
export CC="clang"
66
export CFLAGS="-O2 -fno-plt -flto=thin"
7-
export LDFLAGS="-O2 -flto=thin -fuse-ld=lld -Wl,--as-needed"
7+
export LDFLAGS="${CFLAGS} -fuse-ld=lld -Wl,--as-needed"
88
export RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=lld"
99

1010
maturin build -i python3 --release "$@"

src/ffi/fragment.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ pub unsafe extern "C" fn orjson_fragmenttype_new() -> *mut PyTypeObject {
129129
tp_descr_set: None,
130130
tp_dictoffset: 0,
131131
tp_alloc: None,
132+
#[cfg(Py_3_12)]
133+
tp_watched: 0,
132134
});
133135
let ob_ptr = Box::into_raw(ob);
134136
PyType_Ready(ob_ptr);

test/test_numpy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def test_numpy_array_non_contiguous_message(self):
375375
)
376376

377377
def test_numpy_array_unsupported_dtype(self):
378-
array = numpy.array([[1, 2], [3, 4]], numpy.float16)
378+
array = numpy.array([[1, 2], [3, 4]], numpy.float16) # type: ignore
379379
with pytest.raises(orjson.JSONEncodeError) as cm:
380380
orjson.dumps(array, option=orjson.OPT_SERIALIZE_NUMPY)
381381
assert "unsupported datatype in numpy array" in str(cm)
@@ -708,7 +708,7 @@ def test_numpy_datetime_nat(self):
708708
orjson.dumps([numpy.datetime64("NaT")], option=orjson.OPT_SERIALIZE_NUMPY)
709709

710710
def test_numpy_repeated(self):
711-
data = numpy.array([[[1, 2], [3, 4], [5, 6], [7, 8]]], numpy.int64)
711+
data = numpy.array([[[1, 2], [3, 4], [5, 6], [7, 8]]], numpy.int64) # type: ignore
712712
for _ in range(0, 3):
713713
assert (
714714
orjson.dumps(

0 commit comments

Comments
 (0)