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
20082026
-
…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#...
comment by epage · 2023-02-03 · in Improving Rust compile times to enable adoption of memory safety -
…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…
comment by mbrubeck · 2023-02-03 · in Improving Rust compile times to enable adoption of memory safety -
…"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,…
comment by TheDong · 2023-01-27 · in Thoughts on what a next Rust compiler would do -
…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 -
…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 -
…). 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
comment by bnewbold · 2022-11-07 · in Blessed.rs – An unofficial guide to the Rust ecosystem -
…`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 -
…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 -
She gave the reason in the piece, and linked to the ticket she filed: https://github.com/rust-lang/cargo/issues/10352
comment by tptacek · 2022-05-11 · in Our Experience Porting the YJIT Ruby Compiler to Rust -
…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…
comment by faho · 2022-05-11 · in Understanding the bin, sbin, usr/bin, usr/sbin split (2010) -
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 -
…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 -
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? -
…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 -
…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…
comment by gspr · 2021-11-18 · in Backdooring Rust crates for fun and profit -
…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 -
…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 -
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 -
…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 -
…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…
comment by follower · 2021-06-13 · in Rust 1.x seems to not always be backward compatible in practice -
…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…
comment by geofft · 2021-06-13 · in Rust 1.x seems to not always be backward compatible in practice -
…cargo was maintaining backwards compatibility when making bug fixes to its TOML parsing. [1] [1]: https://github.com/rust-lang/cargo/pull/2680
comment by seoaeu · 2021-06-13 · in Rust 1.x seems to not always be backward compatible in practice -
> 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 -
…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-...
comment by glandium · 2021-05-13 · in Why Rust in Android will use the Soong build system, not Cargo -
It's already switched on nightly. https://github.com/rust-lang/cargo/pull/9298 https://doc.rust-lang.org/nightly/cargo/reference/profiles.h...
comment by irh · 2021-04-18 · in Reducing Rust Incremental Compilation Times on macOS -
…that somehow builds the dependency with cargo. Which, if you're using a workspace, will deadlock. https://github.com/rust-lang/cargo/issues/8938
comment by glandium · 2021-02-20 · in How Swift achieved dynamic linking where Rust couldn't (2019) -
…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 -
…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
comment by est31 · 2020-12-02 · in Rga: Ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz -
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…
comment by da_big_ghey · 2020-11-27 · in Windows for Arm on M1 Mac Successfully Virtualized -
…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 -
…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 -
…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 -
…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 -
…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 -
…(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
comment by est31 · 2019-08-30 · in Rust is the future, C is the new Assembly: Josh Triplett (Intel) -
…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 -
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” -
Why guess when you can find the truth in 20 seconds of digging? https://github.com/rust-lang/cargo/graphs/contributors
comment by unwrap · 2019-07-07 · in “Only five people maintain Python-pip” -
…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
comment by est31 · 2019-06-19 · in Facebook picked Rust to implement Libra -
…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 -
…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 -
…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 -
…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…
comment by burntsushi · 2019-03-03 · in Case Study: Npm uses Rust for its CPU-bound bottlenecks [pdf] -
…code sections. To date, I have never encountered a UML in the wild and been satisfied. [1]: https://github.com/rust-lang/cargo/#contributing
comment by davemp · 2018-11-25 · in Ask HN: Is there a better way to document complex software architectures? -
I'll just leave this here. https://github.com/rust-lang/cargo/issues/3982
comment by hyperman1 · 2018-11-04 · in An error message, still found in Windows 10, is a mistake from 1974 -
…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 -
…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?