Commit Graph
489 Commits
Author SHA1 Message Date
Jeong, YunWon 898fe85f40 More openssl impl (#6464)
* Add openssl build to CI

* more openssl impls
2025-12-21 00:38:50 +09:00
Jeong, YunWon 6660170bf8 Share more ssl consts and fix openssl (#6462)
* Reuse SSL error names

* Share ssl error codes

* fix ssl

* fix openssl
2025-12-20 22:06:22 +09:00
Jeong, YunWon 70b93898d4 ctypes overhaul (#6450) 2025-12-19 14:10:55 +09:00
Jeong, YunWon 9e439667da Fix openssl build and shared ssl/error.rs (#6456)
* Fix openssl

* shared error
2025-12-18 10:44:56 +09:00
Jeong, YunWon a4c93dfbbf Remove useless &PyRef patterns (#6455)
* fix &PyTypeRef

* Remove useless &PyObjectRef

* Remove useless &PyRef
2025-12-17 20:58:00 +09:00
Jeong, YunWonandsnowapril 246fab63f7 flag: DISALLOW_INSTANTIATION (#6445)
* Set tp_new slot when build heap/static type

* Improve type tp_call impl to check tp_new existence and error if not exist

* Set DISALLOW_INSTANTIATION flag on several types according to cpython impl

* Allow #[pyslot] for function pointer

* Fix DISALLOW_INSTANTIATION

---------

Signed-off-by: snowapril <sinjihng@gmail.com>
Co-authored-by: snowapril <sinjihng@gmail.com>
2025-12-17 00:12:03 +09:00
Jeong, YunWon 550497eb79 Use parking_lot in faulthandler (#6438) 2025-12-15 17:56:48 +09:00
Jeong, YunWon d36a2cffde New subclass payload layout (#6319)
* PySubclass

* Add base payload to exception

* PyStructSequecne base

* redefine PyOSError and subtypes

* heap exception new

* rework UNSUPPORTED_OPERATION
2025-12-14 19:17:14 +09:00
Jeong, YunWon 752c0f68fd fix windows locale 2025-12-12 20:26:47 +09:00
Jeong, YunWon 5a5b721576 Fix misused PyTypeError (#6412) 2025-12-12 17:23:27 +09:00
Jeong, YunWon 772b92edde Fix windows socket (#6408)
* fix _path_splitroot

* Fix windows socket
2025-12-12 10:37:40 +09:00
Jeong, YunWon 2ff1fba6ed Faulthandler (#6406) 2025-12-12 09:23:59 +09:00
Jeong, YunWon bfd873a8b8 a few unreachable->unimplemented, clippy (#6405)
* unreachable -> unimplemented

* Fix clippy on 1.92
2025-12-12 01:13:28 +09:00
Jeong, YunWon 04d55fa5c6 Faulthandler (#6400) 2025-12-12 00:08:55 +09:00
Jeong, YunWon 5f496c955c PyType::py_new to return Self (#6398)
* PyType::py_new to return Self

* int/float/complex
2025-12-11 22:19:11 +09:00
Jeong, YunWon a64cfac2ca Fix multiprocessing closesocket, set_errno (#6388)
* Fix multiprocessing closesocket

* set_errno
2025-12-10 10:02:53 +09:00
Jeong, YunWon 14232ad0d2 new_last_{os,errno}_error (#6381)
* new_last_{os,errno}_error

* Remove os::errno_err

* enable ssl multithread test
2025-12-10 09:12:38 +09:00
dependabot[bot] f723974924 Bump system-configuration from 0.6.1 to 0.7.0 (#6385)
Bumps [system-configuration](https://github.com/mullvad/system-configuration-rs) from 0.6.1 to 0.7.0.
- [Changelog](https://github.com/mullvad/system-configuration-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mullvad/system-configuration-rs/compare/v0.6.1...v0.7.0)

---
updated-dependencies:
- dependency-name: system-configuration
  dependency-version: 0.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-10 09:01:29 +09:00
dependabot[bot] 42b969b088 Bump oid-registry from 0.7.1 to 0.8.1 (#6383)
Bumps [oid-registry](https://github.com/rusticata/oid-registry) from 0.7.1 to 0.8.1.
- [Commits](https://github.com/rusticata/oid-registry/compare/oid-registry-0.7.1...oid-registry-0.8.1)

---
updated-dependencies:
- dependency-name: oid-registry
  dependency-version: 0.8.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-10 09:01:05 +09:00
Jeong, YunWon 5365805312 minimize ssl lock (#6376) 2025-12-09 23:01:12 +09:00
Jeong, YunWon db95946b8d Fix SSL deferred error (#6371)
* Fix SSL to return deferred error on the right time

* lease conn_guard

* SslError::Io

* is_connection_closed
2025-12-09 21:59:31 +09:00
dependabot[bot] 904cc0a575 Bump pem-rfc7468 from 0.7.0 to 1.0.0 (#6369)
Bumps [pem-rfc7468](https://github.com/RustCrypto/formats) from 0.7.0 to 1.0.0.
- [Commits](https://github.com/RustCrypto/formats/compare/pem-rfc7468/v0.7.0...pem-rfc7468/v1.0.0)

---
updated-dependencies:
- dependency-name: pem-rfc7468
  dependency-version: 1.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-09 10:46:14 +09:00
dependabot[bot] df7694ca51 Bump x509-parser from 0.16.0 to 0.18.0 (#6364)
Bumps [x509-parser](https://github.com/rusticata/x509-parser) from 0.16.0 to 0.18.0.
- [Changelog](https://github.com/rusticata/x509-parser/blob/x509-parser-0.18.0/CHANGELOG.md)
- [Commits](https://github.com/rusticata/x509-parser/compare/x509-parser-0.16.0...x509-parser-0.18.0)

---
updated-dependencies:
- dependency-name: x509-parser
  dependency-version: 0.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-09 06:24:38 +09:00
dependabot[bot] d432cfd350 Bump uuid from 1.18.1 to 1.19.0 (#6362)
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.18.1 to 1.19.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/v1.18.1...v1.19.0)

---
updated-dependencies:
- dependency-name: uuid
  dependency-version: 1.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-09 06:08:04 +09:00
Jeong, YunWon abfd148d63 SSLError (#6351) 2025-12-09 02:55:34 +09:00
dependabot[bot] 2a425351e2 Bump phf from 0.11.3 to 0.13.1 (#6345)
Bumps [phf](https://github.com/rust-phf/rust-phf) from 0.11.3 to 0.13.1.
- [Release notes](https://github.com/rust-phf/rust-phf/releases)
- [Changelog](https://github.com/rust-phf/rust-phf/blob/main/RELEASE_PROCESS.md)
- [Commits](https://github.com/rust-phf/rust-phf/compare/phf-v0.11.3...v0.13.1)

---
updated-dependencies:
- dependency-name: phf
  dependency-version: 0.13.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-08 23:55:58 +09:00
dependabot[bot] 4e6ef4150d Bump webpki-roots from 0.26.11 to 1.0.4 (#6347)
Bumps [webpki-roots](https://github.com/rustls/webpki-roots) from 0.26.11 to 1.0.4.
- [Release notes](https://github.com/rustls/webpki-roots/releases)
- [Commits](https://github.com/rustls/webpki-roots/compare/v/0.26.11...v/1.0.4)

---
updated-dependencies:
- dependency-name: webpki-roots
  dependency-version: 1.0.4
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-08 23:09:23 +09:00
Jiseok CHOI 7250b1f854 refactor(sqlite): add check_cursor_valid method for cursor state validation (#6342)
Extract cursor validity check into a separate method that doesn't hold
the lock. This is useful for executescript which only needs to verify
the cursor state but doesn't need to modify CursorInner.

- Add check_cursor_valid() method that checks if cursor is initialized
  and not closed without retaining the mutex guard
- Use check_cursor_valid() in executescript instead of inner() since
  executescript doesn't modify CursorInner
2025-12-08 21:54:40 +09:00
Jiseok CHOI a14dd5921d fix(sqlite): Raise ProgrammingError when operating on a closed cursor (#6339) 2025-12-08 00:14:31 +09:00
Jeong, YunWon cb7450df31 ssl module for windows (#6332)
* SSL for windows

* mark expected failure on test_ssl_in_multiple_threads
2025-12-08 00:08:53 +09:00
Jeong, YunWon 590da47499 pin flate2 under 1.1.5 (#6335) 2025-12-07 12:10:09 +09:00
Jeong, YunWon b3141d1231 mmap for windows (#6329) 2025-12-06 09:26:33 +09:00
Jeong, YunWon c826f9d809 PyStructSequence Compatibility (#6327)
* Fix local time

* PyStructSequence
2025-12-05 22:44:00 +09:00
Wildan M 0e6e256f8e Fix redox compilation in stdlib (#6298) 2025-11-28 08:41:22 +09:00
dependabot[bot] 817f91b5bf Bump xml from 1.0.1 to 1.2.0 (#6292)
Bumps [xml](https://github.com/kornelski/xml-rs) from 1.0.1 to 1.2.0.
- [Changelog](https://github.com/kornelski/xml-rs/blob/main/Changelog.md)
- [Commits](https://github.com/kornelski/xml-rs/compare/1.0.1...1.2.0)

---
updated-dependencies:
- dependency-name: xml
  dependency-version: 1.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-25 05:29:53 +09:00
Jiseok CHOI f61b62e5a2 Ensure sqlite blob methods respect closed connections (#6290) 2025-11-24 00:04:43 +09:00
Jiseok CHOI a9469a20d5 Fix sqlite connection reinitialization (#6288)
* Fix sqlite connection reinitialization

* Align sqlite connection reinit with CPython

* Enable sqlite test_connection_bad_reinit

* Fix sqlite reinit flag without threading

* Use stronger memory ordering for initialized flag synchronization
2025-11-22 22:13:06 +09:00
Jiseok CHOI 567fb4dec0 fix(sqlite): raise ProgrammingError when operating on a blob with a closed connection, (#6286)
Fixed #6285
2025-11-22 20:42:24 +09:00
Shahar Naveh 88eca9693a Move stdlib -> crates/stdlib (#6268) 2025-11-16 23:25:45 +09:00