News for hackers. Stuff that matters.
Re:Rust Dependencies Scare Me by dathinab on Friday May 09, 2025 @06:28PM (#43941523)
> not possible to depend on only a part of a module in Rust though right

yesn't, you can use feature flags similar to `#if` in C

but it's also not really a needed feature as dead code elimination will prune out all code functions, types, etc. you don't use. Non of it will end up in the produced binary.

There are no comments on this comment yet.