about summary refs log tree commit diff
path: root/crates/rust-analyzer/src/cargo_target_spec.rs
AgeCommit message (Collapse)AuthorLines
2022-04-27SimplifyLukas Wirth-22/+12
2022-04-11Show config deseralization failures on start upLukas Wirth-1/+1
2022-02-06Pass required features to cargo when using run actionMaybe Waffle-4/+18
When using `F1`->`Rust Analyzer: Run` action on an `example`, pass its `required-features` to `cargo run`. This allows to run examples that were otherwise impossible to run with RA.
2021-08-09internal: remove useless helpersAleksey Kladov-2/+2
We generally avoid "syntax only" helper wrappers, which don't do much: they make code easier to write, but harder to read. They also make investigations harder, as "find_usages" needs to be invoked both for the wrapped and unwrapped APIs
2021-07-19internal: use types to remove some unwrapsAleksey Kladov-2/+2
2021-06-13clippy::redudant_borrowMaan2003-1/+1
2021-05-12Fix build script dependenciesJonas Schievink-1/+1
2021-04-04Make `ast_to_token_tree` infallibleJonas Schievink-1/+1
It could never return `None`, so reflect that in the return type
2021-01-06More maintainable configAleksey Kladov-2/+3
Rather than eagerly converting JSON, we losslessly keep it as is, and change the shape of user-submitted data at the last moment. This also allows us to remove a bunch of wrong Defaults
2020-12-08Open Cargo.toml opens more specific manifestAleksey Kladov-3/+9
2020-10-22Emit better #[cfg] diagnosticsJonas Schievink-2/+2
2020-10-21Simplify cfg representationJonas Schievink-2/+4
2020-08-26Allow running a test as a binaryJonas Schievink-1/+5
2020-08-13Rename ra_ide -> ideAleksey Kladov-1/+1
2020-08-13Rename ra_project_model -> project_modelPavan Kumar Sunkara-1/+1
2020-08-13fmtAleksey Kladov-1/+1
2020-08-13Rename ra_cfg -> cfgAleksey Kladov-2/+2
2020-08-12Rename ra_syntax -> syntaxAleksey Kladov-1/+1
2020-07-23Cleanup CFG APIAleksey Kladov-35/+21
2020-07-08Remove unwanted dependencyAleksey Kladov-1/+1
2020-07-02Implement rust-analyzer feature configuration to tests.daxpedda-7/+16
2020-06-25Tweak visibilityAleksey Kladov-1/+1
2020-06-24Cleanup project.json deserializationAleksey Kladov-3/+2
2020-06-23New VFSAleksey Kladov-0/+4
2020-06-17Better encapsulate reverse-mapping of files to cargo targetsAleksey Kladov-18/+14
We need to find a better way to do it... CrateGraph by itself is fine, CargoWorkspace as well, but the mapping between the two seems arbitrary...
2020-06-03Rename WorldState -> GlobalStateAleksey Kladov-2/+2
2020-06-02MinorAleksey Kladov-5/+80
2020-05-23add support of feature flag for runnables #4464Benjamin Coenen-7/+6
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2020-05-21add support of feature flag for runnables #4464Benjamin Coenen-0/+9
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2020-05-05add doctest support #4317Benjamin Coenen-6/+20
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2020-04-26Add `cargo test` to the list of Run commandsAleksey Kladov-0/+1
2020-04-22feat: run ignored testsHannes De Valkeneer-1/+4
2020-03-31Add crate versions when running cargo -p commands.o0Ignition0o-1/+1
Until now cargo commands with the -p flag would pass the package name only. It doesn't play super well with the toml Renaming dependencies feature. This commit specifies the package name and version when a cargo command is run with the -p flag, to avoid ambiguities.
2020-03-19More direct CargoWorkspaceAleksey Kladov-3/+3
2020-03-11feat: add debug code lensHannes De Valkeneer-22/+20
Refs #3539
2020-02-18Rename folderAleksey Kladov-0/+118