Hacker News new | ask | show | jobs
by pornel 646 days ago
Rust projects are pretty easy to deploy. It's just LLVM underneath, and the product is similar to clang-built code. You get a library, static or dynamic, that you can link with anything that can link with C.

Rust projects are much easier to build, especially when supporting multiple platforms. I've converted projects to Rust to make them easier to build and deploy.

1 comments

Does Cargo re-use dependencies today? Last time I tried to build medium-sized Rust projects, it pulled hundreds of dependencies each time, even the same ones. It took up too much space, and took too long to build.
Yes, and it always has. If you do a second build, it will not rebuild those dependencies again.

> even the same ones.

Rust supports multiple versions of the same dependency, so that may be what you observed.

Yeah, I believe it was that.