Permalink
Browse files

Remove rustpkg.

I'm sorry :'(

Closes #11859
  • Loading branch information...
1 parent 3e39e3e commit 25fe2cadb10db1a54cefbd1520708d4397874bc3 @cmr cmr committed Feb 2, 2014
Showing with 14 additions and 8,480 deletions.
  1. +0 −1 Makefile.in
  2. +2 −2 README.md
  3. +0 −270 doc/guide-rustpkg.md
  4. +0 −112 doc/po/ja/guide-rustpkg.md.po
  5. +1 −1 doc/rust.md
  6. +0 −164 doc/rustpkg.md
  7. +4 −19 doc/tutorial.md
  8. +1 −1 man/rustc.1
  9. +1 −1 man/rustdoc.1
  10. +0 −195 man/rustpkg.1
  11. +2 −5 mk/crates.mk
  12. +0 −1 mk/dist.mk
  13. +0 −12 mk/docs.mk
  14. +0 −13 mk/tests.mk
  15. +0 −1 src/README.md
  16. +0 −3 src/driver/driver.rs
  17. +3 −2 src/librustc/driver/session.rs
  18. +0 −24 src/librustpkg/README.txt
  19. +0 −199 src/librustpkg/api.rs
  20. +0 −46 src/librustpkg/conditions.rs
  21. +0 −347 src/librustpkg/context.rs
  22. +0 −61 src/librustpkg/crate.rs
  23. +0 −14 src/librustpkg/exit_codes.rs
  24. +0 −94 src/librustpkg/installed_packages.rs
  25. +0 −816 src/librustpkg/lib.rs
  26. +0 −43 src/librustpkg/messages.rs
  27. +0 −554 src/librustpkg/package_source.rs
  28. +0 −196 src/librustpkg/parse_args.rs
  29. +0 −426 src/librustpkg/path_util.rs
  30. +0 −633 src/librustpkg/sha1.rs
  31. +0 −148 src/librustpkg/source_control.rs
  32. +0 −87 src/librustpkg/target.rs
  33. +0 −2,407 src/librustpkg/tests.rs
  34. +0 −20 src/librustpkg/testsuite/fail/src/no-inferred-crates/src/zzyzx.rs
  35. +0 −34 src/librustpkg/testsuite/pass/commands.txt
  36. +0 −13 src/librustpkg/testsuite/pass/src/c-dependencies/bar.rs
  37. +0 −12 src/librustpkg/testsuite/pass/src/c-dependencies/foo.rs
  38. +0 −14 src/librustpkg/testsuite/pass/src/c-dependencies/lib.rs
  39. +0 −83 src/librustpkg/testsuite/pass/src/c-dependencies/pkg.rs
  40. +0 −17 src/librustpkg/testsuite/pass/src/deeply/nested/path/foo/main.rs
  41. +0 −24 src/librustpkg/testsuite/pass/src/external-crate/main.rs
  42. +0 −13 src/librustpkg/testsuite/pass/src/fancy-lib/bar.rs
  43. +0 −12 src/librustpkg/testsuite/pass/src/fancy-lib/foo.rs
  44. +0 −24 src/librustpkg/testsuite/pass/src/fancy-lib/lib.rs
  45. +0 −52 src/librustpkg/testsuite/pass/src/fancy-lib/pkg.rs
  46. +0 −11 src/librustpkg/testsuite/pass/src/foo/lib.rs
  47. +0 −23 src/librustpkg/testsuite/pass/src/hello-world/main.rs
  48. +0 −17 src/librustpkg/testsuite/pass/src/install-paths/bench.rs
  49. +0 −11 src/librustpkg/testsuite/pass/src/install-paths/lib.rs
  50. +0 −28 src/librustpkg/testsuite/pass/src/install-paths/main.rs
  51. +0 −14 src/librustpkg/testsuite/pass/src/install-paths/test.rs
  52. +0 −13 src/librustpkg/testsuite/pass/src/simple-lib/src/bar.rs
  53. +0 −12 src/librustpkg/testsuite/pass/src/simple-lib/src/foo.rs
  54. +0 −21 src/librustpkg/testsuite/pass/src/simple-lib/src/lib.rs
  55. +0 −181 src/librustpkg/usage.rs
  56. +0 −699 src/librustpkg/util.rs
  57. +0 −93 src/librustpkg/version.rs
  58. +0 −58 src/librustpkg/workcache_support.rs
  59. +0 −83 src/librustpkg/workspace.rs
View
@@ -370,7 +370,6 @@ SREQ$(1)_T_$(2)_H_$(3) = \
# libraries
CSREQ$(1)_T_$(2)_H_$(3) = \
$$(TSREQ$(1)_T_$(2)_H_$(3)) \
- $$(HBIN$(1)_H_$(3))/rustpkg$$(X_$(3)) \
$$(HBIN$(1)_H_$(3))/rustdoc$$(X_$(3)) \
$$(foreach dep,$$(CRATES),$$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$$(dep)) \
$$(foreach dep,$$(HOST_CRATES),$$(HLIB$(1)_H_$(3))/stamp.$$(dep))
View
@@ -52,8 +52,8 @@ documentation.
> options are also supported, pass `--help` for more information on them.
When complete, `make install` will place several programs into
- `/usr/local/bin`: `rustc`, the Rust compiler; `rustdoc`, the
- API-documentation tool, and `rustpkg`, the Rust package manager and build
+ `/usr/local/bin`: `rustc`, the Rust compiler, and `rustdoc`, the
+ API-documentation tool.
system.
3. Read the [tutorial].
4. Enjoy!
View
@@ -1,270 +0,0 @@
-% The Rust Packaging Guide
-
-# Introduction
-
-Sharing is caring. Rust comes with a tool, `rustpkg`, which allows you to
-package up your Rust code and share it with other people. This guide will
-get you started on all of the concepts and commands you need to give the gift
-of Rust code to someone else.
-
-# Installing External Packages
-
-First, let's try to use an external package somehow. I've made a sample package
-called `hello` to demonstrate how to do so. Here's how `hello` is used:
-
-~~~~
-extern mod hello;
-
-fn main() {
- hello::world();
-}
-~~~~
-
-Easy! But if you try to compile this, you'll get an error:
-
-~~~~ {.notrust}
-$ rustc main.rs
-main.rs:1:0: 1:17 error: can't find crate for `hello`
-main.rs:1 extern mod hello;
- ^~~~~~~~~~~~~~~~~
-~~~~
-
-This makes sense, as we haven't gotten it from anywhere yet! Luckily for us,
-`rustpkg` has an easy way to fetch others' code: the `install` command. It's
-used like this:
-
-~~~ {.notrust}
-$ rustpkg install PKG_ID
-~~~
-
-This will install a package named `PKG_ID` into your current Rust environment.
-I called it `PKG_ID` in this example because `rustpkg` calls this a 'package
-identifier.' When using it with an external package like this, it's often a
-URI fragment. You see, Rust has no central authority for packages. You can
-build your own `hello` library if you want, and that's fine. We'd both host
-them in different places and different projects would rely on whichever version
-they preferred.
-
-To install the `hello` library, simply run this in your terminal:
-
-~~~ {.notrust}
-$ rustpkg install github.com/steveklabnik/hello
-~~~
-
-You should see a message that looks like this:
-
-~~~ {.notrust}
-note: Installed package github.com/steveklabnik/hello-0.1 to /some/path/.rust
-~~~
-
-Now, compiling our example should work:
-
-~~~ {.notrust}
-$ rustc main.rs
-$ ./main
-Hello, world.
-~~~
-
-Simple! That's all it takes.
-
-# Workspaces
-
-Before we can talk about how to make packages of your own, you have to
-understand the big concept with `rustpkg`: workspaces. A 'workspace' is simply
-a directory that has certain sub-directories that `rustpkg` expects. Different
-Rust projects will go into different workspaces.
-
-A workspace consists of any directory that has the following
-directories:
-
-* `src`: The directory where all the source code goes.
-* `build`: This directory contains all of the build output.
-* `lib`: The directory where any libraries distributed with the package go.
-* `bin`: This directory holds any binaries distributed with the package.
-
-There are also default file names you'll want to follow as well:
-
-* `main.rs`: A file that's going to become an executable.
-* `lib.rs`: A file that's going to become a library.
-
-# Building your own Package
-
-Now that you've got workspaces down, let's build your own copy of `hello`. Go
-to wherever you keep your personal projects, and let's make all of the
-directories we'll need. I'll refer to this personal project directory as
-`~/src` for the rest of this guide.
-
-## Creating our workspace
-
-~~~ {.notrust}
-$ cd ~/src
-$ mkdir -p hello/src/hello
-$ cd hello
-~~~
-
-Easy enough! Let's do one or two more things that are nice to do:
-
-~~~ {.notrust}
-$ git init .
-$ cat > README.md
-# hello
-
-A simple package for Rust.
-
-## Installation
-
-```
-$ rustpkg install github.com/YOUR_USERNAME/hello
-```
-^D
-$ cat > .gitignore
-.rust
-build
-^D
-$ git commit -am "Initial commit."
-~~~
-
-If you're not familliar with the `cat >` idiom, it will make files with the
-text you type inside. Control-D (`^D`) ends the text for the file.
-
-Anyway, we've got a README and a `.gitignore`. Let's talk about that
-`.gitignore` for a minute: we are ignoring two directories, `build` and
-`.rust`. `build`, as we discussed earlier, is for build artifacts, and we don't
-want to check those into a repository. `.rust` is a directory that `rustpkg`
-uses to keep track of its own settings, as well as the source code of any other
-external packages that this workspace uses. This is where that `rustpkg
-install` puts all of its files. Those are also not to go into our repository,
-so we ignore it all as well.
-
-Next, let's add a source file:
-
-~~~
-#[desc = "A hello world Rust package."];
-#[license = "MIT"];
-
-pub fn world() {
- println!("Hello, world.");
-}
-~~~
-
-Put this into `src/hello/lib.rs`. Let's talk about each of these attributes:
-
-## Crate attributes for packages
-
-`license` is equally simple: the license we want this code to have. I chose MIT
-here, but you should pick whatever license makes the most sense for you.
-
-`desc` is a description of the package and what it does. This should just be a
-sentence or two.
-
-## Building your package
-
-Building your package is simple:
-
-~~~ {.notrust}
-$ rustpkg build hello
-~~~
-
-This will compile `src/hello/lib.rs` into a library. After this process
-completes, you'll want to check out `build`:
-
-~~~ {.notrust}
-$ ls build/x86_64-unknown-linux-gnu/hello/
-libhello-ed8619dad9ce7d58-0.1.0.so
-~~~
-
-This directory naming structure is called a 'build triple,' and is because I'm
-on 64 bit Linux. Yours may differ based on platform.
-
-You'll also notice that `src/hello/lib.rs` turned into
-`libhello-ed8619dad9ce7d58-0.1.0.so`. This is a simple combination of the
-library name, a hash of its content, and the version.
-
-Now that your library builds, you'll want to commit:
-
-~~~ {.notrust}
-$ git add src
-$ git commit -m "Adding source code."
-~~~
-
-If you're using GitHub, after creating the project, do this:
-
-~~~ {.notrust}
-$ git remote add origin git@github.com:YOUR_USERNAME/hello.git
-$ git push origin -u master
-~~~
-
-Now you can install and use it! Go anywhere else in your filesystem:
-
-~~~ {.notrust}
-$ cd ~/src/foo
-$ rustpkg install github.com/YOUR_USERNAME/hello
-WARNING: The Rust package manager is experimental and may be unstable
-note: Installed package github.com/YOUR_USERNAME/hello-0.1 to /home/yourusername/src/hello/.rust
-~~~
-
-That's it!
-
-# Testing your Package
-
-Testing your package is simple as well. First, let's change `src/hello/lib.rs` to contain
-a function that can be sensibly tested:
-
-~~~
-#[desc = "A Rust package for determining whether unsigned integers are even."];
-#[license = "MIT"];
-
-pub fn is_even(i: uint) -> bool {
- i % 2 == 0
-}
-~~~
-
-Once you've edited `lib.rs`, you can create a second crate file, `src/hello/test.rs`,
-to put tests in:
-
-~~~
-#[license = "MIT"];
-extern mod hello;
-use hello::is_even;
-
-#[test]
-fn test_is_even() {
- assert!(is_even(0));
- assert!(!is_even(1));
- assert!(is_even(2));
-}
-~~~
-
-Note that you have to import the crate you just created in `lib.rs` with the
-`extern mod hello` directive. That's because you're putting the tests in a different
-crate from the main library that you created.
-
-Now, you can use the `rustpkg test` command to build this test crate (and anything else
-it depends on) and run the tests, all in one step:
-
-~~~ {.notrust}
-$ rustpkg test hello
-WARNING: The Rust package manager is experimental and may be unstable
-note: Installed package hello-0.1 to /Users/tjc/.rust
-
-running 1 test
-test test_is_even ... ok
-
-test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
-~~~
-
-# More resources
-
-There's a lot more going on with `rustpkg`, this is just to get you started.
-Check out [the rustpkg manual](rustpkg.html) for the full details on how to
-customize `rustpkg`.
-
-A tag was created on GitHub specifically for `rustpkg`-related issues. You can
-[see all the Issues for rustpkg
-here](https://github.com/mozilla/rust/issues?direction=desc&labels=A-pkg&sort=created&state=open),
-with bugs as well as new feature plans. `rustpkg` is still under development,
-and so may be a bit flaky at the moment.
-
-You may also want to check out [this blog
-post](http://tim.dreamwidth.org/1820526.html), which contains some of the early
-design decisions and justifications.
Oops, something went wrong.

5 comments on commit 25fe2ca

Contributor

bors replied Feb 2, 2014

merging cmr/rust/rm-rustpkg = 25fe2ca into auto

Contributor

bors replied Feb 2, 2014

cmr/rust/rm-rustpkg = 25fe2ca merged ok, testing candidate = 8665a51

Contributor

bors replied Feb 2, 2014

fast-forwarding master to auto = 8665a51

Please sign in to comment.