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

Split code into modules #17

Closed
2 of 3 tasks
retep998 opened this issue Dec 2, 2014 · 6 comments
Closed
2 of 3 tasks

Split code into modules #17

retep998 opened this issue Dec 2, 2014 · 6 comments
Assignees

Comments

@retep998
Copy link
Owner

retep998 commented Dec 2, 2014

Currently lib.rs is a massive file which makes editing difficult, and can bring certain editors to a crawl.

  • Move code from each header into separate module
  • Split libraries into separate crates
  • Get rid of ugly :: everywhere as soon as glob imports aren't broken.
@retep998 retep998 self-assigned this Dec 2, 2014
@retep998
Copy link
Owner Author

retep998 commented Jan 18, 2015

A design plan has been figured out which doesn't depend on recursive imports. However once recursive imports work correctly the code can be cleaned up.
cc rust-lang/rust#4865
cc rust-lang/rfcs#889

@retep998
Copy link
Owner Author

retep998 commented Sep 7, 2015

Glob imports will be working correctly in Rust 1.4, so hopefully next year I can begin the transition.

@Eh2406
Copy link
Contributor

Eh2406 commented Jan 21, 2016

What are the next steps, now that we are well past 1.4?

@retep998
Copy link
Owner Author

First I stop procrastinating and land the various PRs that are hanging around in limbo. Then once I'm caught up I experiment with removing :: everywhere.

@retep998
Copy link
Owner Author

retep998 commented Feb 6, 2016

Actually I think I'd like to move things further into submodules based on the subfolder names so it would be winapi::um::d3d11 for example instead of just winapi::d3d11. This might break any code that refers to the submodules explicitly so I'll probably have to wait for winapi 0.3 for this change.

@retep998
Copy link
Owner Author

Replaced by #316

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

No branches or pull requests

2 participants