├── .clog.toml ├── .gitignore ├── .gitmodules ├── .travis.yml ├── CHANGELOG.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE-MIT ├── README.md └── src └── cargo-clone ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md └── src ├── lib.rs └── main.rs /.clog.toml: -------------------------------------------------------------------------------- 1 | [clog] 2 | repository = "https://github.com/kbknapp/cargo-extras" 3 | outfile = "CHANGELOG.md" 4 | from-latest-tag = true 5 | 6 | [sections] 7 | Performance = ["perf"] 8 | Improvements = ["impr", "im", "imp"] 9 | Documentation = ["docs"] 10 | Deprecations = ["depr"] 11 | Examples = ["examples"] 12 | Additions = ["add"] 13 | Updates = ["up"] 14 | Removes = ["rem"] 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled files 2 | *.o 3 | *.so 4 | *.rlib 5 | *.dll 6 | 7 | # Executables 8 | *.exe 9 | 10 | # Generated by Cargo 11 | /target/ 12 | 13 | # Temp files 14 | .*~ 15 | 16 | # Backup files 17 | *.bak 18 | *.bk 19 | *.orig 20 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "src/cargo-count"] 2 | path = src/cargo-count 3 | url = https://github.com/kbknapp/cargo-count 4 | [submodule "src/cargo-outdated"] 5 | path = src/cargo-outdated 6 | url = https://github.com/kbknapp/cargo-outdated 7 | [submodule "src/cargo-graph"] 8 | path = src/cargo-graph 9 | url = https://github.com/kbknapp/cargo-graph 10 | [submodule "src/cargo-check"] 11 | path = src/cargo-check 12 | url = https://github.com/rsolomo/cargo-check 13 | [submodule "src/cargo-do"] 14 | path = src/cargo-do 15 | url = https://github.com/pwoolcoc/cargo-do 16 | [submodule "src/cargo-edit"] 17 | path = src/cargo-edit 18 | url = https://github.com/killercup/cargo-edit 19 | [submodule "src/cargo-script"] 20 | path = src/cargo-script 21 | url = https://github.com/DanielKeep/cargo-script 22 | [submodule "src/cargo-watch"] 23 | path = src/cargo-watch 24 | url = https://github.com/passcod/cargo-watch 25 | [submodule "src/cargo-config"] 26 | path = src/cargo-config 27 | url = https://github.com/wesleywiser/cargo-config 28 | [submodule "src/cargo-open"] 29 | path = src/cargo-open 30 | url = https://github.com/carols10cents/cargo-open 31 | [submodule "src/cargo-vendor"] 32 | path = src/cargo-vendor 33 | url = https://github.com/alexcrichton/cargo-vendor 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: rust 3 | rust: 4 | - nightly 5 | - beta 6 | - stable 7 | script: 8 | - cargo build --verbose 9 | addons: 10 | apt: 11 | sources: 12 | - kalakris-cmake 13 | packages: 14 | - cmake 15 | env: 16 | global: 17 | secure: JLBlgHY6OEmhJ8woewNJHmuBokTNUv7/WvLkJGV8xk0t6bXBwSU0jNloXwlH7FiQTc4TccX0PumPDD4MrMgxIAVFPmmmlQOCmdpYP4tqZJ8xo189E5zk8lKF5OyaVYCs5SMmFC3cxCsKjfwGIexNu3ck5Uhwe9jI0tqgkgM3URA= 18 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | ## v0.4.0 (2016-05-04) 3 | 4 | 5 | #### Additions 6 | 7 | * cargo-clone ([a4903610](https://github.com/kbknapp/cargo-extras/commit/a4903610431ef16278e3974adddaacd940863aca)) 8 | 9 | #### Updates 10 | 11 | * cargo-watch ([522e7dda](https://github.com/kbknapp/cargo-extras/commit/522e7ddab403f14d09ae2df2a9cbcca8cf898701)) 12 | * cargo-vendor ([f76ef86e](https://github.com/kbknapp/cargo-extras/commit/f76ef86e168a93e7c101661f3627c7a320ce0795)) 13 | * cargo-script ([6d4e6a34](https://github.com/kbknapp/cargo-extras/commit/6d4e6a346e6f92ef507cca03b46b94c1db9405a6)) 14 | * cargo-outdated ([908465b3](https://github.com/kbknapp/cargo-extras/commit/908465b3b7e006cace6998c09fff5cf62a255030)) 15 | * cargo-open ([da4ad823](https://github.com/kbknapp/cargo-extras/commit/da4ad8239415d449a3ee92b8d3d084edca876704)) 16 | * cargo-graph ([8249c0b2](https://github.com/kbknapp/cargo-extras/commit/8249c0b2ea28f9169704a76e091d67102add9703)) 17 | * cargo-edit ([cf7aaf44](https://github.com/kbknapp/cargo-extras/commit/cf7aaf44b2b85d9a00dee5f42fbb21214a788bee)) 18 | * cargo-do ([2b673d02](https://github.com/kbknapp/cargo-extras/commit/2b673d023abfe779e2e91ae16de78f4180f8d455)) 19 | * cargo-count ([a57ec0f2](https://github.com/kbknapp/cargo-extras/commit/a57ec0f204e0496690ec3cc05f3dc905cd07c8bd)) 20 | * cargo-check ([c3ac96e5](https://github.com/kbknapp/cargo-extras/commit/c3ac96e544eea40c625b35d3ef9b7a5cca7fc4a2)) 21 | 22 | #### Removes 23 | 24 | * cargo-clippy ([3daba528](https://github.com/kbknapp/cargo-extras/commit/3daba528e720e25821fb19d180cec42f15f302e9)) 25 | 26 | 27 | 28 | 29 | ## v0.3.0 (2015-12-24) 30 | 31 | 32 | #### Updates 33 | 34 | * cargo-outdated ([7fe4221b](https://github.com/kbknapp/cargo-extras/commit/7fe4221b27c61fe9fd273f5f1217bb52f40d89d7)) 35 | * cargo-graph ([99666265](https://github.com/kbknapp/cargo-extras/commit/99666265f52ac6e8f46e4f1f8dc48f0caba18d3c)) 36 | * cargo-count ([09042089](https://github.com/kbknapp/cargo-extras/commit/090420890bf413e22a407d12261bceaf79037633)) 37 | 38 | #### Additions 39 | 40 | * cargo-vendor ([f69b8a5b](https://github.com/kbknapp/cargo-extras/commit/f69b8a5b398294b41c49e2ba90bdd9385e031929)) 41 | 42 | 43 | ### v0.2.3 (2015-12-11) 44 | 45 | #### Documentation 46 | 47 | * removes requirement for nightly compiler ([e44cd2e0](https://github.com/kbknapp/cargo-extras/commit/e44cd2e0e31114b735496818606381cc883fbabc)) 48 | * **README.md:** 49 | * updates install instructions to specify nightly rustc ([36886b44](https://github.com/kbknapp/cargo-extras/commit/36886b441a2a749f3bca154af1ca5410233be657)) 50 | * lists cargo-watch version ([2d18ef98](https://github.com/kbknapp/cargo-extras/commit/2d18ef983f09cbe255208d6dd81b2a052727b722)) 51 | * lists cargo-script version ([848797d3](https://github.com/kbknapp/cargo-extras/commit/848797d3a12e382275c90d884060b22f4805c324)) 52 | * lists cargo-open version ([8575578f](https://github.com/kbknapp/cargo-extras/commit/8575578f8eb440dae7124a70f2136c159be61e33)) 53 | * lists cargo-fmt version ([c2309c64](https://github.com/kbknapp/cargo-extras/commit/c2309c6442a5563e02c75ec22a2b8d513a1a585a)) 54 | * lists cargo-edit version ([982097b1](https://github.com/kbknapp/cargo-extras/commit/982097b157e0cbf36d32f2a281d5ac33767d57f9)) 55 | * lists cargo-do version ([5ad128ba](https://github.com/kbknapp/cargo-extras/commit/5ad128bafff7a140ef83ef539d669ba2b86ba0e9)) 56 | * lists cargo-config version ([2d3d9b72](https://github.com/kbknapp/cargo-extras/commit/2d3d9b72193ed17941c9fbe453f9d7a671513ae7)) 57 | * lists cargo-check version ([26d78fcf](https://github.com/kbknapp/cargo-extras/commit/26d78fcff3d2126b08447472b3a6fec1a3193c4e)) 58 | * lists cargo-outdated version ([377e962a](https://github.com/kbknapp/cargo-extras/commit/377e962afc5e475f7d577814d2aa93ae9a1006a4)) 59 | * lists cargo-graph version ([06f154f6](https://github.com/kbknapp/cargo-extras/commit/06f154f6c9edbbccc9fd8e20f5ce7f9638fa0582)) 60 | * lists version of cargo-count ([18d117ff](https://github.com/kbknapp/cargo-extras/commit/18d117ff1a4e134a608c70befe3cd444a22e8138)) 61 | 62 | #### Updates 63 | 64 | * cargo-graph to v0.2.0 ([e6a483a7](https://github.com/kbknapp/cargo-extras/commit/e6a483a7ab91b5cf408e7e9c4ad658eb0544d4c9)) 65 | * cargo-script builds on stable rustc ([d8c4eecc](https://github.com/kbknapp/cargo-extras/commit/d8c4eecc839dbca4a4813d53da4efcb924142aeb)) 66 | * updates cargo-edit and cargo-script ([8b97ae78](https://github.com/kbknapp/cargo-extras/commit/8b97ae785e5deab8378549f8ed77319e8c9e2a5a)) 67 | 68 | #### Bug Fixes 69 | 70 | * had to remove cargo-clippy due to external lib requirement. Hope to resolve soon ([2fb5bec8](https://github.com/kbknapp/cargo-extras/commit/2fb5bec8185fccb29944c030b2135e4cc5196d11)) 71 | * had to remove cargo-clippy due to external lib requirement. Hope to resolve soon ([ac61c644](https://github.com/kbknapp/cargo-extras/commit/ac61c644d76c98cfd726941ca2532244d4f55ff4)) 72 | * had to remove cargo-clippy due to external lib requirement. Hope to resolve soon ([ac61c644](https://github.com/kbknapp/cargo-extras/commit/ac61c644d76c98cfd726941ca2532244d4f55ff4)) 73 | 74 | 75 | ### v0.1.2 (2015-12-08) 76 | 77 | 78 | #### Additions 79 | 80 | * cargo-clippy ([28406706](https://github.com/kbknapp/cargo-extras/commit/284067061bf597627ff19f3477336fa290271551)) 81 | * adds cargo-edit ([bc4c9c68](https://github.com/kbknapp/cargo-extras/commit/bc4c9c6842cdb5114c6df050e40f58dfc936d50e), closes [#1](https://github.com/kbknapp/cargo-extras/issues/1)) 82 | 83 | #### Updates 84 | 85 | * updates cargo-edit and cargo-script ([8b97ae78](https://github.com/kbknapp/cargo-extras/commit/8b97ae785e5deab8378549f8ed77319e8c9e2a5a)) 86 | * cargo-outdated ([271ff0ed](https://github.com/kbknapp/cargo-extras/commit/271ff0edb59b881dc6cf816ffd594f191a5faa61)) 87 | * cargo-graph ([72932419](https://github.com/kbknapp/cargo-extras/commit/72932419da475f91e4923d0d5c5c519b582076a1)) 88 | * cargo-fmt ([102eb826](https://github.com/kbknapp/cargo-extras/commit/102eb826aa0997476723b238f3366e21655bef0b)) 89 | * cargo-edit ([d65eff3d](https://github.com/kbknapp/cargo-extras/commit/d65eff3daf071888640c6bdd7c60a8b5113b5786)) 90 | * cargo-count ([ada760a2](https://github.com/kbknapp/cargo-extras/commit/ada760a287ae328fdaa502a562e860824f4b74c2)) 91 | 92 | #### Documentation 93 | 94 | * **README.md:** 95 | * updates install instructions to specify nightly rustc ([36886b44](https://github.com/kbknapp/cargo-extras/commit/36886b441a2a749f3bca154af1ca5410233be657)) 96 | * lists cargo-watch version ([d4e1a859](https://github.com/kbknapp/cargo-extras/commit/d4e1a8592020e32544acc24074f043cac780f683)) 97 | * lists cargo-script version ([29d3c72c](https://github.com/kbknapp/cargo-extras/commit/29d3c72c4351fc3d68dcfe0ea2eb716de726087f)) 98 | * lists cargo-open version ([821fed3e](https://github.com/kbknapp/cargo-extras/commit/821fed3e8853d5cc54a5265cd9a15e5fa1bd16aa)) 99 | * lists cargo-fmt version ([9150e355](https://github.com/kbknapp/cargo-extras/commit/9150e355ac75c410f50e6ec46c0f5bfd48335987)) 100 | * lists cargo-edit version ([ebafd156](https://github.com/kbknapp/cargo-extras/commit/ebafd15632201a57b3da9f374a3cbfdbc6a24911)) 101 | * lists cargo-do version ([d530dac6](https://github.com/kbknapp/cargo-extras/commit/d530dac637a9fbe90771d488f60fc50b05a45afa)) 102 | * lists cargo-config version ([1a213092](https://github.com/kbknapp/cargo-extras/commit/1a2130925d3a551f23074c78593ad5281d54bc04)) 103 | * lists cargo-check version ([7c7db135](https://github.com/kbknapp/cargo-extras/commit/7c7db135887ebf17af7b9974017c8b9f82965077)) 104 | * lists cargo-outdated version ([3b5a82cd](https://github.com/kbknapp/cargo-extras/commit/3b5a82cd0efb58a8b5ace093faf8f87da7498bd2)) 105 | * lists cargo-graph version ([c6472897](https://github.com/kbknapp/cargo-extras/commit/c6472897fa079f0ae8725e7027fc549fdafd3703)) 106 | * lists version of cargo-count ([6336a493](https://github.com/kbknapp/cargo-extras/commit/6336a493a6d933fb2dda28b4dff198a6dac34c74)) 107 | 108 | 109 | 110 | 111 | ### v0.2.1 (2015-11-30) 112 | 113 | 114 | #### Updates 115 | 116 | * updates cargo-edit and cargo-script ([ea921d05](https://github.com/kbknapp/cargo-extras/commit/ea921d0548cfe332358d43920b4c40cdb88be556)) 117 | 118 | 119 | 120 | 121 | ## v0.2.0 (2015-11-21) 122 | 123 | 124 | #### Updates 125 | 126 | * cargo-outdated ([271ff0ed](https://github.com/kbknapp/cargo-extras/commit/271ff0edb59b881dc6cf816ffd594f191a5faa61)) 127 | * cargo-graph ([72932419](https://github.com/kbknapp/cargo-extras/commit/72932419da475f91e4923d0d5c5c519b582076a1)) 128 | * cargo-fmt ([102eb826](https://github.com/kbknapp/cargo-extras/commit/102eb826aa0997476723b238f3366e21655bef0b)) 129 | * cargo-edit ([d65eff3d](https://github.com/kbknapp/cargo-extras/commit/d65eff3daf071888640c6bdd7c60a8b5113b5786)) 130 | * cargo-count ([ada760a2](https://github.com/kbknapp/cargo-extras/commit/ada760a287ae328fdaa502a562e860824f4b74c2)) 131 | 132 | #### Additions 133 | 134 | * adds cargo-edit ([bc4c9c68](https://github.com/kbknapp/cargo-extras/commit/bc4c9c6842cdb5114c6df050e40f58dfc936d50e), closes [#1](https://github.com/kbknapp/cargo-extras/issues/1)) 135 | 136 | 137 | 138 | 139 | ## v0.1.0 (2015-11-14) 140 | 141 | 142 | #### Bug Fixes 143 | 144 | * removes cargo-edit due to extern crates ([4cc24f26](https://github.com/kbknapp/cargo-extras/commit/4cc24f260f568e6d8231c5e99cac9c251c6d874e)) 145 | * removes cargo-clippy due to nightly requirement ([c22db9ca](https://github.com/kbknapp/cargo-extras/commit/c22db9cab2375eef9bf6e1b00dfb69009d7c8e8d)) 146 | 147 | #### Documentation 148 | 149 | * fixes a typo in readme ([baf6bb6f](https://github.com/kbknapp/cargo-extras/commit/baf6bb6f068eb632956495c99884f70c03f94427)) 150 | 151 | #### Additions 152 | 153 | * adds cargo-open ([5f42d257](https://github.com/kbknapp/cargo-extras/commit/5f42d257633b623edfb534c10685275884216d76)) 154 | * adds cargo-watch ([8020744f](https://github.com/kbknapp/cargo-extras/commit/8020744f2285333ceb1befc0514e016639452955)) 155 | * adds cargo-script ([3ddb19d8](https://github.com/kbknapp/cargo-extras/commit/3ddb19d8bb93c992dd1704cc249c1fd9b0d10918)) 156 | * adds cargo-fmt ([e9f5557c](https://github.com/kbknapp/cargo-extras/commit/e9f5557ce191f0c6db905efd04f1cb3bfa927eb3)) 157 | * adds cargo-edit ([515dff60](https://github.com/kbknapp/cargo-extras/commit/515dff601950e2077e338b183ac0e121fffb86fd)) 158 | * adds cargo-do ([cc7f8d8a](https://github.com/kbknapp/cargo-extras/commit/cc7f8d8ab8d2b3e5170eacf81c798aa3a7c056f3)) 159 | * adds cargo-check ([5a988502](https://github.com/kbknapp/cargo-extras/commit/5a988502e8f6d550332e580faa4fbeb43761576d)) 160 | * adds cargo-graph, cargo-count, and cargo-outdated ([cffb206f](https://github.com/kbknapp/cargo-extras/commit/cffb206f6449117801e033f31e373e11fc9afed3)) 161 | 162 | 163 | 164 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | [root] 2 | name = "cargo-extras" 3 | version = "0.3.0" 4 | dependencies = [ 5 | "ansi_term 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 6 | "assert_cli 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 7 | "cargo 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", 8 | "cargo-edit 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 9 | "clap 2.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 10 | "curl 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", 11 | "docopt 0.6.80 (registry+https://github.com/rust-lang/crates.io-index)", 12 | "env_logger 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 13 | "git2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 14 | "gitignore 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 15 | "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 16 | "hoedown 3.0.5 (registry+https://github.com/rust-lang/crates.io-index)", 17 | "lazy_static 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 18 | "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 19 | "notify 2.5.5 (registry+https://github.com/rust-lang/crates.io-index)", 20 | "pad 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 21 | "quick-error 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 22 | "regex 0.1.69 (registry+https://github.com/rust-lang/crates.io-index)", 23 | "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", 24 | "semver 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 25 | "shaman 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 26 | "tabwriter 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 27 | "tempdir 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 28 | "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", 29 | "toml 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)", 30 | "url 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)", 31 | ] 32 | 33 | [[package]] 34 | name = "advapi32-sys" 35 | version = "0.1.2" 36 | source = "registry+https://github.com/rust-lang/crates.io-index" 37 | dependencies = [ 38 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 39 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 40 | ] 41 | 42 | [[package]] 43 | name = "aho-corasick" 44 | version = "0.5.2" 45 | source = "registry+https://github.com/rust-lang/crates.io-index" 46 | dependencies = [ 47 | "memchr 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 48 | ] 49 | 50 | [[package]] 51 | name = "ansi_term" 52 | version = "0.6.3" 53 | source = "registry+https://github.com/rust-lang/crates.io-index" 54 | 55 | [[package]] 56 | name = "ansi_term" 57 | version = "0.7.2" 58 | source = "registry+https://github.com/rust-lang/crates.io-index" 59 | 60 | [[package]] 61 | name = "assert_cli" 62 | version = "0.2.1" 63 | source = "registry+https://github.com/rust-lang/crates.io-index" 64 | dependencies = [ 65 | "ansi_term 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)", 66 | "difference 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 67 | ] 68 | 69 | [[package]] 70 | name = "bitflags" 71 | version = "0.1.1" 72 | source = "registry+https://github.com/rust-lang/crates.io-index" 73 | 74 | [[package]] 75 | name = "bitflags" 76 | version = "0.4.0" 77 | source = "registry+https://github.com/rust-lang/crates.io-index" 78 | 79 | [[package]] 80 | name = "bitflags" 81 | version = "0.5.0" 82 | source = "registry+https://github.com/rust-lang/crates.io-index" 83 | 84 | [[package]] 85 | name = "bytes" 86 | version = "0.3.0" 87 | source = "registry+https://github.com/rust-lang/crates.io-index" 88 | 89 | [[package]] 90 | name = "cargo" 91 | version = "0.6.1" 92 | source = "registry+https://github.com/rust-lang/crates.io-index" 93 | dependencies = [ 94 | "advapi32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 95 | "crates-io 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 96 | "crossbeam 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 97 | "curl 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", 98 | "docopt 0.6.80 (registry+https://github.com/rust-lang/crates.io-index)", 99 | "env_logger 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 100 | "filetime 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 101 | "flate2 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)", 102 | "git2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 103 | "git2-curl 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 104 | "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 105 | "kernel32-sys 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 106 | "libc 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 107 | "libgit2-sys 0.3.12 (registry+https://github.com/rust-lang/crates.io-index)", 108 | "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 109 | "num_cpus 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 110 | "regex 0.1.69 (registry+https://github.com/rust-lang/crates.io-index)", 111 | "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", 112 | "semver 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 113 | "tar 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 114 | "term 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", 115 | "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", 116 | "toml 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)", 117 | "url 0.2.38 (registry+https://github.com/rust-lang/crates.io-index)", 118 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 119 | ] 120 | 121 | [[package]] 122 | name = "cargo-edit" 123 | version = "0.1.2" 124 | source = "registry+https://github.com/rust-lang/crates.io-index" 125 | dependencies = [ 126 | "curl 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", 127 | "docopt 0.6.80 (registry+https://github.com/rust-lang/crates.io-index)", 128 | "pad 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 129 | "quick-error 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 130 | "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", 131 | "semver 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 132 | "toml 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)", 133 | ] 134 | 135 | [[package]] 136 | name = "cfg-if" 137 | version = "0.1.0" 138 | source = "registry+https://github.com/rust-lang/crates.io-index" 139 | 140 | [[package]] 141 | name = "clap" 142 | version = "2.4.0" 143 | source = "registry+https://github.com/rust-lang/crates.io-index" 144 | dependencies = [ 145 | "ansi_term 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 146 | "bitflags 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 147 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 148 | "strsim 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 149 | "unicode-width 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 150 | "vec_map 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 151 | ] 152 | 153 | [[package]] 154 | name = "cmake" 155 | version = "0.1.17" 156 | source = "registry+https://github.com/rust-lang/crates.io-index" 157 | dependencies = [ 158 | "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", 159 | ] 160 | 161 | [[package]] 162 | name = "crates-io" 163 | version = "0.1.0" 164 | source = "registry+https://github.com/rust-lang/crates.io-index" 165 | dependencies = [ 166 | "curl 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", 167 | "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", 168 | ] 169 | 170 | [[package]] 171 | name = "crossbeam" 172 | version = "0.1.6" 173 | source = "registry+https://github.com/rust-lang/crates.io-index" 174 | 175 | [[package]] 176 | name = "curl" 177 | version = "0.2.19" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | dependencies = [ 180 | "curl-sys 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", 181 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 182 | "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 183 | "openssl-sys 0.7.10 (registry+https://github.com/rust-lang/crates.io-index)", 184 | "url 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 185 | ] 186 | 187 | [[package]] 188 | name = "curl-sys" 189 | version = "0.1.34" 190 | source = "registry+https://github.com/rust-lang/crates.io-index" 191 | dependencies = [ 192 | "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", 193 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 194 | "libz-sys 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 195 | "openssl-sys 0.7.10 (registry+https://github.com/rust-lang/crates.io-index)", 196 | "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 197 | ] 198 | 199 | [[package]] 200 | name = "difference" 201 | version = "0.4.1" 202 | source = "registry+https://github.com/rust-lang/crates.io-index" 203 | dependencies = [ 204 | "getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", 205 | ] 206 | 207 | [[package]] 208 | name = "docopt" 209 | version = "0.6.80" 210 | source = "registry+https://github.com/rust-lang/crates.io-index" 211 | dependencies = [ 212 | "regex 0.1.69 (registry+https://github.com/rust-lang/crates.io-index)", 213 | "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", 214 | "strsim 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 215 | ] 216 | 217 | [[package]] 218 | name = "env_logger" 219 | version = "0.3.3" 220 | source = "registry+https://github.com/rust-lang/crates.io-index" 221 | dependencies = [ 222 | "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 223 | "regex 0.1.69 (registry+https://github.com/rust-lang/crates.io-index)", 224 | ] 225 | 226 | [[package]] 227 | name = "filetime" 228 | version = "0.1.10" 229 | source = "registry+https://github.com/rust-lang/crates.io-index" 230 | dependencies = [ 231 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 232 | ] 233 | 234 | [[package]] 235 | name = "flate2" 236 | version = "0.2.13" 237 | source = "registry+https://github.com/rust-lang/crates.io-index" 238 | dependencies = [ 239 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 240 | "miniz-sys 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 241 | ] 242 | 243 | [[package]] 244 | name = "fsevent" 245 | version = "0.2.14" 246 | source = "registry+https://github.com/rust-lang/crates.io-index" 247 | dependencies = [ 248 | "bitflags 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 249 | "fsevent-sys 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 250 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 251 | ] 252 | 253 | [[package]] 254 | name = "fsevent-sys" 255 | version = "0.1.5" 256 | source = "registry+https://github.com/rust-lang/crates.io-index" 257 | dependencies = [ 258 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 259 | ] 260 | 261 | [[package]] 262 | name = "gcc" 263 | version = "0.3.28" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | 266 | [[package]] 267 | name = "gdi32-sys" 268 | version = "0.1.1" 269 | source = "registry+https://github.com/rust-lang/crates.io-index" 270 | dependencies = [ 271 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 272 | ] 273 | 274 | [[package]] 275 | name = "getopts" 276 | version = "0.2.14" 277 | source = "registry+https://github.com/rust-lang/crates.io-index" 278 | 279 | [[package]] 280 | name = "git2" 281 | version = "0.3.4" 282 | source = "registry+https://github.com/rust-lang/crates.io-index" 283 | dependencies = [ 284 | "bitflags 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 285 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 286 | "libgit2-sys 0.3.12 (registry+https://github.com/rust-lang/crates.io-index)", 287 | "url 0.2.38 (registry+https://github.com/rust-lang/crates.io-index)", 288 | ] 289 | 290 | [[package]] 291 | name = "git2-curl" 292 | version = "0.3.0" 293 | source = "registry+https://github.com/rust-lang/crates.io-index" 294 | dependencies = [ 295 | "curl 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", 296 | "git2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 297 | "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 298 | "url 0.2.38 (registry+https://github.com/rust-lang/crates.io-index)", 299 | ] 300 | 301 | [[package]] 302 | name = "gitignore" 303 | version = "1.0.4" 304 | source = "registry+https://github.com/rust-lang/crates.io-index" 305 | dependencies = [ 306 | "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 307 | ] 308 | 309 | [[package]] 310 | name = "glob" 311 | version = "0.2.11" 312 | source = "registry+https://github.com/rust-lang/crates.io-index" 313 | 314 | [[package]] 315 | name = "hoedown" 316 | version = "3.0.5" 317 | source = "registry+https://github.com/rust-lang/crates.io-index" 318 | dependencies = [ 319 | "bitflags 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 320 | "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", 321 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 322 | ] 323 | 324 | [[package]] 325 | name = "idna" 326 | version = "0.1.0" 327 | source = "registry+https://github.com/rust-lang/crates.io-index" 328 | dependencies = [ 329 | "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 330 | "unicode-bidi 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 331 | "unicode-normalization 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 332 | ] 333 | 334 | [[package]] 335 | name = "inotify" 336 | version = "0.1.12" 337 | source = "registry+https://github.com/rust-lang/crates.io-index" 338 | dependencies = [ 339 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 340 | ] 341 | 342 | [[package]] 343 | name = "kernel32-sys" 344 | version = "0.1.4" 345 | source = "registry+https://github.com/rust-lang/crates.io-index" 346 | dependencies = [ 347 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 348 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 349 | ] 350 | 351 | [[package]] 352 | name = "kernel32-sys" 353 | version = "0.2.2" 354 | source = "registry+https://github.com/rust-lang/crates.io-index" 355 | dependencies = [ 356 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 357 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 358 | ] 359 | 360 | [[package]] 361 | name = "lazy_static" 362 | version = "0.1.16" 363 | source = "registry+https://github.com/rust-lang/crates.io-index" 364 | 365 | [[package]] 366 | name = "libc" 367 | version = "0.1.12" 368 | source = "registry+https://github.com/rust-lang/crates.io-index" 369 | 370 | [[package]] 371 | name = "libc" 372 | version = "0.2.11" 373 | source = "registry+https://github.com/rust-lang/crates.io-index" 374 | 375 | [[package]] 376 | name = "libgit2-sys" 377 | version = "0.3.12" 378 | source = "registry+https://github.com/rust-lang/crates.io-index" 379 | dependencies = [ 380 | "cmake 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 381 | "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", 382 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 383 | "libssh2-sys 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", 384 | "libz-sys 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 385 | "openssl-sys 0.7.10 (registry+https://github.com/rust-lang/crates.io-index)", 386 | "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 387 | ] 388 | 389 | [[package]] 390 | name = "libressl-pnacl-sys" 391 | version = "2.1.6" 392 | source = "registry+https://github.com/rust-lang/crates.io-index" 393 | dependencies = [ 394 | "pnacl-build-helper 1.4.10 (registry+https://github.com/rust-lang/crates.io-index)", 395 | ] 396 | 397 | [[package]] 398 | name = "libssh2-sys" 399 | version = "0.1.37" 400 | source = "registry+https://github.com/rust-lang/crates.io-index" 401 | dependencies = [ 402 | "cmake 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", 403 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 404 | "libz-sys 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", 405 | "openssl-sys 0.7.10 (registry+https://github.com/rust-lang/crates.io-index)", 406 | "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 407 | ] 408 | 409 | [[package]] 410 | name = "libz-sys" 411 | version = "1.0.3" 412 | source = "registry+https://github.com/rust-lang/crates.io-index" 413 | dependencies = [ 414 | "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", 415 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 416 | "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 417 | ] 418 | 419 | [[package]] 420 | name = "log" 421 | version = "0.3.6" 422 | source = "registry+https://github.com/rust-lang/crates.io-index" 423 | 424 | [[package]] 425 | name = "matches" 426 | version = "0.1.2" 427 | source = "registry+https://github.com/rust-lang/crates.io-index" 428 | 429 | [[package]] 430 | name = "memchr" 431 | version = "0.1.11" 432 | source = "registry+https://github.com/rust-lang/crates.io-index" 433 | dependencies = [ 434 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 435 | ] 436 | 437 | [[package]] 438 | name = "miniz-sys" 439 | version = "0.1.7" 440 | source = "registry+https://github.com/rust-lang/crates.io-index" 441 | dependencies = [ 442 | "gcc 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)", 443 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 444 | ] 445 | 446 | [[package]] 447 | name = "mio" 448 | version = "0.5.1" 449 | source = "registry+https://github.com/rust-lang/crates.io-index" 450 | dependencies = [ 451 | "bytes 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 452 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 453 | "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 454 | "miow 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 455 | "net2 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)", 456 | "nix 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 457 | "slab 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 458 | "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", 459 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 460 | ] 461 | 462 | [[package]] 463 | name = "miow" 464 | version = "0.1.2" 465 | source = "registry+https://github.com/rust-lang/crates.io-index" 466 | dependencies = [ 467 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 468 | "net2 0.2.23 (registry+https://github.com/rust-lang/crates.io-index)", 469 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 470 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 471 | ] 472 | 473 | [[package]] 474 | name = "net2" 475 | version = "0.2.23" 476 | source = "registry+https://github.com/rust-lang/crates.io-index" 477 | dependencies = [ 478 | "cfg-if 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 479 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 480 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 481 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 482 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 483 | ] 484 | 485 | [[package]] 486 | name = "nix" 487 | version = "0.5.0" 488 | source = "registry+https://github.com/rust-lang/crates.io-index" 489 | dependencies = [ 490 | "bitflags 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 491 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 492 | ] 493 | 494 | [[package]] 495 | name = "nom" 496 | version = "1.2.2" 497 | source = "registry+https://github.com/rust-lang/crates.io-index" 498 | 499 | [[package]] 500 | name = "notify" 501 | version = "2.5.5" 502 | source = "registry+https://github.com/rust-lang/crates.io-index" 503 | dependencies = [ 504 | "bitflags 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 505 | "filetime 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 506 | "fsevent 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", 507 | "fsevent-sys 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 508 | "inotify 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 509 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 510 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 511 | "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 512 | "mio 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 513 | "time 0.1.35 (registry+https://github.com/rust-lang/crates.io-index)", 514 | "walkdir 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 515 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 516 | ] 517 | 518 | [[package]] 519 | name = "num_cpus" 520 | version = "0.2.11" 521 | source = "registry+https://github.com/rust-lang/crates.io-index" 522 | dependencies = [ 523 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 524 | ] 525 | 526 | [[package]] 527 | name = "openssl-sys" 528 | version = "0.7.10" 529 | source = "registry+https://github.com/rust-lang/crates.io-index" 530 | dependencies = [ 531 | "gdi32-sys 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 532 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 533 | "libressl-pnacl-sys 2.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 534 | "pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 535 | "user32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 536 | ] 537 | 538 | [[package]] 539 | name = "pad" 540 | version = "0.1.4" 541 | source = "registry+https://github.com/rust-lang/crates.io-index" 542 | dependencies = [ 543 | "unicode-width 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 544 | ] 545 | 546 | [[package]] 547 | name = "pkg-config" 548 | version = "0.3.8" 549 | source = "registry+https://github.com/rust-lang/crates.io-index" 550 | 551 | [[package]] 552 | name = "pnacl-build-helper" 553 | version = "1.4.10" 554 | source = "registry+https://github.com/rust-lang/crates.io-index" 555 | dependencies = [ 556 | "tempdir 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 557 | ] 558 | 559 | [[package]] 560 | name = "quick-error" 561 | version = "0.1.4" 562 | source = "registry+https://github.com/rust-lang/crates.io-index" 563 | 564 | [[package]] 565 | name = "rand" 566 | version = "0.3.14" 567 | source = "registry+https://github.com/rust-lang/crates.io-index" 568 | dependencies = [ 569 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 570 | ] 571 | 572 | [[package]] 573 | name = "regex" 574 | version = "0.1.69" 575 | source = "registry+https://github.com/rust-lang/crates.io-index" 576 | dependencies = [ 577 | "aho-corasick 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", 578 | "memchr 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 579 | "regex-syntax 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 580 | "thread_local 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 581 | "utf8-ranges 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 582 | ] 583 | 584 | [[package]] 585 | name = "regex-syntax" 586 | version = "0.3.1" 587 | source = "registry+https://github.com/rust-lang/crates.io-index" 588 | 589 | [[package]] 590 | name = "rustc-serialize" 591 | version = "0.3.19" 592 | source = "registry+https://github.com/rust-lang/crates.io-index" 593 | 594 | [[package]] 595 | name = "semver" 596 | version = "0.1.20" 597 | source = "registry+https://github.com/rust-lang/crates.io-index" 598 | 599 | [[package]] 600 | name = "semver" 601 | version = "0.2.3" 602 | source = "registry+https://github.com/rust-lang/crates.io-index" 603 | dependencies = [ 604 | "nom 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 605 | ] 606 | 607 | [[package]] 608 | name = "shaman" 609 | version = "0.1.0" 610 | source = "registry+https://github.com/rust-lang/crates.io-index" 611 | dependencies = [ 612 | "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", 613 | "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", 614 | ] 615 | 616 | [[package]] 617 | name = "slab" 618 | version = "0.1.3" 619 | source = "registry+https://github.com/rust-lang/crates.io-index" 620 | 621 | [[package]] 622 | name = "strsim" 623 | version = "0.3.0" 624 | source = "registry+https://github.com/rust-lang/crates.io-index" 625 | 626 | [[package]] 627 | name = "strsim" 628 | version = "0.4.1" 629 | source = "registry+https://github.com/rust-lang/crates.io-index" 630 | 631 | [[package]] 632 | name = "tabwriter" 633 | version = "0.1.25" 634 | source = "registry+https://github.com/rust-lang/crates.io-index" 635 | dependencies = [ 636 | "unicode-width 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 637 | ] 638 | 639 | [[package]] 640 | name = "tar" 641 | version = "0.3.4" 642 | source = "registry+https://github.com/rust-lang/crates.io-index" 643 | dependencies = [ 644 | "filetime 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 645 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 646 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 647 | ] 648 | 649 | [[package]] 650 | name = "tempdir" 651 | version = "0.3.4" 652 | source = "registry+https://github.com/rust-lang/crates.io-index" 653 | dependencies = [ 654 | "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", 655 | ] 656 | 657 | [[package]] 658 | name = "term" 659 | version = "0.2.14" 660 | source = "registry+https://github.com/rust-lang/crates.io-index" 661 | dependencies = [ 662 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 663 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 664 | ] 665 | 666 | [[package]] 667 | name = "thread-id" 668 | version = "2.0.0" 669 | source = "registry+https://github.com/rust-lang/crates.io-index" 670 | dependencies = [ 671 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 672 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 673 | ] 674 | 675 | [[package]] 676 | name = "thread_local" 677 | version = "0.2.5" 678 | source = "registry+https://github.com/rust-lang/crates.io-index" 679 | dependencies = [ 680 | "thread-id 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 681 | ] 682 | 683 | [[package]] 684 | name = "time" 685 | version = "0.1.35" 686 | source = "registry+https://github.com/rust-lang/crates.io-index" 687 | dependencies = [ 688 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 689 | "libc 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 690 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 691 | ] 692 | 693 | [[package]] 694 | name = "toml" 695 | version = "0.1.28" 696 | source = "registry+https://github.com/rust-lang/crates.io-index" 697 | dependencies = [ 698 | "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", 699 | ] 700 | 701 | [[package]] 702 | name = "unicode-bidi" 703 | version = "0.2.3" 704 | source = "registry+https://github.com/rust-lang/crates.io-index" 705 | dependencies = [ 706 | "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 707 | ] 708 | 709 | [[package]] 710 | name = "unicode-normalization" 711 | version = "0.1.2" 712 | source = "registry+https://github.com/rust-lang/crates.io-index" 713 | 714 | [[package]] 715 | name = "unicode-width" 716 | version = "0.1.3" 717 | source = "registry+https://github.com/rust-lang/crates.io-index" 718 | 719 | [[package]] 720 | name = "url" 721 | version = "0.2.38" 722 | source = "registry+https://github.com/rust-lang/crates.io-index" 723 | dependencies = [ 724 | "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 725 | "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", 726 | "uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 727 | ] 728 | 729 | [[package]] 730 | name = "url" 731 | version = "0.5.9" 732 | source = "registry+https://github.com/rust-lang/crates.io-index" 733 | dependencies = [ 734 | "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 735 | "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", 736 | "unicode-bidi 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 737 | "unicode-normalization 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 738 | "uuid 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 739 | ] 740 | 741 | [[package]] 742 | name = "url" 743 | version = "1.1.0" 744 | source = "registry+https://github.com/rust-lang/crates.io-index" 745 | dependencies = [ 746 | "idna 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 747 | "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 748 | ] 749 | 750 | [[package]] 751 | name = "user32-sys" 752 | version = "0.1.2" 753 | source = "registry+https://github.com/rust-lang/crates.io-index" 754 | dependencies = [ 755 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 756 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 757 | ] 758 | 759 | [[package]] 760 | name = "utf8-ranges" 761 | version = "0.1.3" 762 | source = "registry+https://github.com/rust-lang/crates.io-index" 763 | 764 | [[package]] 765 | name = "uuid" 766 | version = "0.1.18" 767 | source = "registry+https://github.com/rust-lang/crates.io-index" 768 | dependencies = [ 769 | "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", 770 | "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", 771 | ] 772 | 773 | [[package]] 774 | name = "uuid" 775 | version = "0.2.2" 776 | source = "registry+https://github.com/rust-lang/crates.io-index" 777 | dependencies = [ 778 | "rand 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)", 779 | ] 780 | 781 | [[package]] 782 | name = "vec_map" 783 | version = "0.6.0" 784 | source = "registry+https://github.com/rust-lang/crates.io-index" 785 | 786 | [[package]] 787 | name = "walkdir" 788 | version = "0.1.5" 789 | source = "registry+https://github.com/rust-lang/crates.io-index" 790 | dependencies = [ 791 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 792 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 793 | ] 794 | 795 | [[package]] 796 | name = "winapi" 797 | version = "0.2.6" 798 | source = "registry+https://github.com/rust-lang/crates.io-index" 799 | 800 | [[package]] 801 | name = "winapi-build" 802 | version = "0.1.1" 803 | source = "registry+https://github.com/rust-lang/crates.io-index" 804 | 805 | [[package]] 806 | name = "ws2_32-sys" 807 | version = "0.2.1" 808 | source = "registry+https://github.com/rust-lang/crates.io-index" 809 | dependencies = [ 810 | "winapi 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 811 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 812 | ] 813 | 814 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "cargo-extras" 3 | version = "0.3.0" 4 | license = "MIT" 5 | description = """ 6 | A collection of cargo subcommands: 7 | * cargo-check 8 | * cargo-clone 9 | * cargo-config 10 | * cargo-count 11 | * cargo-do 12 | * cargo-edit 13 | * cargo-graph 14 | * cargo-open 15 | * cargo-outdated 16 | * cargo-script 17 | * cargo-vendor 18 | * cargo-watch 19 | """ 20 | keywords = ["cargo", "subcommands", "command", "collection", "pack"] 21 | readme = "README.md" 22 | repository = "https://github.com/kbknapp/cargo-extras.git" 23 | authors = [ 24 | "Kevin K. ", # cargo-outdated, cargo-count, cargo-graph 25 | "Max New ", # cargo-grpah 26 | "Ray Solomon ", # cargo-check, cargo-clippy 27 | "Paul Woolcock ", # cargo-do, cargo-fmt 28 | "Without Boats ", # cargo-edit (add, rm, list) 29 | "Pascal Hertleif ", # cargo-edit (add, rm, list) 30 | "Daniel Keep ", # cargo-script 31 | "Félix Saparelli ", # cargo-watch 32 | "Antti Keränen ", # cargo-watch 33 | "Konstantin Stepanov ", # cargo-watch 34 | "Jonathan Neuschäfer ", # cargo-watch 35 | "Gabor Nagy ", # cargo-watch 36 | "Ivan Jager ", # cargo-watch 37 | "Christopher Brickley ", # cargo-watch 38 | "Wesley Wiser ", # cargo-config 39 | "Carol (Nichols || Goulding) ", # cargo-open 40 | "Alex Crichton ", # cargo-vendor 41 | ] 42 | 43 | [[bin]] 44 | name = "cargo-check" 45 | path = "src/cargo-check/src/main.rs" 46 | 47 | [[bin]] 48 | name = "cargo-count" 49 | path = "src/cargo-count/src/main.rs" 50 | 51 | [[bin]] 52 | name = "cargo-graph" 53 | path = "src/cargo-graph/src/main.rs" 54 | 55 | [[bin]] 56 | name = "cargo-outdated" 57 | path = "src/cargo-outdated/src/main.rs" 58 | 59 | [[bin]] 60 | name = "cargo-list" 61 | path = "src/cargo-edit/src/bin/list/main.rs" 62 | 63 | [[bin]] 64 | name = "cargo-add" 65 | path = "src/cargo-edit/src/bin/add/main.rs" 66 | 67 | [[bin]] 68 | name = "cargo-rm" 69 | path = "src/cargo-edit/src/bin/rm/main.rs" 70 | 71 | [[bin]] 72 | name = "cargo-script" 73 | path = "src/cargo-script/src/main.rs" 74 | 75 | [[bin]] 76 | name = "cargo-watch" 77 | path = "src/cargo-watch/src/main.rs" 78 | 79 | [[bin]] 80 | name = "cargo-config" 81 | path = "src/cargo-config/src/main.rs" 82 | 83 | [[bin]] 84 | name = "cargo-open" 85 | path = "src/cargo-open/src/main.rs" 86 | 87 | [[bin]] 88 | name = "cargo-vendor" 89 | path = "src/cargo-vendor/src/main.rs" 90 | 91 | [dependencies] 92 | ### cargo-count 93 | clap = "2.4.0" 94 | glob = "0.2.10" 95 | regex = "0.1.44" 96 | tabwriter = "0.1.24" 97 | gitignore = "1.0.2" 98 | ansi_term = {version = "0.7.1", optional = true} 99 | ### cargo-graph 100 | toml = "0.1.25" 101 | ### cargo-outdated 102 | semver = "0.2.0" 103 | tempdir = "0.3.4" 104 | ### cargo-edit 105 | pad = "0.1.4" 106 | curl = "0.2.15" 107 | quick-error = "0.1.4" 108 | cargo-edit = "0.1.0" 109 | ### cargo-script 110 | env_logger = "0.3.2" 111 | hoedown = "3.0.3" 112 | lazy_static = "0.1.15" 113 | log = "0.3.4" 114 | rustc-serialize = "0.3.16" 115 | shaman = "0.1.0" 116 | time = "0.1.34" 117 | ### cargo-watch 118 | docopt = "0.6.78" 119 | notify = "2.5.2" 120 | ### cargo-clippy 121 | ### cargo-config 122 | ### cargo-open 123 | cargo = "0.6.1" 124 | ### cargo-vendor 125 | url = "0.5.2" 126 | git2 = "0.3.3" 127 | 128 | [dev-dependencies] 129 | ## cargo-edit 130 | assert_cli = "0.2.0" 131 | tempdir = "0.3" 132 | 133 | [features] 134 | default = ["color"] 135 | color = ["ansi_term"] 136 | -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Max New, Kevin Knapp 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of cargo-dot nor the names of its 15 | contributors may be used to endorse or promote products derived from 16 | this software without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # cargo-extras 2 | 3 | Linux: [![Travis](https://img.shields.io/travis/kbknapp/cargo-extras.svg)](https://travis-ci.org/kbknapp/cargo-extras) 4 | 5 | Latest on crates.io: [![Crates.io](https://img.shields.io/crates/v/cargo-extras.svg)](https://crates.io/crates/cargo-extras) 6 | 7 | Latest on Github: [![GitHub release](https://img.shields.io/github/release/kbknapp/cargo-extras.svg)](https://github.com/kbknapp/cargo-extras/releases) 8 | 9 | A collection of [cargo](https://github.com/rust-lang/cargo) subcommands for use while working on [Rust](https://www.rust-lang.org/) source code and projects. This repository and package aims to make it easy to install all the additional commands at once. 10 | 11 | ## Installing 12 | 13 | You can install all of the subcommands included in `cargo-extras` with a single `cargo install`. 14 | 15 | ### Prerequisites 16 | 17 | Because one of the subcommands requires `cmake` to build, you must have `cmake` installed on your system. Follow your operating system's guidance for installing this package. 18 | 19 | ### Primary Method: `cargo install` 20 | 21 | To install from [crates.io](https://crates.io) simply run 22 | 23 | ``` 24 | $ cargo install cargo-extras 25 | ``` 26 | 27 | Alternatively you can track the latest on the master branch in this repo (if the version badges above are different, the master branch here may contain bleeding edge updates that haven't been released to the crates.io version): 28 | 29 | ``` 30 | $ cargo install --git https://github.com/kbknapp/cargo-extras 31 | ``` 32 | 33 | To see all the commands that are now installed (to include standard `cargo` commands): 34 | 35 | ``` 36 | $ cargo --list 37 | ``` 38 | 39 | If you get an error about the `install` command not being found, or are using `multirust`[1](https://github.com/Diggsey/multirust-rs),[2](https://github.com/brson/multirust) you could run: 40 | 41 | ``` 42 | $ multirust run nightly cargo install cargo-extras 43 | ``` 44 | 45 | **Note:** As of Rust 1.5 the `cargo install` command is included, no more requirement to use a nightly compiler. So if you are receiving the above error, and using a stable compiler version, ensure that you have at least Rust 1.5 46 | 47 | You may also, instead compile and install the traditional way by following the instructions below. 48 | 49 | #### OSX Specific Issue 50 | 51 | On El Capitan there is an issue with `openssl-sys` (see [the related issue](https://github.com/sfackler/rust-openssl/issues/255)) which can be solved by running these two commands (assuming you have [Homebrew](http://brew.sh)) 52 | 53 | ``` 54 | $ brew install openssl 55 | $ OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include cargo install cargo-extras 56 | ``` 57 | 58 | ### Alternate Method: Compiling 59 | 60 | Follow these instructions to compile `cargo-extras`, then skip down to Installation. 61 | 62 | 1. Ensure you have current version of `cargo` and [Rust](https://www.rust-lang.org) installed 63 | 2. Clone the project `$ git clone --recursive https://github.com/kbknapp/cargo-extras && cd cargo-extras` 64 | 3. Build the project `$ cargo build --release` (**NOTE:** There is a large performance difference when compiling without optimizations, so I recommend always using `--release` to enable to them) 65 | 4. Once complete, all the binaries will be located at `target/release/` 66 | 67 | #### Installation 68 | 69 | All you need to do is place the binary subcommands somewhere in your `$PATH`. Then run `cargo ` anywhere in your project directory. Example: 70 | 71 | ``` 72 | $ cp target/release/cargo-* ~/.bin 73 | ``` 74 | 75 | In the above example, the `.bin` directory inside my home directory is inside my `$PATH` 76 | 77 | ###### Linux / OS X 78 | 79 | You have two options, place `cargo-count` into a directory that is already located in your `$PATH` variable (To see which directories those are, open a terminal and type `echo "${PATH//:/\n}"`, the quotation marks are important), or you can add a custom directory to your `$PATH` 80 | 81 | **Option 1** 82 | If you have write permission to a directory listed in your `$PATH` or you have root permission (or via `sudo`), simply copy the binaries `$ cp target/release/cargo-*` to that directory `# sudo cp target/release/cargo-* /usr/local/bin` 83 | 84 | **Option 2** 85 | If you do not have root, `sudo`, or write permission to any directory already in `$PATH` you can create a directory inside your home directory, and add that. Many people use `$HOME/.bin` to keep it hidden (and not clutter your home directory), or `$HOME/bin` if you want it to be always visible. Here is an example to make the directory, add it to `$PATH`, and copy the binaries there. 86 | 87 | Simply change `bin` to whatever you'd like to name the directory, and `.bashrc` to whatever your shell startup file is (usually `.bashrc`, `.bash_profile`, or `.zshrc`) 88 | 89 | ``` 90 | $ mkdir ~/bin 91 | $ echo "export PATH=$PATH:$HOME/bin" >> ~/.bashrc 92 | $ cp target/release/cargo-* ~/bin 93 | $ source ~/.bashrc 94 | ``` 95 | 96 | ##### Windows 97 | 98 | On Windows 7/8 you can add directory to the `PATH` variable by opening a command line as an administrator and running 99 | 100 | ``` 101 | C:\> setx path "%path%;C:\path\to\cargo\binaries" 102 | ``` 103 | 104 | Otherwise, ensure you have the binaries in the directory which you operating in the command line from, because Windows automatically adds your current directory to `PATH` (i.e. if you open a command line to `C:\my_project\\` to use `cargo-count` ensure `cargo-count.exe` is inside that directory as well). 105 | 106 | ## Included Subcommands 107 | 108 | `cargo-extras` currently includes the following subcommands (commits listed for subcommands not using `git tag`s): 109 | 110 | * [cargo-check](https://github.com/rsolomo/cargo-check) - a wrapper around `cargo rustc -- -Zno-trans` which can be helpful for running a faster compile if you only need correctness checks 111 | * [cargo-clone](https://github.com/JanLikar/cargo-clone) 112 | * [cargo-config](https://github.com/wesleywiser/cargo-config) - prints info about the current crate 113 | * [cargo-count](https://github.com/kbknapp/cargo-count) - lists source code counts and details about cargo projects, including unsafe statistics 114 | * [cargo-do](https://github.com/pwoolcoc/cargo-do) - run multiple `cargo` commands in a row 115 | * [cargo-edit](https://github.com/killercup/cargo-edit) - allows you to add and remove dependencies from the command line. Installs `cargo-add`, `cargo-rm`, and `cargo-list`. 116 | * [cargo-graph](https://github.com/kbknapp/cargo-graph) - builds dependency graphs using GraphViz `dot` and is an updated fork of [cargo-dot](https://github.com/maxsnew/cargo-dot) with additional features 117 | * [cargo-open](https://github.com/carols10cents/cargo-open) - quickly open a crate in your `$EDITOR` 118 | * [cargo-outdated](https://github.com/kbknapp/cargo-outdated) - displays when newer versions of Rust dependencies are available, or out of date 119 | * [cargo-script](https://github.com/DanielKeep/cargo-script) - lets people quickly and easily run Rust "scripts" which can make use of Cargo's package ecosystem 120 | * [cargo-vendor](https://github.com/alexcrichton/cargo-vendor) - a proof-of-concept Cargo subcommand which is used to vendor all crates.io dependencies into a local directory. 121 | * [cargo-watch](https://github.com/passcod/cargo-watch) - utility for `cargo` to compile projects when sources change 122 | 123 | ## License 124 | 125 | `cargo-extras` is released under the terms of the MIT. See the LICENSE-MIT file for the details. The subcommands themselves may be released under different licenes, see the [src](src) and the binary in question, most commands have a license file included with them. 126 | -------------------------------------------------------------------------------- /src/cargo-clone/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | target-install 3 | -------------------------------------------------------------------------------- /src/cargo-clone/Cargo.lock: -------------------------------------------------------------------------------- 1 | [root] 2 | name = "cargo-clone" 3 | version = "0.1.0" 4 | dependencies = [ 5 | "cargo 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 6 | "docopt 0.6.78 (registry+https://github.com/rust-lang/crates.io-index)", 7 | "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", 8 | "walkdir 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 9 | ] 10 | 11 | [[package]] 12 | name = "advapi32-sys" 13 | version = "0.1.2" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | dependencies = [ 16 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 17 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 18 | ] 19 | 20 | [[package]] 21 | name = "aho-corasick" 22 | version = "0.4.0" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | dependencies = [ 25 | "memchr 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 26 | ] 27 | 28 | [[package]] 29 | name = "bitflags" 30 | version = "0.1.1" 31 | source = "registry+https://github.com/rust-lang/crates.io-index" 32 | 33 | [[package]] 34 | name = "cargo" 35 | version = "0.9.0" 36 | source = "registry+https://github.com/rust-lang/crates.io-index" 37 | dependencies = [ 38 | "advapi32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 39 | "crates-io 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 40 | "crossbeam 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", 41 | "curl 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)", 42 | "docopt 0.6.78 (registry+https://github.com/rust-lang/crates.io-index)", 43 | "env_logger 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 44 | "filetime 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 45 | "flate2 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 46 | "git2 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 47 | "git2-curl 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 48 | "glob 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", 49 | "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 50 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 51 | "libgit2-sys 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 52 | "log 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 53 | "num_cpus 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", 54 | "regex 0.1.46 (registry+https://github.com/rust-lang/crates.io-index)", 55 | "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", 56 | "semver 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 57 | "tar 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 58 | "term 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 59 | "time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", 60 | "toml 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", 61 | "url 0.2.38 (registry+https://github.com/rust-lang/crates.io-index)", 62 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 63 | ] 64 | 65 | [[package]] 66 | name = "cmake" 67 | version = "0.1.12" 68 | source = "registry+https://github.com/rust-lang/crates.io-index" 69 | dependencies = [ 70 | "gcc 0.3.21 (registry+https://github.com/rust-lang/crates.io-index)", 71 | ] 72 | 73 | [[package]] 74 | name = "crates-io" 75 | version = "0.1.0" 76 | source = "registry+https://github.com/rust-lang/crates.io-index" 77 | dependencies = [ 78 | "curl 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)", 79 | "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", 80 | ] 81 | 82 | [[package]] 83 | name = "crossbeam" 84 | version = "0.2.9" 85 | source = "registry+https://github.com/rust-lang/crates.io-index" 86 | 87 | [[package]] 88 | name = "curl" 89 | version = "0.2.15" 90 | source = "registry+https://github.com/rust-lang/crates.io-index" 91 | dependencies = [ 92 | "curl-sys 0.1.30 (registry+https://github.com/rust-lang/crates.io-index)", 93 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 94 | "log 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 95 | "openssl-sys 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", 96 | "url 0.2.38 (registry+https://github.com/rust-lang/crates.io-index)", 97 | ] 98 | 99 | [[package]] 100 | name = "curl-sys" 101 | version = "0.1.30" 102 | source = "registry+https://github.com/rust-lang/crates.io-index" 103 | dependencies = [ 104 | "gcc 0.3.21 (registry+https://github.com/rust-lang/crates.io-index)", 105 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 106 | "libz-sys 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 107 | "openssl-sys 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", 108 | "pkg-config 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 109 | ] 110 | 111 | [[package]] 112 | name = "docopt" 113 | version = "0.6.78" 114 | source = "registry+https://github.com/rust-lang/crates.io-index" 115 | dependencies = [ 116 | "regex 0.1.46 (registry+https://github.com/rust-lang/crates.io-index)", 117 | "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", 118 | "strsim 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 119 | ] 120 | 121 | [[package]] 122 | name = "env_logger" 123 | version = "0.3.2" 124 | source = "registry+https://github.com/rust-lang/crates.io-index" 125 | dependencies = [ 126 | "log 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 127 | "regex 0.1.46 (registry+https://github.com/rust-lang/crates.io-index)", 128 | ] 129 | 130 | [[package]] 131 | name = "filetime" 132 | version = "0.1.9" 133 | source = "registry+https://github.com/rust-lang/crates.io-index" 134 | dependencies = [ 135 | "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 136 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 137 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 138 | ] 139 | 140 | [[package]] 141 | name = "flate2" 142 | version = "0.2.11" 143 | source = "registry+https://github.com/rust-lang/crates.io-index" 144 | dependencies = [ 145 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 146 | "miniz-sys 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 147 | ] 148 | 149 | [[package]] 150 | name = "gcc" 151 | version = "0.3.21" 152 | source = "registry+https://github.com/rust-lang/crates.io-index" 153 | dependencies = [ 154 | "advapi32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 155 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 156 | ] 157 | 158 | [[package]] 159 | name = "gdi32-sys" 160 | version = "0.1.1" 161 | source = "registry+https://github.com/rust-lang/crates.io-index" 162 | dependencies = [ 163 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 164 | ] 165 | 166 | [[package]] 167 | name = "git2" 168 | version = "0.4.2" 169 | source = "registry+https://github.com/rust-lang/crates.io-index" 170 | dependencies = [ 171 | "bitflags 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 172 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 173 | "libgit2-sys 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 174 | "url 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)", 175 | ] 176 | 177 | [[package]] 178 | name = "git2-curl" 179 | version = "0.4.0" 180 | source = "registry+https://github.com/rust-lang/crates.io-index" 181 | dependencies = [ 182 | "curl 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)", 183 | "git2 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 184 | "log 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 185 | "url 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)", 186 | ] 187 | 188 | [[package]] 189 | name = "glob" 190 | version = "0.2.10" 191 | source = "registry+https://github.com/rust-lang/crates.io-index" 192 | 193 | [[package]] 194 | name = "kernel32-sys" 195 | version = "0.2.1" 196 | source = "registry+https://github.com/rust-lang/crates.io-index" 197 | dependencies = [ 198 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 199 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 200 | ] 201 | 202 | [[package]] 203 | name = "libc" 204 | version = "0.2.4" 205 | source = "registry+https://github.com/rust-lang/crates.io-index" 206 | 207 | [[package]] 208 | name = "libgit2-sys" 209 | version = "0.4.2" 210 | source = "registry+https://github.com/rust-lang/crates.io-index" 211 | dependencies = [ 212 | "cmake 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 213 | "gcc 0.3.21 (registry+https://github.com/rust-lang/crates.io-index)", 214 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 215 | "libssh2-sys 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)", 216 | "libz-sys 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 217 | "openssl-sys 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", 218 | "pkg-config 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 219 | ] 220 | 221 | [[package]] 222 | name = "libressl-pnacl-sys" 223 | version = "2.1.6" 224 | source = "registry+https://github.com/rust-lang/crates.io-index" 225 | dependencies = [ 226 | "pnacl-build-helper 1.4.10 (registry+https://github.com/rust-lang/crates.io-index)", 227 | ] 228 | 229 | [[package]] 230 | name = "libssh2-sys" 231 | version = "0.1.34" 232 | source = "registry+https://github.com/rust-lang/crates.io-index" 233 | dependencies = [ 234 | "cmake 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 235 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 236 | "libz-sys 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 237 | "openssl-sys 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", 238 | "pkg-config 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 239 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 240 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 241 | ] 242 | 243 | [[package]] 244 | name = "libz-sys" 245 | version = "1.0.0" 246 | source = "registry+https://github.com/rust-lang/crates.io-index" 247 | dependencies = [ 248 | "gcc 0.3.21 (registry+https://github.com/rust-lang/crates.io-index)", 249 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 250 | "pkg-config 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 251 | ] 252 | 253 | [[package]] 254 | name = "log" 255 | version = "0.3.4" 256 | source = "registry+https://github.com/rust-lang/crates.io-index" 257 | dependencies = [ 258 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 259 | ] 260 | 261 | [[package]] 262 | name = "matches" 263 | version = "0.1.2" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | 266 | [[package]] 267 | name = "memchr" 268 | version = "0.1.7" 269 | source = "registry+https://github.com/rust-lang/crates.io-index" 270 | dependencies = [ 271 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 272 | ] 273 | 274 | [[package]] 275 | name = "miniz-sys" 276 | version = "0.1.7" 277 | source = "registry+https://github.com/rust-lang/crates.io-index" 278 | dependencies = [ 279 | "gcc 0.3.21 (registry+https://github.com/rust-lang/crates.io-index)", 280 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 281 | ] 282 | 283 | [[package]] 284 | name = "nom" 285 | version = "1.1.0" 286 | source = "registry+https://github.com/rust-lang/crates.io-index" 287 | 288 | [[package]] 289 | name = "num_cpus" 290 | version = "0.2.10" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | dependencies = [ 293 | "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 294 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 295 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 296 | ] 297 | 298 | [[package]] 299 | name = "openssl-sys" 300 | version = "0.7.4" 301 | source = "registry+https://github.com/rust-lang/crates.io-index" 302 | dependencies = [ 303 | "gdi32-sys 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 304 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 305 | "libressl-pnacl-sys 2.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 306 | "pkg-config 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 307 | "user32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 308 | ] 309 | 310 | [[package]] 311 | name = "pkg-config" 312 | version = "0.3.6" 313 | source = "registry+https://github.com/rust-lang/crates.io-index" 314 | 315 | [[package]] 316 | name = "pnacl-build-helper" 317 | version = "1.4.10" 318 | source = "registry+https://github.com/rust-lang/crates.io-index" 319 | dependencies = [ 320 | "tempdir 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 321 | ] 322 | 323 | [[package]] 324 | name = "rand" 325 | version = "0.3.13" 326 | source = "registry+https://github.com/rust-lang/crates.io-index" 327 | dependencies = [ 328 | "advapi32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 329 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 330 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 331 | ] 332 | 333 | [[package]] 334 | name = "regex" 335 | version = "0.1.46" 336 | source = "registry+https://github.com/rust-lang/crates.io-index" 337 | dependencies = [ 338 | "aho-corasick 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 339 | "memchr 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 340 | "regex-syntax 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 341 | ] 342 | 343 | [[package]] 344 | name = "regex-syntax" 345 | version = "0.2.2" 346 | source = "registry+https://github.com/rust-lang/crates.io-index" 347 | 348 | [[package]] 349 | name = "rustc-serialize" 350 | version = "0.3.16" 351 | source = "registry+https://github.com/rust-lang/crates.io-index" 352 | 353 | [[package]] 354 | name = "semver" 355 | version = "0.2.3" 356 | source = "registry+https://github.com/rust-lang/crates.io-index" 357 | dependencies = [ 358 | "nom 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 359 | ] 360 | 361 | [[package]] 362 | name = "strsim" 363 | version = "0.3.0" 364 | source = "registry+https://github.com/rust-lang/crates.io-index" 365 | 366 | [[package]] 367 | name = "tar" 368 | version = "0.4.0" 369 | source = "registry+https://github.com/rust-lang/crates.io-index" 370 | dependencies = [ 371 | "filetime 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", 372 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 373 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 374 | ] 375 | 376 | [[package]] 377 | name = "tempdir" 378 | version = "0.3.4" 379 | source = "registry+https://github.com/rust-lang/crates.io-index" 380 | dependencies = [ 381 | "rand 0.3.13 (registry+https://github.com/rust-lang/crates.io-index)", 382 | ] 383 | 384 | [[package]] 385 | name = "term" 386 | version = "0.4.4" 387 | source = "registry+https://github.com/rust-lang/crates.io-index" 388 | dependencies = [ 389 | "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 390 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 391 | ] 392 | 393 | [[package]] 394 | name = "time" 395 | version = "0.1.34" 396 | source = "registry+https://github.com/rust-lang/crates.io-index" 397 | dependencies = [ 398 | "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 399 | "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 400 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 401 | ] 402 | 403 | [[package]] 404 | name = "toml" 405 | version = "0.1.25" 406 | source = "registry+https://github.com/rust-lang/crates.io-index" 407 | dependencies = [ 408 | "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", 409 | ] 410 | 411 | [[package]] 412 | name = "unicode-bidi" 413 | version = "0.2.3" 414 | source = "registry+https://github.com/rust-lang/crates.io-index" 415 | dependencies = [ 416 | "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 417 | ] 418 | 419 | [[package]] 420 | name = "unicode-normalization" 421 | version = "0.1.2" 422 | source = "registry+https://github.com/rust-lang/crates.io-index" 423 | 424 | [[package]] 425 | name = "url" 426 | version = "0.2.38" 427 | source = "registry+https://github.com/rust-lang/crates.io-index" 428 | dependencies = [ 429 | "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 430 | "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", 431 | "uuid 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 432 | ] 433 | 434 | [[package]] 435 | name = "url" 436 | version = "0.5.8" 437 | source = "registry+https://github.com/rust-lang/crates.io-index" 438 | dependencies = [ 439 | "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 440 | "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", 441 | "unicode-bidi 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 442 | "unicode-normalization 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 443 | "uuid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 444 | ] 445 | 446 | [[package]] 447 | name = "user32-sys" 448 | version = "0.1.2" 449 | source = "registry+https://github.com/rust-lang/crates.io-index" 450 | dependencies = [ 451 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 452 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 453 | ] 454 | 455 | [[package]] 456 | name = "uuid" 457 | version = "0.1.18" 458 | source = "registry+https://github.com/rust-lang/crates.io-index" 459 | dependencies = [ 460 | "rand 0.3.13 (registry+https://github.com/rust-lang/crates.io-index)", 461 | "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", 462 | ] 463 | 464 | [[package]] 465 | name = "uuid" 466 | version = "0.2.0" 467 | source = "registry+https://github.com/rust-lang/crates.io-index" 468 | dependencies = [ 469 | "rand 0.3.13 (registry+https://github.com/rust-lang/crates.io-index)", 470 | ] 471 | 472 | [[package]] 473 | name = "walkdir" 474 | version = "0.1.5" 475 | source = "registry+https://github.com/rust-lang/crates.io-index" 476 | dependencies = [ 477 | "kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 478 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 479 | ] 480 | 481 | [[package]] 482 | name = "winapi" 483 | version = "0.2.5" 484 | source = "registry+https://github.com/rust-lang/crates.io-index" 485 | 486 | [[package]] 487 | name = "winapi-build" 488 | version = "0.1.1" 489 | source = "registry+https://github.com/rust-lang/crates.io-index" 490 | 491 | [[package]] 492 | name = "ws2_32-sys" 493 | version = "0.2.1" 494 | source = "registry+https://github.com/rust-lang/crates.io-index" 495 | dependencies = [ 496 | "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 497 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 498 | ] 499 | 500 | -------------------------------------------------------------------------------- /src/cargo-clone/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "cargo-clone" 3 | version = "0.1.0" 4 | authors = ["Jan Likar "] 5 | description = "A cargo subcommand to fetch the source code of a Rust crate" 6 | documentation = "https://github.com/JanLikar/cargo-clone" 7 | homepage = "https://github.com/JanLikar/cargo-clone" 8 | repository = "https://github.com/JanLikar/cargo-clone" 9 | readme = "README.md" 10 | keywords = ["cargo", "subcommand", "clone"] 11 | license = "Apache-2.0/MIT" 12 | 13 | [dependencies] 14 | cargo = "0.9.0" 15 | docopt = "0.6" 16 | rustc-serialize = "0.3" 17 | walkdir = "0.1.5" 18 | -------------------------------------------------------------------------------- /src/cargo-clone/LICENSE-APACHE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /src/cargo-clone/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Jan Likar 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/cargo-clone/README.md: -------------------------------------------------------------------------------- 1 | _ 2 | ___ __ _ _ __ __ _ ___ ___| | ___ _ __ ___ 3 | / __/ _` | '__/ _` |/ _ \ _____ / __| |/ _ \| '_ \ / _ \ 4 | | (_| (_| | | | (_| | (_) |_____| (__| | (_) | | | | __/ 5 | \___\__,_|_| \__, |\___/ \___|_|\___/|_| |_|\___| 6 | |___/ 7 | 8 | cargo-clone is a 9 | [Cargo subcommand](https://github.com/rust-lang/cargo/wiki/Third-party-cargo-subcommands) 10 | which will eventually be bundled with Cargo. 11 | 12 | cargo-clone can be used to fetch the source code of a Rust crate. 13 | 14 | It can be installed using the install subcommand 15 | 16 | cargo install cargo-clone 17 | 18 | and can be used like this: 19 | 20 | cargo clone [options] [] 21 | -------------------------------------------------------------------------------- /src/cargo-clone/src/lib.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Jan Likar. 2 | // 3 | // Licensed under the Apache License, Version 2.0 or the MIT license 5 | // , at your 6 | // option. This file may not be copied, modified, or distributed 7 | // except according to those terms. 8 | 9 | extern crate cargo; 10 | extern crate walkdir; 11 | 12 | macro_rules! bail { 13 | ($($fmt:tt)*) => ( 14 | return Err(human(&format_args!($($fmt)*))) 15 | ) 16 | } 17 | 18 | pub mod ops { 19 | use std::path::{Path, PathBuf}; 20 | use std::fs; 21 | use std::env; 22 | 23 | use cargo::util::{CargoResult, Config, human}; 24 | use cargo::util::to_semver::ToSemver; 25 | use cargo::core::package_id::PackageId; 26 | use cargo::core::source::{Source, SourceId}; 27 | use cargo::core::registry::Registry; 28 | use cargo::core::dependency::Dependency; 29 | use cargo::sources::RegistrySource; 30 | 31 | use walkdir::WalkDir; 32 | 33 | pub fn clone(krate: Option<&str>, 34 | srcid: &SourceId, 35 | prefix: Option<&str>, 36 | vers: Option<&str>, 37 | config: Config) 38 | -> CargoResult<()> { 39 | 40 | let krate = match krate { 41 | Some(ref k) => k, 42 | None => bail!("specify which package to clone!"), 43 | }; 44 | 45 | let mut src = if srcid.is_registry() { 46 | RegistrySource::new(&srcid, &config) 47 | } 48 | else if srcid.is_path(){ 49 | //PathSource::new(PATH , &srcid, &config) 50 | unimplemented!(); 51 | } 52 | else { 53 | //GitSource::new(&srcid, &config) 54 | unimplemented!(); 55 | }; 56 | 57 | try!(src.update()); 58 | 59 | let vers = match vers { 60 | Some(v) => { 61 | match v.to_semver() { 62 | Ok(v) => v, 63 | Err(e) => bail!("{}", e), 64 | } 65 | }, 66 | None => { 67 | let dep = try!(Dependency::parse(krate, vers.as_ref().map(|s| &s[..]), &srcid)); 68 | let summaries = try!(src.query(&dep)); 69 | 70 | let latest = summaries.iter().max_by_key(|s| s.version()); 71 | 72 | match latest { 73 | Some(l) => l.version().to_semver().unwrap(), 74 | None => bail!("package '{}' not found", krate), 75 | } 76 | }, 77 | }; 78 | 79 | let pkgid = try!(PackageId::new(&krate, vers, srcid)); 80 | let krate = try!(src.download(&pkgid.clone())); 81 | 82 | // If prefix was not supplied, clone into current dir 83 | let mut dest_path = match prefix { 84 | Some(path) => PathBuf::from(path), 85 | None => try!(env::current_dir()) 86 | }; 87 | 88 | dest_path.push(krate.name()); 89 | 90 | try!(clone_directory(&krate.root(), &dest_path)); 91 | 92 | Ok(()) 93 | } 94 | 95 | fn clone_directory(from: &Path, to: &Path) -> CargoResult<()> { 96 | for entry in WalkDir::new(from) { 97 | let entry = entry.unwrap(); 98 | let file_type = entry.file_type(); 99 | let mut to = to.to_owned(); 100 | to.push(entry.path().strip_prefix(from).unwrap()); 101 | 102 | if file_type.is_file() && entry.file_name() != ".cargo-ok" { 103 | // .cargo-ok is not wanted in this context 104 | try!(fs::copy(&entry.path(), &to)); 105 | } 106 | else if file_type.is_dir() { 107 | try!(fs::create_dir(&to)); 108 | } 109 | } 110 | 111 | Ok(()) 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /src/cargo-clone/src/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Jan Likar. 2 | // 3 | // Licensed under the Apache License, Version 2.0 or the MIT license 5 | // , at your 6 | // option. This file may not be copied, modified, or distributed 7 | // except according to those terms. 8 | 9 | extern crate cargo; 10 | extern crate docopt; 11 | extern crate rustc_serialize; 12 | extern crate cargo_clone; 13 | 14 | use std::io::{self, Write}; 15 | 16 | use cargo::core::SourceId; 17 | use cargo::util::{Config, CliResult}; 18 | 19 | use docopt::Docopt; 20 | 21 | #[derive(RustcDecodable, Debug)] 22 | pub struct Options { 23 | flag_verbose: Option, 24 | flag_quiet: Option, 25 | flag_color: Option, 26 | flag_version: Option, 27 | 28 | flag_prefix: Option, 29 | 30 | arg_crate: Option, 31 | flag_vers: Option, 32 | } 33 | 34 | pub const USAGE: &'static str = " 35 | Clone source code of a Rust crate 36 | 37 | Usage: 38 | cargo clone [options] [] 39 | 40 | Options: 41 | --prefix DIR Directory to clone the package into 42 | 43 | --vers VERS Specify a version to clone from crates.io 44 | 45 | -h, --help Print this message 46 | -V, --version Print version information 47 | -v, --verbose Use verbose output 48 | -q, --quiet Less output printed to stdout 49 | --color WHEN Coloring: auto, always, never 50 | "; 51 | 52 | fn main() { 53 | let options: Options = Docopt::new(USAGE) 54 | .and_then(|d| d.version(Some(version())).decode()) 55 | .unwrap_or_else(|e| e.exit()); 56 | 57 | let config = Config::default().expect("Unable to get config"); 58 | 59 | if let Err(e) = execute(options, config) { 60 | write!(io::stderr(), "{}\n", e.to_string()).unwrap(); 61 | std::process::exit(101); 62 | } 63 | } 64 | 65 | fn version() -> String { 66 | format!("cargo-clone {}.{}.{}{}", 67 | option_env!("CARGO_PKG_VERSION_MAJOR").unwrap_or("X"), 68 | option_env!("CARGO_PKG_VERSION_MINOR").unwrap_or("X"), 69 | option_env!("CARGO_PKG_VERSION_PATCH").unwrap_or("X"), 70 | option_env!("CARGO_PKG_VERSION_PRE").unwrap_or("")) 71 | } 72 | 73 | pub fn execute(options: Options, config: Config) -> CliResult> { 74 | try!(config.configure_shell(options.flag_verbose, 75 | options.flag_quiet, 76 | &options.flag_color)); 77 | 78 | // Make a SourceId for the central Registry (usually crates.io) 79 | let source_id = try!(SourceId::for_central(&config)); 80 | 81 | let krate = options.arg_crate.as_ref().map(|s| &s[..]); 82 | let prefix = options.flag_prefix.as_ref().map(|s| &s[..]); 83 | let vers = options.flag_vers.as_ref().map(|s| &s[..]); 84 | 85 | try!(cargo_clone::ops::clone(krate, 86 | &source_id, 87 | prefix, 88 | vers, 89 | config)); 90 | 91 | Ok(None) 92 | } 93 | --------------------------------------------------------------------------------