Skip to content

Finish removing unsafe code#11

Merged
awolverp merged 8 commits intoawolverp:masterfrom
andersk:unsafe
Apr 14, 2026
Merged

Finish removing unsafe code#11
awolverp merged 8 commits intoawolverp:masterfrom
andersk:unsafe

Conversation

@andersk
Copy link
Copy Markdown
Contributor

@andersk andersk commented Apr 13, 2026

andersk added 8 commits April 13, 2026 14:53
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Using this incorrectly may lead to weird behavior but not memory
unsafety.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Tendril is neither Send nor Sync, and it is unsound to pretend
otherwise.  Instead, we make it the user's responsibility not to use a
parser from multiple threads.

Fixes awolverp#10.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This is unnecessary because PyParser is not Send or Sync.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This is unnecessary because PySelect is not Send or Sync.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
The documentation says this library avoids the use of unsafe code
blocks; ensure we keep that promise.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@awolverp awolverp merged commit e99cabc into awolverp:master Apr 14, 2026
2 checks passed
@andersk andersk deleted the unsafe branch April 14, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unsound impl Sync for types based on Tendril

2 participants