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

Clean up serenity::model::prelude #2429

Merged
merged 2 commits into from
May 12, 2023
Merged

Conversation

mkrasnitski
Copy link
Collaborator

Cleans up the model prelude by removing some re-exports, namely:

  • Don't re-export all the submodules of model
  • Don't re-export 3rd party types that are only used internally
  • Define the Color type alias in model::colour
  • Clean up collisions around automod::EventType by not glob-exporting from guild::automod::*

Note that guild::audit_log and guild::automod still end up getting re-exported via guild::*, but I'm not sure how to address that without manually re-exporting each type from guild, which would be annoying.

@github-actions github-actions bot added gateway Related to the `gateway` module. model Related to the `model` module. labels May 11, 2023
@github-actions github-actions bot added the utils Related to the `utils` module. label May 11, 2023
@mkrasnitski
Copy link
Collaborator Author

Weird CI failure, I suspect some weird import path in the old prelude was responsible

@arqunis arqunis added enhancement An improvement to Serenity. breaking change The public API is changed, resulting in miscompilations or unexpected new behaviour for users labels May 12, 2023
@arqunis arqunis merged commit 44f9127 into serenity-rs:next May 12, 2023
21 checks passed
@mkrasnitski mkrasnitski deleted the model-prelude branch May 12, 2023 23:44
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request May 18, 2023
Cleans up the model prelude by removing some re-exports, namely:

- Don't re-export all the submodules of `model`
- Don't re-export 3rd party types that are only used internally
- Define the `Color` type alias in `model::colour`
- Clean up collisions around `automod::EventType` by not glob-exporting from `guild::automod::*`

Note that `guild::audit_log` and `guild::automod` still end up getting re-exported via `guild::*`, but I'm not sure how to address that without manually re-exporting each type from `guild`, which would be annoying.
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request May 19, 2023
Cleans up the model prelude by removing some re-exports, namely:

- Don't re-export all the submodules of `model`
- Don't re-export 3rd party types that are only used internally
- Define the `Color` type alias in `model::colour`
- Clean up collisions around `automod::EventType` by not glob-exporting from `guild::automod::*`

Note that `guild::audit_log` and `guild::automod` still end up getting re-exported via `guild::*`, but I'm not sure how to address that without manually re-exporting each type from `guild`, which would be annoying.
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request May 30, 2023
Cleans up the model prelude by removing some re-exports, namely:

- Don't re-export all the submodules of `model`
- Don't re-export 3rd party types that are only used internally
- Define the `Color` type alias in `model::colour`
- Clean up collisions around `automod::EventType` by not glob-exporting from `guild::automod::*`

Note that `guild::audit_log` and `guild::automod` still end up getting re-exported via `guild::*`, but I'm not sure how to address that without manually re-exporting each type from `guild`, which would be annoying.
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request Sep 21, 2023
Cleans up the model prelude by removing some re-exports, namely:

- Don't re-export all the submodules of `model`
- Don't re-export 3rd party types that are only used internally
- Define the `Color` type alias in `model::colour`
- Clean up collisions around `automod::EventType` by not glob-exporting from `guild::automod::*`

Note that `guild::audit_log` and `guild::automod` still end up getting re-exported via `guild::*`, but I'm not sure how to address that without manually re-exporting each type from `guild`, which would be annoying.
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request Oct 17, 2023
Cleans up the model prelude by removing some re-exports, namely:

- Don't re-export all the submodules of `model`
- Don't re-export 3rd party types that are only used internally
- Define the `Color` type alias in `model::colour`
- Clean up collisions around `automod::EventType` by not glob-exporting from `guild::automod::*`

Note that `guild::audit_log` and `guild::automod` still end up getting re-exported via `guild::*`, but I'm not sure how to address that without manually re-exporting each type from `guild`, which would be annoying.
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request Oct 24, 2023
Cleans up the model prelude by removing some re-exports, namely:

- Don't re-export all the submodules of `model`
- Don't re-export 3rd party types that are only used internally
- Define the `Color` type alias in `model::colour`
- Clean up collisions around `automod::EventType` by not glob-exporting from `guild::automod::*`

Note that `guild::audit_log` and `guild::automod` still end up getting re-exported via `guild::*`, but I'm not sure how to address that without manually re-exporting each type from `guild`, which would be annoying.
arqunis pushed a commit to arqunis/serenity that referenced this pull request Oct 24, 2023
Cleans up the model prelude by removing some re-exports, namely:

- Don't re-export all the submodules of `model`
- Don't re-export 3rd party types that are only used internally
- Define the `Color` type alias in `model::colour`
- Clean up collisions around `automod::EventType` by not glob-exporting from `guild::automod::*`

Note that `guild::audit_log` and `guild::automod` still end up getting re-exported via `guild::*`, but I'm not sure how to address that without manually re-exporting each type from `guild`, which would be annoying.
arqunis pushed a commit to arqunis/serenity that referenced this pull request Oct 24, 2023
Cleans up the model prelude by removing some re-exports, namely:

- Don't re-export all the submodules of `model`
- Don't re-export 3rd party types that are only used internally
- Define the `Color` type alias in `model::colour`
- Clean up collisions around `automod::EventType` by not glob-exporting from `guild::automod::*`

Note that `guild::audit_log` and `guild::automod` still end up getting re-exported via `guild::*`, but I'm not sure how to address that without manually re-exporting each type from `guild`, which would be annoying.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change The public API is changed, resulting in miscompilations or unexpected new behaviour for users enhancement An improvement to Serenity. gateway Related to the `gateway` module. model Related to the `model` module. utils Related to the `utils` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants