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

refactor: improve module structure #203

Closed
wants to merge 9 commits into from
Closed

Conversation

EdJoPaTo
Copy link
Collaborator

@EdJoPaTo EdJoPaTo commented Sep 9, 2024

This also improves the documentation of the crate as there are no internal re-exports anymore and everything has a dedicated path.

BREAKING CHANGES:

  • There should now be only a single path to import a specific object.

This also improves the documentation of the crate as there are no internal re-exports anymore and everything has a dedicated path.

BREAKING CHANGES:
- There should now be only a single path to import a specific object.
- HttpError is integrated into the Error enum variant
They are exported on top level anyway, so there is no real need for the folders
@EdJoPaTo
Copy link
Collaborator Author

ParseMode is currently frankenstein::ParseMode but logically fits more into frankenstein::objects::ParseMode. Should probably be moved over?

Conflicts:
	examples/api_trait_implementation.rs
	src/api.rs
	src/client_reqwest.rs
	src/client_ureq.rs
while error is nicer, err prevents another line break so its sometimes preferred
the kind already contains this information
@ayrat555
Copy link
Owner

ParseMode is currently frankenstein::ParseMode but logically fits more into frankenstein::objects::ParseMode. Should probably be moved over?

@EdJoPaTo sounds good

Conflicts:
	src/api.rs
	src/client_reqwest.rs
	src/client_ureq.rs
	src/lib.rs
Conflicts:
	src/client_reqwest.rs
	src/client_ureq.rs
	src/error.rs
	src/lib.rs
	src/objects.rs
	src/parameters.rs
	src/parse_mode.rs
	src/response.rs
	src/trait_async.rs
	src/trait_sync.rs
@EdJoPaTo
Copy link
Collaborator Author

I think this can be closed soon as all its improvements are slowly added by their own PR.

@EdJoPaTo
Copy link
Collaborator Author

EdJoPaTo commented Sep 17, 2024

#216 and #217 contain the remaining improvements in their own PR.

@EdJoPaTo EdJoPaTo closed this Sep 17, 2024
@EdJoPaTo EdJoPaTo deleted the simplify-imports branch September 17, 2024 14:59
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.

2 participants