News for hackers. Stuff that matters.
Re:Rust: Not So Great For Codec Implementing by binarycrusader on Tuesday August 01, 2017 @02:27PM (#14903785)
The short version is that a component distributed with an embedded copy of its dependencies means a single legal review since it's a snapshot in time of a particular version of that component and its dependencies.

A component that instead references its dependencies and that have their own release schedule/versions, etc. requires a legal review for that component and each of its dependencies.

This has been true at multiple employers I've worked for, so seems unlikely to be a consideration unique to my current employer.

Re:Rust: Not So Great For Codec Implementing by pcwalton on Tuesday August 01, 2017 @03:13PM (#14904293)
Again, that's what the Rust Platform is for. It's a better solution than copying code, because it doesn't throw away all of the benefits of Cargo just to make some legal policies at some large companies a little easier.
Re:Rust: Not So Great For Codec Implementing by binarycrusader on Tuesday August 01, 2017 @10:35PM (#14907485)
We're going to have to agree to disagree.

This is where I actually prefer Go's "vendor" approach to dependencies. It would be great if rust / cargo eventually had the same and more authors adopted it or simply copied their little dependencies instead of having external dependencies on them.

Something like this proposed command, except for crate maintenance instead of distribution:

https://users.rust-lang.org/t/cargo-cook-subcommand/10288

Re:Rust: Not So Great For Codec Implementing by pcwalton on Wednesday August 02, 2017 @12:17AM (#14907883)
I sincerely hope that people never start copying code into their packages. I see virtually no upsides, except for making it easier to dodge bureaucratic hurdles at some big companies, and a huge number of downsides (basically forgoing all the benefits of Cargo).
Re:Rust: Not So Great For Codec Implementing by eddyb on Wednesday August 02, 2017 @02:39AM (#14908429)
FWIW `cargo vendor` already exists, just not part of Cargo itself, but rather a tool by one of the core devs.

It's even used for releasing the official Rust tarballs as we now employ crates.io dependencies in the standard library and the compiler.

Re:Rust: Not So Great For Codec Implementing by tmzt on Wednesday August 02, 2017 @04:07PM (#14914120)
Does it do more than using relative paths in a Cargo.toml would do?

I think this thread is about copying and pasting code versus using a small library in the Go case, which might be a philosphical difference with Rust.

It might help to point out that vendored crates are compiled from source making the required review process referenced by that poster just as possible with server crates.

Re:Rust: Not So Great For Codec Implementing by steveklabnik on Tuesday August 01, 2017 @02:31PM (#14903830)
Gotcha, thanks.