Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo add #8

Merged
merged 10 commits into from
Oct 11, 2015
Merged

cargo add #8

merged 10 commits into from
Oct 11, 2015

Conversation

killercup
Copy link
Owner

Usage:
    cargo add <crate> [--dev|--build] [--ver=<semver>|--git=<uri>|--path=<uri>] [options]
    cargo add (-h|--help)
    cargo add --version

Options:
    -D --dev                Add crate as development dependency.
    -B --build              Add crate as build dependency.
    --ver=<semver>          Specify the version to grab from the registry (crates.io).
                            You can also specify versions as part of the name, e.g
                            `cargo add bitflags@0.3.2`.
    --git=<uri>             Specify a git repository to download the crate from.
    --path=<uri>            Specify the path the crate should be loaded from.
    --optional              Add as an optional dependency (for use in features.)
    --manifest-path=<path>  Path to the manifest to add a dependency to.
    -h --help               Show this help page.
    --version               Show version.

Add a dependency to a Cargo.toml manifest file.

@killercup killercup mentioned this pull request Oct 10, 2015
3 tasks
Docopt doesn't seem to like `--v`. Nevertheless, this works now:

    cargo add demo --ver=0.0.1 --dev
E.g, `cargo add new_demo@0.4.2`
@killercup
Copy link
Owner Author

@homu r+

@homu
Copy link
Contributor

homu commented Oct 11, 2015

📌 Commit 6ece47f has been approved by killercup

@homu
Copy link
Contributor

homu commented Oct 11, 2015

⌛ Testing commit 6ece47f with merge cad7da5...

homu added a commit that referenced this pull request Oct 11, 2015
cargo add (WIP)

```plain
Usage:
    cargo add <crate> [--dev|--build] [--ver=<semver>|--git=<uri>|--path=<uri>] [options]
    cargo add (-h|--help)
    cargo add --version

Options:
    -D --dev                Add crate as development dependency.
    -B --build              Add crate as build dependency.
    --ver=<semver>          Specify the version to grab from the registry (crates.io).
                            You can also specify versions as part of the name, e.g
                            `cargo add bitflags@0.3.2`.
    --git=<uri>             Specify a git repository to download the crate from.
    --path=<uri>            Specify the path the crate should be loaded from.
    --optional              Add as an optional dependency (for use in features.)
    --manifest-path=<path>  Path to the manifest to add a dependency to.
    -h --help               Show this help page.
    --version               Show version.

Add a dependency to a Cargo.toml manifest file.
```
@homu
Copy link
Contributor

homu commented Oct 11, 2015

☀️ Test successful - status

@homu homu merged commit 6ece47f into master Oct 11, 2015
@killercup killercup deleted the feature/cargo-add branch October 11, 2015 12:50
@killercup killercup changed the title cargo add (WIP) cargo add Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants