TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Cargo, Rust's Package Manager

229 点作者 wunki将近 11 年前

15 条评论

bryanlarsen将近 11 年前
This is sweet:<p>For example, if I have three packages:<p><pre><code> - uno depends on json 1.3.6 - dos depends on json 1.4.12 - tres depends on json 2.1.0 </code></pre> Cargo will use json 1.4.12 for uno and dos, and json 2.1.0 for tres.<p>Hopefully rust builds a culture that respects semantic versioning better than the Ruby &amp; Node cultures do. That has to start at the top. There were several Rails 2.3.X releases with minor ABI incompatibilities. Truly respecting semver would have required these patch level updates to get a new major number.
评论 #7937862 未加载
评论 #7937914 未加载
评论 #7937866 未加载
评论 #7939678 未加载
评论 #7940200 未加载
ithkuil将近 11 年前
I&#x27;d love if<p>$ cargo cult<p>would build a new project&#x2F;module from a template.
评论 #7937834 未加载
评论 #7937172 未加载
评论 #7936945 未加载
wunki将近 11 年前
And here is the announcement from Yehuda Katz:<p><a href="https://mail.mozilla.org/pipermail/rust-dev/2014-June/010569.html" rel="nofollow">https:&#x2F;&#x2F;mail.mozilla.org&#x2F;pipermail&#x2F;rust-dev&#x2F;2014-June&#x2F;010569...</a>
Sanddancer将近 11 年前
Will this play nicely with the package management tools OSes already have, or is this going to end up being yet another source for files&#x2F;packages to accumulate that are outside the view of well-documented and designed administrative tools?
评论 #7937943 未加载
评论 #7937818 未加载
评论 #7938653 未加载
评论 #7945761 未加载
评论 #7937828 未加载
评论 #7937829 未加载
FrozenCow将近 11 年前
I haven&#x27;t been following the development of this package manager, but previous attempts at making a package manager for Rust have failed. Is this package manager supported officially now? I really hope it will stick around.
评论 #7936911 未加载
评论 #7938416 未加载
tomlu将近 11 年前
How do you pin a dependency to a particular version or git sha? I can&#x27;t find anything in the FAQ or docs that implies that it&#x27;s possible.
评论 #7936730 未加载
评论 #7938482 未加载
bfrog将近 11 年前
This looks like yet more awesome stuff coming out of the Rust camp.<p>I&#x27;m pretty excited to see Teepee and Rust come together so I can really give it a spin doing what I&#x27;m currently doing daily for a job.
dreamdu5t将近 11 年前
While I support semantic versioning, people need to be aware that it&#x27;s only as good as the package maintainer. I have used packages that have (unintentionally) broke semver conformity. Nothing really stops an author from releasing breaking changes when going from &quot;1.2.1&quot; to &quot;1.2.2&quot;.
评论 #7939936 未加载
tempodox将近 11 年前
This is very welcome news, indeed. I will have to give it a try as soon as I can make the time.<p>I hope it will be more stable and work better than the Haskell package manager, Cabal. I literally <i>never</i> got that to work on any machine. It would typically destroy itself while attempting to update itself...
jpgvm将近 11 年前
I would really love to see some docs on how to actually install and get started with Cargo.<p>It doesn&#x27;t ship with Rust and the docs on GitHub and crates.io are not very enlightening.
评论 #7936830 未加载
评论 #7937848 未加载
cies将近 11 年前
Learn two things:<p>1. Wycats (Yehuda Katz) is on Rust apparently :)<p>2. `.toml` -- some crossbreed YAML&#x2F;INI file format that I like
评论 #7939438 未加载
pjmlp将近 11 年前
What about binary only dependencies?
评论 #7939369 未加载
评论 #7939043 未加载
mellisarob将近 11 年前
This is good news. a better alternate to conventional techniques
sigzero将近 11 年前
If someone can log into github and enter a ticket to say no to toml. Yaml would be perfect for it and it is mature and people already know it.
评论 #7937836 未加载
yazaddaruvala将近 11 年前
Why not just use JSON?<p>Infact, why not just use npm&#x27;s package.json?
评论 #7936660 未加载
评论 #7936686 未加载
评论 #7937123 未加载
评论 #7936668 未加载
评论 #7936690 未加载
评论 #7936907 未加载
评论 #7936877 未加载
评论 #7936661 未加载
评论 #7936669 未加载