Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full rewrite of the crate #23

Merged
merged 19 commits into from
Jan 27, 2024
Merged

Full rewrite of the crate #23

merged 19 commits into from
Jan 27, 2024

Conversation

lylythechosenone
Copy link
Collaborator

@lylythechosenone lylythechosenone commented Jan 26, 2024

This crate is not in great shape. It has 4 unresolved issues, all of which are UB. It also does not correctly support platform-specific features. The API is confusing, and leaves much to be desired.

In this rewrite, I took into account my own struggles with the crate, as well as comments from other users. The history of this crate is rough, but I hope we can turn it around starting now.

I'll note that my changes are heavily opinionated (rustfmt, clippy with -D warnings, etc.), so feel free to bring up your concerns if you have any. I also have not implemented any tests, but I figure we can implement tests through the barebones project.

This fixes #12 and fixes #14, and indirectly fixes #13 and indirectly fixes #16 by way of removing them.

Edit: GitHub doesn't understand "and"

@lylythechosenone
Copy link
Collaborator Author

Alright, everything should be done now. Merge at your earliest convenience.

Copy link
Collaborator

@48cf 48cf left a comment

Choose a reason for hiding this comment

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

Please make up your mind about the spacing in between items and whether the doc comments should be put before or after attributes. The spacing is inconsistent with multiple items having no spacing in between and some doc comments being put between the attributes and the item they belong to

src/file.rs Outdated Show resolved Hide resolved
src/file.rs Show resolved Hide resolved
src/file.rs Outdated Show resolved Hide resolved
src/request.rs Show resolved Hide resolved
src/response.rs Show resolved Hide resolved
@lylythechosenone
Copy link
Collaborator Author

Yeah sorry about that, I thought I caught all of those. I'll do a regex search I guess.

@lylythechosenone lylythechosenone requested a review from 48cf January 27, 2024 17:34
A user can attempt the conversion themself
@xvanc xvanc merged commit a0da169 into jasondyoungberg:master Jan 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants