{"id":13898531,"url":"https://github.com/mhinz/vim-crates","last_synced_at":"2025-04-12T14:10:56.152Z","repository":{"id":35807980,"uuid":"219205526","full_name":"mhinz/vim-crates","owner":"mhinz","description":"Handle Cargo dependencies like a Rustavimean.","archived":false,"fork":false,"pushed_at":"2022-12-18T13:11:19.000Z","size":1116,"stargazers_count":90,"open_issues_count":5,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T08:47:40.627Z","etag":null,"topics":["cargo","crates-io","neovim","plugin","rust","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhinz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-02T19:47:22.000Z","updated_at":"2024-07-01T06:09:26.000Z","dependencies_parsed_at":"2023-01-16T06:50:29.635Z","dependency_job_id":null,"html_url":"https://github.com/mhinz/vim-crates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-crates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-crates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-crates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-crates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhinz","download_url":"https://codeload.github.com/mhinz/vim-crates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248578874,"owners_count":21127713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cargo","crates-io","neovim","plugin","rust","vim"],"created_at":"2024-08-06T18:04:20.306Z","updated_at":"2025-04-12T14:10:56.126Z","avatar_url":"https://github.com/mhinz.png","language":"Vim script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"# vim-crates\n\nWhen maintaining Rust projects, this plugin helps with updating the dependencies\nin `Cargo.toml` files. It uses the [crates.io](https://crates.io) API to get all\navailable versions of a crate and caches them.\n\n_[curl](https://curl.haxx.se) needs to be installed._\n\n- **Insert completion**\n\n  If the cursor is on a [version requirement](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies)\n  and in insert mode, use `\u003cc-x\u003e\u003cc-u\u003e` (hold \u003ckbd\u003eCtrl\u003c/kbd\u003e and hit\n  \u003ckbd\u003ex\u003c/kbd\u003e then \u003ckbd\u003eu\u003c/kbd\u003e) to open a completion menu with all available\n  versions (see `:h i_CTRL-X_CTRL-U`).\n\n- **:CratesUp**\n\n  Update the current dependency to the latest non-prerelease version.\n\n- **:CratesToggle**\n\n  For each dependency that is out-of-date, indicate the latest version as virtual\n  text after the end of the line. Use it again to remove all indicators. This is\n  a [Nvim](https://github.com/neovim/neovim/)-only feature.\n\n  Customize the colors of the indicators like this:\n\n    ```vim\n    highlight Crates ctermfg=green ctermbg=NONE cterm=NONE\n    \" or link it to another highlight group\n    highlight link Crates WarningMsg\n    ```\n  Use `:verb CratesToggle` to see debug messages.\n\nInspired by [serayuzgur/crates](https://github.com/serayuzgur/crates).\n\nHappy 🦀 everyone!\n\n## Configuration\n\nAutomatically run `:CratesToggle` when opening a `Cargo.toml` file:\n\n```vim\nif has('nvim')\n  autocmd BufRead Cargo.toml call crates#toggle()\nendif\n```\n\n## Demo\n\n![](https://raw.githubusercontent.com/mhinz/vim-crates/master/demo.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhinz%2Fvim-crates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhinz%2Fvim-crates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhinz%2Fvim-crates/lists"}