10 ms·
The Rust community's crate host
- untothebreach 12y agoCongrats on shipping, cargo team!
- snfernandez 12y agoGreat work. Only one improvement I would like to see 1) Switch the web design away from javascript (at least for loading) or, 2) Implement some command line interface in cargo for searching crates and displaying it's description.
- steveklabnik 12y agoCommand-line search would be cool, for sure. Submitted! https://github.com/rust-lang/cargo/issues/925 https://github.com/rust-lang/cargo/issues/925
- yuriks 12y agoWhat about requiring JavaScript even for the bare minimum of functionality? (That is, even loading the main page.)
- steveklabnik 12y agoI would agree with adding some <noscript> tags to at least print a message telling you to turn it back on, sure. Filed: https://github.com/rust-lang/cargo/issues/931 https://github.com/rust-lang/cargo/issues/931
- dherman 12y agoAnnouncement and details are here: http://blog.rust-lang.org/2014/11/20/Cargo.html http://blog.rust-lang.org/2014/11/20/Cargo.html
- conradk 12y agoHere is the most important part to me: "Take care when publishing a crate, because a publish is permanent. The version can never be overwritten, and the code cannot be deleted. There is no limit to the number of versions which can be published, however." That. Is. Awesome.
- zrail 12y agoThis has been true of CPAN for a long time, and comes as a result of it being a network of FTP mirrors. I don't know when people decided it was a good idea to be able to yank a package (for example, from rubygems). It just complicates the whole setup and makes it less flexible.
- steveklabnik 12y agoI can speak to the Rubygems case: you'd be surprised at how often people publish proprietary/private information, and then need to pull it down. It happens often enough to actually be a burden on the Rubygems team (at least, when I used to co-work with one of them) that they left 'yank' in.
- izietto 12y agoI think description should be mandatory
- baq 12y agohomepage, too
- leoc 12y agoLicensing problems or other legal hassles are also foreseeable enough that you'd want to be ready for them.
- anuragbiyani 12y ago> you'd be surprised at how often people publish proprietary/private information, and then need to pull it down. But once published, isn't such information already compromised for all practical purposes ? I can understand the legal reason behind "pulling it down" (using someone else's IP, etc), but practically speaking the private information once published cannot really be "undone" (at best you can make it hard to find, and disassociate from yourself).
- kiliancs 12y agoMaybe it's just the very beginning but I would really like to see detailed descriptions for every crate as well as links to the website or repository if available. It's just hard to understand what they do, how they do it and their quality.
- steveklabnik 12y agoYesterday, we implemented a warning if your description and/or license aren't filled in when you upload a package. And 'homepage' is also possible too, authors just have to put them in.
- untothebreach 12y agosmall nitpick: 'homepage', not 'website'
- steveklabnik 12y agowhoops, edited, thanks
- losvedir 12y agoHooray! This has been eagerly awaited in the rust community for a while. Thanks, Steve!
- steveklabnik 12y agoBasically zero of the thanks should go to me. Alex Crichton has been hard at work on this for the past while, both Cargo itself as well as the site.
- losvedir 12y agoAh, then: Thanks, Alex! But fortunately "thanks" aren't zero-sum, so I'll leave your ill-gotten gains alone. :p
- jonalmeida 12y agoI'm really looking forward to publishing some early crates! A cargo search from the terminal would be ace as well.
- steveklabnik 12y agoYou're going to want to subscribe to https://github.com/rust-lang/cargo/issues/925 https://github.com/rust-lang/cargo/issues/925 then :)
- mmerickel 12y agoAm I correct in assuming that this is focused only on source distributions right now?
- steveklabnik 12y agoThat's correct. Rust doesn't have a stable ABI, so you'd have to have the same exact compiler revision as the one it was built with for it to work. And that's just the first issue...
- alanD84 12y agoIt's very impressive. I am concerned that it requires enabling scripts from google.com to even show any content. Mozilla has shown it actually cares about user privacy so I hope they address it.
- steveklabnik 12y agoI already spoke with someone who is sending a PR to fix this, so hopefully that will not be true soon.
- alanD84 12y agoThat's great. To be honest I really didn't expect a response for such a pedantic complaint. Most people accept a world where Google touches everything with its JavaScript and font CDNs etc. The site looks great and I'm really enjoying working my way through the Rust Guide at the moment.
- steveklabnik 12y agoI am, uh, very excited for this launch. :) (and glad you're liking the Guide too, please open issues if it can be improved)
- hello_there 12y agoCool. It would be nice if there was a link to each package's web site or source code.
- steveklabnik 12y agoIf authors give us that metadata, it appears on the site.
- untothebreach 12y agoif the author provides it, it is below the 'stats' portion, though there is an open issue to move this section above the stats: https://github.com/rust-lang/crates.io/issues/35 https://github.com/rust-lang/crates.io/issues/35
- gramasaurous 12y agoCan anyone explain the following trend to me? I've been seeing it alot lately: On the install page [0] the installation instructions tell people to run this command: curl https://static.rust-lang.org/rustup.sh https://static.rust-lang.org/rustup.sh | sudo bash This seems to me to be an extremely bad idea. Why would I want to pipe arbitrary commands into my shell? Even worse, the shell has to run with root priveleges? Does anyone actually do this? Am I overthinking it? Of course, I can verify the contents of the script, but I still don't know that the script I've verified on their website is the script that's being run in my shell. Is it OK because the script is hosted over https, and therefore can't be modified on transmission? [0]https://crates.io/install https://crates.io/install
- apendleton 12y agoIt's bad, but no different than installing a package supplied by a third party, or using a third-party installer, in terms of what authority you're granting, both of which are fairly commonplace. Obviously the eventual goal is to get something vetted and blessed into a package management system, but that's probably not a reasonable expectation for a brand new project.
- Touche 12y agoDo you really think that's a trend because I've been seeing people complain about it on Hacker News for 3 or 4 years now.
- gramasaurous 12y agoMaybe so, but I've only just started seeing it within the last few weeks. I've been on HN for less than a year so maybe thats why.
- steveklabnik 12y agoThis is purely because Rust and Cargo both are not yet stable, and so packaging them for distributions is inappropriate. Once there's a stable release, we will be telling people to use their packaging system and/or official installers rather than the script. There are various issues filed in the repository if you want to track when this changes.
- thom_nic 12y agoSecond most downloaded: brainfuck_macros
- desdiv 12y agoA compiler plugin that converts brainfuck code into Rust at compile time, letting your BF programs be optimised by LLVM to super-fast native code.
- deleted 12y ago[deleted]
- EdSharkey 12y agoSweet, let's build an OS based on Rust code now! Why don't we port something that's already got an eye for security, like Minix?
- steveklabnik 12y agoThere's already a few projects doing so. Drop by #rust-osdev on Mozilla's IRC network sometime. :)
- kibwen 12y agoI was happy to discover that the backend is written in Rust as well. Here's the code for anyone who's curious: https://github.com/rust-lang/crates.io/tree/master/src https://github.com/rust-lang/crates.io/tree/master/src
- thristian 12y agoDoes cargo support alternative package repositories? For example, at $EMPLOYER we have a DevPI[1] installation, so company-internal packages can be shared between employees as easily as public packages can be shared with the Internet at large. [1]: http://doc.devpi.net/latest/ http://doc.devpi.net/latest/
- steveklabnik 12y agoYes, you could grab all this code off of GitHub, spin up your own instance, and then set up your `.cargo/config` file to point at your copy, and it Just Works.
- wilmoore 12y agoI really wish it would also allow `~/.config/cargo/config` just like `~/.config/git/config`.
- steveklabnik 12y agoI believe there is an open ticket to follow the XDEG specification or whatever. You may want to find and :+1: that.
- veqz 12y agoBut how does one avoid having crates.io being flooded by bad/useless crates? And couldn't the same crates end up occupying all the "good" crate names?
- steveklabnik 12y agoIn theory, this could happen. In practice, Ruby/Python/JavaScript seem to be doing just fine.
- fjafjoafjlw 12y agoHave you guys given any thought to namespacing packages by developer, like Github. I've had to rename a couple of my own Python packages before uploading them to the package index to avoid naming collisions, so it definitely becomes an issue once the repository hits a certain critical mass. I assume Rust will be around for a while (I certainly hope so - I've just started learning it!) so it might be wise to plan for growth now before it's too late to implement.
- steveklabnik 12y agoIt creates a significant amount of complication. When I'm writing a blog post or documentation or in conversation, how do I differentiate between your foo and my foo? When I 'extern crate foo' in my source, which foo should it use? While it's true that sometimes collisions happen, in practice, you just choose a new name. Everything is significantly simpler, which in software is very often a Good Thing.
- fjafjoafjlw 12y agoI can appreciate that it adds complication to the implementation. I don't think identifying a particular crate would be an issue though, any more than identifying a particular repository on Github is. It's easy enough to talk about jdoe/foo if there's any danger of ambiguity, and links are definitive by their nature. Just from my own experience, I know that it makes me less likely to make packages public if I have to give them odd, collision-avoiding names first - especially as I then have to use those names myself. It's particularly annoying when the incumbent package is 10 lines of poorly-written abandonware that hasn't been touched in years, which often seems to be the case. I know this isn't an issue for Rust now but I'm thinking about ten years down the road when you have 250,000 crates on the site, 99.9% of them junk, clogging up that flat namespace. (Python's repository has more than 50,000 packages and seems to be growing at an accelerating rate now that it finally ships with a decent package installer by default.)
- vog 12y agoI'm a bit disappointed that this whole site works only with JavaScript enabled. No graceful degrading or anything. With disabled JavaScript, the page is just empty.
- blm 12y agoFor me the ability to use packages made by other people is a draw card for a language. However, when I first went to the site, all I could think was "Whats a crate in relation to programming or more specifically Rust? Is it Rust's idea of a package (eg like ruby gems)." I just think it would be good to have the site say Cargo: The Rust language package manager. The site also says this: "The Rust community's crate host". Is it not a cargo host for distribution of crates where crates are Rust packages? Is there non-community crate hosts?
- steveklabnik 12y agoBasically, crates are packages, yes. It might be good to add some non-jargon-y copy there too, yeah. :)
- mrinterweb 12y agoI'd love to see categories added to crates.io kind of like ruby-toolbox.com. Categories as well as repository activity information is helpful for discovering libraries that will suit your needs. Since there are so many ruby gems, it is now hard to properly categorize gems, and ruby-toolbox doesn't do the best job of this anymore. I found it to be very helpful years ago. Ruby-toolbox is still helpful in that it can show some similar projects and show project activity to help you see which projects have more momentum.
- steveklabnik 12y agoIf you look at each project's page, for example, https://crates.io/crates/gl_generator https://crates.io/crates/gl_generator was the first when I loaded up crates.io, on the right there's a "Keywords" section.
- mrinterweb 12y agoFantastic. Not sure how I missed that. Edit: There are plenty of crates not categorized, and that must be how I didn't see this feature.
- demarq 12y agoThis will certainly make our lives easier. BUT. 1) Why store a package, wouldn't an index rather than another repository be more efficient and flexible. Cargo already has the capability to get packages from git urls... I had some other nicks but I see this is on github so I'll try and contribute there. I like the site, and can't wait to test it out. Thanks to all who have been working hard on this!
- mercurial 12y ago> 1) Why store a package, wouldn't an index rather than another repository be more efficient and flexible. I suppose the authors experienced the "guy deleted his Github repo" effect one time too many. It's a very sensible decision. Getting packages for git urls is fine when you're hacking something together, but there is absolutely no way I'd put anything in production relying on something that fragile.
- demarq 12y agoI think it's even worse depending on a repo whose author refuses to or is unwilling to maintain. Besides git is hardly fragile especially if we are talking github. I happily clone and pull projects all the time without a single hitch. Also if you think about it github/attlassian are all dedicated to task with datacenters around the globe, while for the rust team the repo might be somewhat of a side gig.
- mercurial 12y agoI'm not so worried about Github going down as I am about people removing their repos. And why do you think depending on a repo is worse than depending on Github? If the package is not maintained anymore, license willing, you can always fork it and bump the dependencies yourself, even if, in the worst of cases, you need to keep the fork local. However, if it turns out you have to maintain a lot of third-party libraries yourself, it's a sign either of a bad ecosystem, or that you picked the wrong libraries.
- 12y ago
- AndrewGaspar 12y agoFWIW, the page is a bit messed up in IE11 on Windows Phone: http://1drv.ms/14VI93Z http://1drv.ms/14VI93Z Awesome work!
- steveklabnik 12y agoFiled! https://github.com/rust-lang/crates.io/issues/56 https://github.com/rust-lang/crates.io/issues/56
- unfamiliar 12y agoWhy is cargo not bundled with my rust install?
- killercup 12y agorustup.sh installs both. For other install methods see: https://github.com/rust-lang/rust/issues/16456 https://github.com/rust-lang/rust/issues/16456
- demarq 12y agoIf you aren't cool with me using your code, I respect that. I don't like forcing people to give up anything including their rights to their own repo. I just don't feel comfortable working on someone's code if they aren't willingly consenting to it. just not cool at all! Human consent is just not a permanent thing. Besides if the file disappears from the remote source, you can still build for the time being. It's not the end of your project, but it may be the end of someone else's career - you never know what reasons people had. Just respect peoples rights over their data. The constant argument, "it's already on the internet" doesn't absolve any of us, from respecting peoples reservations. And if it's "already on the internet" then you can trust that someone will illegally copy and repost the repo on-line but where does that leave us ethically? not the way I roll.
- wyager 12y agoThat seems like a very extreme view of intellectual property. "Intellectual property rights should be so strong that you can retroactively censor data you made freely available."
- andrewflnr 12y agoThe Right To Have My Work Forgotten. Yeah, I don't think Right To Be Forgotten makes any sense either.
- kybernetikos 12y agoDoes cargo only support packages with free licenses?