News for hackers. Stuff that matters.
Re:Rust Dependencies Scare Me by pjmlp on Friday May 09, 2025 @06:01PM (#43941321)
Kind of true, when not using vcpkg/conan.
Re:Rust Dependencies Scare Me by hedora on Friday May 09, 2025 @09:54PM (#43942641)
Don’t forget cmake. (It makes adding dependencies easy, and everything else basically impossible)
Re:Rust Dependencies Scare Me by pjmlp on Saturday May 10, 2025 @02:20AM (#43943587)
Sure, despite all the hate it gets, except for IDE project files, it is the best experience in C and C++ build tools since forever, including IDE integration just like those project files.

I thought the whole UNIX mentality was worse is better.

No build tool is without issues, my pain points with cargo, are always compiling from source, build caching requires additional work to setup, as soon as it is more than pure Rust, we get a build.rs file that can get quite creative.

Re:Rust Dependencies Scare Me by Ygg2 on Saturday May 10, 2025 @03:54AM (#43943957)
And from Internals discussion (https://internals.rust-lang.org/t/add-some-form-of-precompil...) it seems this causes more problems than it solves.

It requires huge storage, for each combination of targets, and even if it is was solved some members of Rust community would see it as a step back.

Me included. They are hard to audit and are step back to OSS nature of Rust.

Re:Rust Dependencies Scare Me by pjmlp on Saturday May 10, 2025 @04:25AM (#43944064)
A systems programming language is supposed to support all deployment scenarios, not to be religious.
Re:Rust Dependencies Scare Me by Ygg2 on Saturday May 10, 2025 @04:47AM (#43944173)
Wdym? The language supports it, how else could have serde done it?

The issue here is getting storage and compute for build artifacs for cargo. Cargo isn't the language though.

Re:Rust Dependencies Scare Me by lenkite on Saturday May 10, 2025 @04:34AM (#43944111)
I also don't understand the CMake hate. Modern CMake (3.14+) is just around 10 lines to build basic sources/libraries/executables. And you can either use CMake FetchContent or use CPM https://github.com/cpm-cmake/CPM.cmake to fetch dependencies. No third-party tool like vcpkg or conan is needed.
Re:Rust Dependencies Scare Me by harha_ on Saturday May 10, 2025 @06:25AM (#43944558)
I think CMake is the perfect balance. You need to write few lines and think about few things before adding a dependency, but usually nothing too crazy. It might not work the first try but that's okay.