Live data from Hacker News

Cargo, Rust's Package Manager

crates.io

31–40 of 127 posts

Re: Cargo, Rust's Package Manager

#31
This is very welcome news, indeed. I will have to give it a try as soon as I can make the time.

I hope it will be more stable and work better than the Haskell package manager, Cabal. I literally never got that to work on any machine. It would typically destroy itself while attempting to update itself...

Re: Cargo, Rust's Package Manager

#33
post #21

Why not just use JSON? Infact, why not just use npm's package.json?

Yeah, why use some format that no one knows, and is harder to parse by other tools?

Not only that, but TOML is still considered unstable by its author. Granted, it hasn't been updated in several months. But that seems like a shaky foundation to be building on top of.

From: https://github.com/toml-lang/toml

"Latest tagged version: v0.2.0.

Be warned, this spec is still changing a lot. Until it's marked as 1.0, you should assume that it is unstable and act accordingly."

Re: Cargo, Rust's Package Manager

#34
post #30
post #15

Earlier quoted context omitted.

This was how I installed it (Mac): 1) Install latest version of Rust found here: http://www.rust-lang.org 2) git clone --recursive git@github.com:rust-lang/cargo.git 3) make 4) make install (could be that sudo is needed for you)

There is no brew formula?

For rust? There is...cargo not so much

aroch:~/staging/|⇒ brew info rust

rust: stable 0.10 (bottled), HEAD

http://www.rust-lang.org/

/usr/local/Cellar/rust/0.10 (74 files, 174M) *

  Poured from bottle
From: https://github.com/Homebrew/homebrew/commits/master/Library/...

aroch:~/staging/|⇒ brew info cargo

Error: No available formula for cargo

Re: Cargo, Rust's Package Manager

#36
post #30
post #15

Earlier quoted context omitted.

This was how I installed it (Mac): 1) Install latest version of Rust found here: http://www.rust-lang.org 2) git clone --recursive git@github.com:rust-lang/cargo.git 3) make 4) make install (could be that sudo is needed for you)

There is no brew formula?

Rust has a brew package. Cargo is new so it may be a day or three before it gets out there too.

Re: Cargo, Rust's Package Manager

#37

Earlier quoted context omitted.

I think that's a good point. Why use .toml when we have better alternatives already? (I admit I have a bias against toml, but still...)

Which ones would that be?

YAML is quite mature, clean, is a superset of JSON so people could use JSON if they wanted, and it's used for config files for pub, Dart's package manager. TOML doesn't seem mature enough.

Re: Cargo, Rust's Package Manager

#38
post #12
post #8

How do you pin a dependency to a particular version or git sha? I can't find anything in the FAQ or docs that implies that it's possible.

From announcement email: The next features we're planning on working on are: - Supporting refs other than `master` from git packages

As a workaround, I guess you could fork a specific version on your own github account, and use that as the dependency?

Re: Cargo, Rust's Package Manager

#39
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/packages to accumulate that are outside the view of well-documented and designed administrative tools?

Re: Cargo, Rust's Package Manager

#40
post #36
post #30

Earlier quoted context omitted.

There is no brew formula?

Rust has a brew package. Cargo is new so it may be a day or three before it gets out there too.

Hmm, well, rust's brew seems a little outdated (0.10), so if you are intent on using Cargo soon, I would recommend on building rust yourself or grabbing a new binary from their website.
Post reply on HN