News for hackers. Stuff that matters.
Re:Shipping Rust code in Firefox by whateveracct on Tuesday July 12, 2016 @01:42PM (#12080955)
Did they just..get rid of it? I can't find it either.
Re:Shipping Rust code in Firefox by Manishearth on Tuesday July 12, 2016 @01:56PM (#12081086)
The C++ code is in servo/mozjs and servo/skia (though that dependency doesn't get used on a default run now IIRC), as well as some other scattered deps and native linkages (fontconfig, harfbuzz, openssl, etc)

We've split the code up in crates so servo/servo is only a fraction of the story. Things in servo/servo are usually components which don't make much sense as something you'd independently use, and are very servo-specific and/or tightly coupled. But a lot of our Rust code is outside the tree, and any C++ modules we use are too.

Also, he vast majority of code in servo/servo is actually HTML/JS test code, vendored in tree from w3c/web-platform-tests.

Re:Shipping Rust code in Firefox by szatkus on Tuesday July 12, 2016 @01:48PM (#12081008)
No, it works for other repostiories.

Probably Github uses cloc. I downloaded the code (over 500MB, insane!) and cloc throws an error.

Re:Shipping Rust code in Firefox by steveklabnik on Tuesday July 12, 2016 @01:56PM (#12081087)

  > and cloc throws an error
tokei is a similar program that's parallel, and written in Rust. It takes 11 seconds to run on my machine, and shows

https://gist.github.com/steveklabnik/b4ede6f13c9d609edc61d74...

(using a gist since the output is huge, and see Manish's comment as well)

Re:Shipping Rust code in Firefox by szatkus on Tuesday July 12, 2016 @04:31PM (#12082085)
Neat. Problem with code in Rust, resolved by project in Rust :)
Re:Shipping Rust code in Firefox by Manishearth on Tuesday July 12, 2016 @02:00PM (#12081112)
This is including the cargo cache dir?
Re:Shipping Rust code in Firefox by steveklabnik on Tuesday July 12, 2016 @02:09PM (#12081173)
I built Servo last week, I ran "git fetch upstream && git reset --hard upstream/master && git submodule update" and then "tokei .". So, unless Servo puts its cache in the dir, I would guess not, no.
Re:Shipping Rust code in Firefox by Manishearth on Tuesday July 12, 2016 @02:17PM (#12081225)
I think by default servo does put the cache in the dir. So yeah, this would be an accurate estimate.

Though not all that rust code is written specifically for servo, and a lot of that C/++ code is winapi and skia. winapi is autogenerated, and skia isn't used by default anymore iirc.