rust-lang / rust-lang/rust-analyzer

simple features without cargo

Open
#12,310 11 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-rust-project C-feature
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

i want to write a simple practice with quicksort in rust, it may be a small single file, and i dont want to make a dir and write a cargo.toml file for it, it's tedious, and may be i will write many files like this, i dont want to do so many things for such a small file, but i also want the functions with the plugin like autocomplete, diagnostic, format and so on, so are there any ways can let it work without cargo? I wrote c++ before, as far as i know, there are some plugins like clangd can provide these functions without any build tools for just one single file, and I want to migrate my habit to rust, are there any good ways?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing rust-analyzer's existing handling of standalone Rust files and the discussion in this issue, then determine whether support without Cargo is in scope. Done would mean a decided approach and corresponding implementation or documentation for autocomplete, diagnostics, and formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.