Hacker News new | ask | show | jobs
by luckystarr 1090 days ago
Curious: Does cargo not distinguish between dev and runtime dependencies?
1 comments

It does, but all dependencies are put in the same folder, which is why the original poster conflated them.

If you look at the linked Cargo.toml you'll see

  [dependencies]
  libc = "0.2.139"
  <snip>

  [dev-dependencies]
  pretty_assertions = "1.3.0"
  tempfile = "3.5.0"