Skip to content

Conversation

@sunfishcode
Copy link
Member

Use CStr and CString instead, now that nightly has then in core and
alloc, respectively.

Fixes #336.

@sunfishcode
Copy link
Member Author

This also removes the need for several scary featuress in src/lib.rs, about 58 unsafe blocks, and almost 2000 lines of code.

@sunfishcode sunfishcode force-pushed the sunfishcode/remove-zstr branch from 5116523 to 6da94be Compare May 21, 2022 20:45
@sunfishcode sunfishcode added the semver bump Issues that will require a semver-incompatible fix label May 21, 2022
Use `CStr` and `CString` instead, now that nightly has then in core and
alloc, respectively.

Fixes #336.
--no-default-features disables "std", and building without "std" will
require nightly now.
@sunfishcode sunfishcode force-pushed the sunfishcode/remove-zstr branch from 503ef01 to f83f5b1 Compare May 27, 2022 04:06
Copy link
Contributor

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me; one less string type to keep in mind is good overall.

@sunfishcode sunfishcode merged commit b437157 into main May 27, 2022
@sunfishcode sunfishcode deleted the sunfishcode/remove-zstr branch May 27, 2022 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver bump Issues that will require a semver-incompatible fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace ZStr with CStr

3 participants