logoalt Hacker News

kvujtoday at 3:45 PM5 repliesview on HN

The cargo.lock file is 2200+ lines long. Did they spend a reasonable amount of time auditing these dependencies?


Replies

CodesInChaostoday at 4:17 PM

That's 238 dependencies (counting multiple versions of the same crate).

* Many of them are part of families of crates maintained by the same people (e.g. rust-crypto, windows, rand or regex).

* Most of them are popular crates I'm familiar with.

* Several are only needed to support old compiler versions and can be removed once the MSRV is raised

So it's not as bad as it looks at first glance.

shikon7today at 3:58 PM

What would be a reasonable amount of time to audit the dependencies?

show 1 reply
Andrextoday at 3:53 PM

They ran it through Copilot which gave it the all-clear.

show 1 reply
adolphtoday at 4:05 PM

  grep 'name = ' ms-litebox-Cargo.lock | wc -l
     238
edit:

  grep 'name = ' ms-litebox-Cargo.lock | sort -u | wc -l
     221
show 1 reply
jrm4today at 4:23 PM

Given, you know, Microsoft, I'd demand proof even if they said they did.