logoalt Hacker News

kvujyesterday 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

CodesInChaosyesterday 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.

shikon7yesterday at 3:58 PM

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

show 1 reply
Andrexyesterday at 3:53 PM

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

show 1 reply
adolphyesterday 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
jrm4yesterday at 4:23 PM

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