Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd12627

Browse files
lsp-rust: add lsp-rust-analyzer-cargo-cfgs config (#4904)
1 parentc3b5fea commitdd12627

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎clients/lsp-rust.el‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,13 @@ or JSON objects in `rust-project.json` format."
859859
:group'lsp-rust-analyzer
860860
:package-version '(lsp-mode."8.0.0"))
861861

862+
;; https://rust-analyzer.github.io/book/configuration#cargo.cfgs
863+
(defcustomlsp-rust-analyzer-cargo-cfgs ["debug_assertions","miri"]
864+
"Extra configurations that are passed to every cargo invocation."
865+
:type'lsp-string-vector
866+
:group'lsp-rust-analyzer
867+
:package-version '(lsp-mode."9.0.0"))
868+
862869
(defcustomlsp-rust-analyzer-cargo-extra-args []
863870
"Extra arguments that are passed to every cargo invocation."
864871
:type'lsp-string-vector
@@ -1728,6 +1735,7 @@ https://github.com/rust-lang/rust-analyzer/blob/master/docs/dev/lsp-extensions.m
17281735
:cargo (:allFeatures ,(lsp-json-bool lsp-rust-all-features)
17291736
:noDefaultFeatures ,(lsp-json-bool lsp-rust-no-default-features)
17301737
:features,lsp-rust-features
1738+
:cfgs,lsp-rust-analyzer-cargo-cfgs
17311739
:extraArgs,lsp-rust-analyzer-cargo-extra-args
17321740
:extraEnv,lsp-rust-analyzer-cargo-extra-env
17331741
:target,lsp-rust-analyzer-cargo-target

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp