Hacker GitHub

← All repos

rust-lang/cargo

View on GitHub ↗ ★ 15,664 Rust

The Rust package manager

150 mentions on Hacker News by 99 people: 6 stories, 144 comments · first 2014-06-24 · latest 2026-10-01

Mentions per year 150 mentions · busiest year 2023 (19)
20082026
  1. …for negative numbers, so you can say `cargo build --jobs -2` to leave two cores available. See https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#...
  2. …or `make` invocation): [0]: https://www.gnu.org/software/make/manual/html_node/Job-Slots... [2]: https://github.com/rust-lang/cargo/issues/1744 [2]: https://github.com/rust-lang/rust/pull/42682 `nice cargo build` will run all threads at…
  3. …"cargo init" and "cargo new" default to the 2021 edition, and have ever since it was stabilized: https://github.com/rust-lang/cargo/pull/9800 Either you accidentally installed a version of cargo from before the 2021 edition was stabilized,…
  4. …the proc macros in release mode. [2] [1]: https://github.com/Arnavion/k8s-openapi/issues/4 [2]: https://github.com/rust-lang/cargo/issues/5622 *
    comment by Arnavion · 2022-12-22 · in Welcome to Comprehensive Rust
  5. …https://crates.io/categories/development-tools::cargo-plugin... - What people have proposed be added: https://github.com/rust-lang/cargo/issues?q=is%3Aopen+is%3Ai...
    comment by epage · 2022-12-15 · in Rust 1.66
  6. …I find it very hard to figure out what the type of public_dependencies is in this declaration: https://github.com/rust-lang/cargo/blob/8fbc8459d59f3acecdb6... This is the same kind of thing that makes JavaScript challenging to read. It…
    comment by enneff · 2022-11-11 · in Thirteen Years of Go
  7. …). Here is an ancient github issue from way back in 2014 discussing the idea of "official" crates: https://github.com/rust-lang/cargo/issues/934
  8. …`cargo add serde serde_json -F serde/derive`") - The opportunity for more QoL improvements, see https://github.com/rust-lang/cargo/issues?q=is%3Aopen+is%3Ai... It is impressive the amount of work it took to get this ready. I took over the…
    comment by epage · 2022-07-01 · in Rust 1.62.0
  9. …https://github.com/crate-ci/cargo-release [1] https://github.com/crate-ci/cargo-release/issues/82 [2] https://github.com/rust-lang/cargo/issues/6583
    comment by epage · 2022-05-23 · in Proper use of Git tags
  10. She gave the reason in the piece, and linked to the ticket she filed: https://github.com/rust-lang/cargo/issues/10352
  11. …it uses ~/.emacs.d (and a few others) first. Cargo doesn't use the XDG paths at all, apparently - https://github.com/rust-lang/cargo/issues/1734 . However it also needs a directory for binaries (~/.cargo/bin) and ~/.local/bin isn't…
  12. I might be misreading this on an iphone screen but as i follow the logic here: https://github.com/rust-lang/cargo/blob/a77ed9ba87bfeaf3c275... A cargo build ends up there calling into the resolver’s resolve_ws_with_opts() which would…
    comment by CraigJPerry · 2022-04-15 · in Rustaceans at the border
  13. …than estimated (look at Dart and Cargo) https://github.com/dart-lang/pub/blob/master/doc/solver.md https://github.com/rust-lang/cargo/blob/1ef1e0a12723ce9548d7...
    comment by klodolph · 2022-03-31 · in How Go mitigates supply chain attacks
  14. PR to stabilize -Ztimings as --timings: https://github.com/rust-lang/cargo/pull/10245
    comment by JoshTriplett · 2022-01-02 · in Why is my Rust build so slow?
  15. …you build a new version of cargo with an older version of cargo that of course can parse TOML. [0] https://github.com/rust-lang/cargo/blob/master/Cargo.toml
    comment by veber-alex · 2021-12-10 · in The future of Python build systems and Gentoo
  16. …it (nearly) forces you to use a single centralized package repository. Shameless plug for an issue: https://github.com/rust-lang/cargo/issues/10045 I don't have a gripe with crates.io per se, but that the tooling doesn't work offline and…
  17. …the wild "grab things from the Internet" route is quite lacking (shameless plug for attention: https://github.com/rust-lang/cargo/issues/10045 ). I don't have a problem with making the convenient route possible, but it's very troubling…
    comment by gspr · 2021-11-09 · in $ sudo rm -rf / === NPM install
  18. …it works well with cargo-flamegraph : [profile.profiling] inherits = "release" debug = true [1]: < https://github.com/rust-lang/cargo/pull/9943 > And then there's the less fireworky, but still appreciated, Iterator::map_while [2], which is…
    comment by yakubin · 2021-10-21 · in Rust 1.56.0 and Rust 2021
  19. Tracking issue on cargo-edit here: https://github.com/rust-lang/cargo/issues/5586 I too really, really want this. If only I had the energy to work up some patches...
    comment by steveklabnik · 2021-07-26 · in Understanding Rust futures by going way too deep
  20. …version [2], which is pretty uncommon (I don't think I've ever met one in practice). [1]: https://github.com/rust-lang/cargo/blob/master/src/cargo/cor... [2]: https://doc.rust-lang.org/cargo/reference/specifying-depende...
    comment by littlestymaar · 2021-07-08 · in Compiling Rust is NP-hard
  21. …in surprising behaviour for many people. This particular issue is in regard to `cargo install`: https://github.com/rust-lang/cargo/issues/7169 Oh, or, I guess, it might be how the version is specified--guess we need some more details on…
  22. …features on Rust stable. A bunch of folks on the Rust team are pretty unhappy about this (see e.g. https://github.com/rust-lang/cargo/issues/6627 ), but it is the current situation. So "Firefox broke after I ran rustup" is a very different…
  23. …cargo was maintaining backwards compatibility when making bug fixes to its TOML parsing. [1] [1]: https://github.com/rust-lang/cargo/pull/2680
  24. > Windows Defender has a marginal impact on performance, Oh, come on; there are issues like this: https://github.com/rust-lang/cargo/issues/5028 and the app developers do handstands in order to minimize the impact; for example, cargo guys…
    comment by vetinari · 2021-06-01 · in Reclaim Windows10
  25. …Build plans support would help but has not progressed in the past few years. Worse, it was removed. https://github.com/rust-lang/cargo/issues/5579#issuecomment-...
  26. It's already switched on nightly. https://github.com/rust-lang/cargo/pull/9298 https://doc.rust-lang.org/nightly/cargo/reference/profiles.h...
  27. …that somehow builds the dependency with cargo. Which, if you're using a workspace, will deadlock. https://github.com/rust-lang/cargo/issues/8938
  28. …in either WSL version - certainly nothing that would give me pause to using either one. [0] https://github.com/rust-lang/cargo/issues/8439#issuecomment-...
    comment by mynameisash · 2021-01-22 · in Rust for Windows
  29. …out on updates which might fix security bugs so the cargo team is unwilling to change the default. https://github.com/rust-lang/cargo/issues/7169
  30. I believe so, as cargo defaults to the number of cores, as per this issue: https://github.com/rust-lang/cargo/issues/2805 For what it's worth, this guy noticed a nearly 2x speedup in compiling OpenSSL, which is C code, so I assume GCC or…
  31. Hmm apparently there is a cargo feature for it now: https://github.com/rust-lang/cargo/blob/master/src/doc/src/r... So something like this in .cargo/config: [doc.extern-map] std = "local" And then cargo +nightly doc -Zrustdoc-map.
    comment by est31 · 2020-11-19 · in Rust 1.48
  32. …Yeah, I've run into that, but IIRC this got solved super recently/is being solved. Probably https://github.com/rust-lang/cargo/pull/7820 ?
    comment by geofft · 2020-05-03 · in Making Rust as Fast as Go
  33. …Swift.org has Apple as its sponsor. Who's the logical entity to fund an industry-wide C++ repo? [0] https://github.com/rust-lang/cargo
    comment by jasode · 2020-03-15 · in A new decade, a new tool
  34. …envvar to build things other than the compiler, prompting consternation from the compiler team. [0] https://github.com/rust-lang/cargo/issues/6627 [1] https://github.com/rust-lang/cargo/issues/7088
    comment by dodobirdlord · 2020-02-05 · in Why Discord is switching from Go to Rust
  35. …that enabled it for rust's nightlies [2] was merged on Aug 1 so the date would fit quite well. [1]: https://github.com/rust-lang/cargo/pull/7143 [2]: https://github.com/rust-lang/rust/pull/63181
    comment by est31 · 2020-01-30 · in The Rust Compilation Model Calamity
  36. …heuristics. Without knowing more about how Dart's solver worked, it's hard to directly compare. https://github.com/rust-lang/cargo/blob/368333c2070279347723...
    comment by steveklabnik · 2019-12-03 · in The Principles of Versioning in Go
  37. …I can't edit any more: this bugfix needs cargo support to become active, which has still to arrive: https://github.com/rust-lang/cargo/pull/7315
    comment by est31 · 2019-11-12 · in Rust 1.39
  38. …(which is an NP complete problem). And to top this, the code isn't even used on Redox [2]. [1]: https://github.com/rust-lang/cargo/issues/7058 [2]: https://gitlab.redox-os.org/redox-os/users/issues/26
  39. …the Node community. A popular package is "cargo-edit", which currently pulls in 239 other crates: https://github.com/rust-lang/cargo/issues/2179#issuecomment-...
    comment by svnpenn · 2019-08-21 · in Thoughts on Rust bloat
  40. There's a dead comment that posted this link with a sarcastic tone, but I think it's worth seeing: https://github.com/rust-lang/cargo/graphs/contributors Maybe 2/3 people actively doing most of the contributions with sporadic other…
    comment by estsauver · 2019-07-07 · in “Only five people maintain Python-pip”
  41. Why guess when you can find the truth in 20 seconds of digging? https://github.com/rust-lang/cargo/graphs/contributors
  42. …a merge tool for the purpose, see more in [2]. [1]: https://github.com/libra/libra/issues/52 [2]: https://github.com/rust-lang/cargo/issues/1818
  43. …downloading and building at least the following two from source: https://github.com/rust-lang/rust https://github.com/rust-lang/cargo That includes building the bundled bits of LLVM from source. If your computer is beefy I think that will…
    comment by codetrotter · 2019-05-23 · in Announcing Rust 1.35.0
  44. …the recommendation. if I understand [1] correctly, this cache is hosed when you upgrade rust? [1]: https://github.com/rust-lang/cargo/issues/1139#issuecomment-...
    comment by indentit · 2019-04-11 · in Rust 1.34.0
  45. …the process. I don't know how this is framed as "hostility". As one example of the work done here: https://github.com/rust-lang/cargo/issues/5579
    comment by steveklabnik · 2019-03-25 · in Rust is not a good C replacement
  46. …0.3.0 got caught here in the time after when the bug was introduced but before it was fixed. See: https://github.com/rust-lang/cargo/issues/3368 In this case, cargo update doesn't solve this. You cannot build ripgrep 0.3.0 with any recent…
  47. …code sections. To date, I have never encountered a UML in the wild and been satisfied. [1]: https://github.com/rust-lang/cargo/#contributing
  48. I'll just leave this here. https://github.com/rust-lang/cargo/issues/3982
  49. …is basically a nice heuristic to make sure we get roughly the best answer most of the time." ( https://github.com/rust-lang/cargo/blob/master/src/cargo/cor... ) vgo's more-constrained specification for dependencies means there is exactly…
    comment by dilap · 2018-07-15 · in Taking Go modules for a spin
  50. …what MVS does. There's also cases where your lock file and manifest are not in agreement. e.g. https://github.com/rust-lang/cargo/issues/4100
    comment by amasad · 2018-05-30 · in The vgo proposal is accepted. Now what?