TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Cargo, Rust's Package Manager

229 pointsby wunkialmost 11 years ago

15 comments

bryanlarsenalmost 11 years ago
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 未加载
ithkuilalmost 11 years ago
I&#x27;d love if<p>$ cargo cult<p>would build a new project&#x2F;module from a template.
评论 #7937834 未加载
评论 #7937172 未加载
评论 #7936945 未加载
wunkialmost 11 years ago
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>
Sanddanceralmost 11 years ago
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 未加载
FrozenCowalmost 11 years ago
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 未加载
tomlualmost 11 years ago
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 未加载
bfrogalmost 11 years ago
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.
dreamdu5talmost 11 years ago
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 未加载
tempodoxalmost 11 years ago
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...
jpgvmalmost 11 years ago
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 未加载
ciesalmost 11 years ago
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 未加载
pjmlpalmost 11 years ago
What about binary only dependencies?
评论 #7939369 未加载
评论 #7939043 未加载
mellisarobalmost 11 years ago
This is good news. a better alternate to conventional techniques
sigzeroalmost 11 years ago
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 未加载
yazaddaruvalaalmost 11 years ago
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 未加载