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!: flatten the module structure #208

Merged
merged 2 commits into from
Sep 13, 2024
Merged

refactor!: flatten the module structure #208

merged 2 commits into from
Sep 13, 2024

Conversation

EdJoPaTo
Copy link
Collaborator

@EdJoPaTo EdJoPaTo commented Sep 12, 2024

Traits and clients are now on the top level. Error and response structs are moved to their dedicated modules. Also, a bunch of doc comments are added so the https://docs.rs/frankenstein entry has somewhat better docs.

This is a part of the changes of #203

BREAKING CHANGE: old modules for them are gone and import is only possible from the top level now. Responses moved from frankenstein::api_traits::MethodResponse to frankenstein::response::MethodResponse (and are also re-exported on top level).

traits and clients are now on the top level. Error and response structs are moved to their dedicated modules.
Also, a bunch of doc comments are added so the docs.rs/frankenstein entry has somewhat better docs

BREAKING CHANGE: old modules for them are gone and import is only possible from the top level.
Responses moved from frankenstein::api_traits::MethodResponse to frankenstein::response::MethodResponse (and are also reexported on top level).
pub use ureq;
pub use self::client_ureq::*;
pub use self::error::Error;
pub use self::objects::*;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

pub use self::… or pub use crate::…?

Copy link
Owner

Choose a reason for hiding this comment

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

for me both are ok

@ayrat555
Copy link
Owner

@EdJoPaTo can you please fix conflicts?

@ayrat555 ayrat555 merged commit fe877bc into master Sep 13, 2024
56 checks passed
@ayrat555 ayrat555 deleted the flatten-modules branch September 13, 2024 10:58
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