Add a profile_traits crate to reduce compile times.

A rebuild after touching components/profile/mem.rs now takes 48 seconds (and
only rebuilds `profile` and `servo`) which is much lower than it used to be.
In comparison, a rebuild after touching components/profile_traits/mem.rs takes
294 seconds and rebuilds many more crates.

This change also removes some unnecessary crate dependencies in `net` and
`net_traits`.
This commit is contained in:
Nicholas Nethercote 2015-04-29 21:36:03 -07:00
parent 826b722202
commit 092507d23c
37 changed files with 269 additions and 225 deletions

View file

@ -7,6 +7,9 @@ authors = ["The Servo Project Developers"]
name = "profile"
path = "lib.rs"
[dependencies.profile_traits]
path = "../profile_traits"
[dependencies.task_info]
path = "../../support/rust-task_info"
@ -17,4 +20,3 @@ path = "../util"
libc = "*"
regex = "0.1.14"
time = "0.1.12"
url = "0.2.16"