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

implement a cargo clean feature #279

Closed
allan-simon opened this issue Jul 28, 2014 · 5 comments
Closed

implement a cargo clean feature #279

allan-simon opened this issue Jul 28, 2014 · 5 comments

Comments

@allan-simon
Copy link

I'm conscious this is very trivial and it would take actually more character than writing rm -rf target however I see several advantages to this

  • for non unix-user or "non-plateform user on which we're running the build/clean" it will not require the overhead of needing to search how to delete a directory on that plateform
  • ease cross-plateform scripting
  • easier to call if you're buried deep inside your project directories' treep

I haven't seen the issue in opened task but if it was already proposed, sorry for the duplicate.

If this request is new and people of this project thinks it's a "newbie-ready" task, I'm interested in implementing it

@alexcrichton
Copy link
Member

Have you tried using cargo clean as-is? It should exist today (on an up-to-date cargo)

@allan-simon
Copy link
Author

indeed it works (wasnt implemented last time i tried), however it's not advertized in the help , cargo and cargo -h only display two commands:

  • build
  • test

@alexcrichton
Copy link
Member

It sounds like you have a quite old cargo, have you tried updating?

@allan-simon
Copy link
Author

:/ ok seems the ubuntu ppa for cargo does not receive as much love as the rust one, i will update and keep you updated (so as my cargo binary)

@alexcrichton
Copy link
Member

No problem! I'm going to close this for now as this is implemented, but feel free to reopen if there are some needed improvements to it!

bors added a commit that referenced this issue Mar 18, 2019
Update toml requirement from 0.4.2 to 0.5.0

Updates the requirements on [toml](/~https://github.com/alexcrichton/toml-rs) to permit the latest version.
<details>
<summary>Release notes</summary>

*Sourced from [toml's releases](/~https://github.com/alexcrichton/toml-rs/releases).*

> ## Preserve order feature, minor fixes
> - Add `preserve_order` Cargo feature. This retains the order of map keys in `toml::Value`. ([#278](https://github-redirect.dependabot.com/alexcrichton/toml-rs/issues/278))
> - Fix issue [#279](https://github-redirect.dependabot.com/alexcrichton/toml-rs/issues/279) where some duplicate table headers were accepted. Added `Deserializer::set_allow_duplicate_after_longer_table` for anyone who wants to retain the old, broken behavior. ([#280](https://github-redirect.dependabot.com/alexcrichton/toml-rs/issues/280))
> - Fix case sensitivity with T, Z, and E. ([#290](https://github-redirect.dependabot.com/alexcrichton/toml-rs/issues/290))
> - Add `PartialEq` to `de::Error`. ([#292](https://github-redirect.dependabot.com/alexcrichton/toml-rs/issues/292))
</details>
<details>
<summary>Commits</summary>

- [`dbdcc9c`](toml-rs/toml-rs@dbdcc9c) Merge pull request [#292](https://github-redirect.dependabot.com/alexcrichton/toml-rs/issues/292) from omarabid/master
- [`fbc0557`](toml-rs/toml-rs@fbc0557) Add PartialEq to Toml::de
- [`4fb12b4`](toml-rs/toml-rs@4fb12b4) Merge pull request [#290](https://github-redirect.dependabot.com/alexcrichton/toml-rs/issues/290) from ehuss/fix-case-sensitivity
- [`8fce90e`](toml-rs/toml-rs@8fce90e) Fix case sensitivity with T, Z, and E.
- [`56f9afb`](toml-rs/toml-rs@56f9afb) Merge pull request [#278](https://github-redirect.dependabot.com/alexcrichton/toml-rs/issues/278) from Kerollmops/master
- [`d0977ab`](toml-rs/toml-rs@d0977ab) Merge pull request [#280](https://github-redirect.dependabot.com/alexcrichton/toml-rs/issues/280) from alexcrichton/fix-duplicate
- [`7ee1c1b`](toml-rs/toml-rs@7ee1c1b) Fix disallowing duplicate table headers
- [`ad5ea1d`](toml-rs/toml-rs@ad5ea1d) Update build urls
- [`600c6e5`](toml-rs/toml-rs@600c6e5) Tweak travis config
- [`0372ba6`](toml-rs/toml-rs@0372ba6) Update the serde test-suite map! macro
- Additional commits viewable in [compare view](toml-rs/toml-rs@0.4.2...0.5.0)
</details>
<br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

</details>
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

No branches or pull requests

2 participants