mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Automatically reload project info on Cargo.toml changes
This commit is contained in:
parent
5fa8f8e376
commit
d0a8f6a3eb
7 changed files with 57 additions and 28 deletions
|
@ -3,19 +3,19 @@
|
|||
use std::{convert::TryFrom, env, ops, path::Path, process::Command};
|
||||
|
||||
use anyhow::{bail, format_err, Result};
|
||||
use paths::{AbsPath, AbsPathBuf};
|
||||
use ra_arena::{Arena, Idx};
|
||||
|
||||
use crate::output;
|
||||
use paths::{AbsPath, AbsPathBuf};
|
||||
|
||||
#[derive(Default, Debug, Clone)]
|
||||
#[derive(Default, Debug, Clone, Eq, PartialEq)]
|
||||
pub struct Sysroot {
|
||||
crates: Arena<SysrootCrateData>,
|
||||
}
|
||||
|
||||
pub type SysrootCrate = Idx<SysrootCrateData>;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
pub struct SysrootCrateData {
|
||||
pub name: String,
|
||||
pub root: AbsPathBuf,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue