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

Flatten directory structures #229

Merged
merged 5 commits into from Apr 1, 2019
Merged

Flatten directory structures #229

merged 5 commits into from Apr 1, 2019

Conversation

@Manishearth
Copy link
Member

Manishearth commented Mar 31, 2019

The src/ model is nice for when your repository has a single crate in it, and the root directory gets cluttered with a bunch of random other files making it hard to find your code. However, this repo contains many crates all in their own folders, so there's no need for having src/ here. This is similar to what Servo does for all of its components/ crates, files fall directly under components/foo and not components/foo/src.

Overall this makes this repository nicer to navigate.

r? @ferjm

@Manishearth
Copy link
Member Author

Manishearth commented Mar 31, 2019

This will cause some conflicts in #227, I'm open to landing this without the last three commits if you don't want to deal with that (git's tooling around rename rebases can be weird)

@Manishearth
Copy link
Member Author

Manishearth commented Mar 31, 2019

We should also probably consistently name the crates, but I'll do that later.

@ferjm
Copy link
Member

ferjm commented Apr 1, 2019

This will cause some conflicts in #227, I'm open to landing this without the last three commits if you don't want to deal with that (git's tooling around rename rebases can be weird)

I would appreciate that, thanks. I can apply the changes after #227 lands.

@Manishearth Manishearth force-pushed the Manishearth:flatten branch from 67db355 to ab5d1cd Apr 1, 2019
@Manishearth
Copy link
Member Author

Manishearth commented Apr 1, 2019

@ferjm
Copy link
Member

ferjm commented Apr 1, 2019

Thanks!

@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Apr 1, 2019

📌 Commit ab5d1cd has been approved by ferjm

bors-servo added a commit that referenced this pull request Apr 1, 2019
Flatten directory structures

The `src/` model is nice for when your repository has a single crate in it, and the root directory gets cluttered with a bunch of random other files making it hard to find your code. However, this repo contains many crates all in their own folders, so there's no need for having `src/` here. This is similar to what Servo does for all of its `components/` crates, files fall directly under `components/foo` and not `components/foo/src`.

Overall this makes this repository nicer to navigate.

r? @ferjm
@bors-servo
Copy link
Contributor

bors-servo commented Apr 1, 2019

Testing commit ab5d1cd with merge 55986e2...

@bors-servo
Copy link
Contributor

bors-servo commented Apr 1, 2019

☀️ Test successful - checks-travis
Approved by: ferjm
Pushing 55986e2 to master...

@bors-servo bors-servo merged commit ab5d1cd into servo:master Apr 1, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
homu Test successful
Details
@bors-servo bors-servo mentioned this pull request Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.