| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv-cli/ |
| D | Cargo.toml | 2 name = "proc-macro-srv-cli" 9 rust-version.workspace = true 12 proc-macro-srv.workspace = true 13 proc-macro-api.workspace = true 16 sysroot-abi = ["proc-macro-srv/sysroot-abi"] 19 name = "rust-analyzer-proc-macro-srv"
|
| /third_party/rust/rust/src/tools/rust-analyzer/ |
| D | Cargo.toml | 3 exclude = ["crates/proc-macro-test/imp"] 7 rust-version = "1.66" 9 license = "MIT OR Apache-2.0" 10 authors = ["rust-analyzer team"] 19 rowan.opt-level = 3 20 rustc-hash.opt-level = 3 21 smol_str.opt-level = 3 22 text-size.opt-level = 3 24 miniz_oxide.opt-level = 3 31 [patch.'crates-io'] [all …]
|
| D | Cargo.lock | 8 source = "registry+https://github.com/rust-lang/crates.io-index" 17 source = "registry+https://github.com/rust-lang/crates.io-index" 21 name = "always-assert" 23 source = "registry+https://github.com/rust-lang/crates.io-index" 32 source = "registry+https://github.com/rust-lang/crates.io-index" 37 version = "1.0.0-beta.2" 38 source = "registry+https://github.com/rust-lang/crates.io-index" 44 source = "registry+https://github.com/rust-lang/crates.io-index" 50 source = "registry+https://github.com/rust-lang/crates.io-index" 56 source = "registry+https://github.com/rust-lang/crates.io-index" [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv-cli/src/ |
| D | main.rs | 1 //! A standalone binary for `proc-macro-srv`. 2 //! Driver for proc macro server 5 fn main() -> std::io::Result<()> { in main() 12 …eprintln!("If you're rust-analyzer, you can use this tool by exporting RUST_ANALYZER_INTERNALS_DO_… in main() 21 #[cfg(not(feature = "sysroot-abi"))] 22 fn run() -> io::Result<()> { in run() 23 panic!("proc-macro-srv-cli requires the `sysroot-abi` feature to be enabled"); in run() 26 #[cfg(feature = "sysroot-abi")] 27 fn run() -> io::Result<()> { in run() 34 let mut srv = proc_macro_srv::ProcMacroSrv::default(); in run() localVariable [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-api/src/ |
| D | process.rs | 1 //! Handle process life-time and message passing for proc-macro client 25 pub(crate) fn run(process_path: AbsPathBuf) -> io::Result<ProcMacroProcessSrv> { in run() 32 let mut srv = create_srv(true)?; in run() localVariable 34 match srv.version_check() { in run() 38 "proc-macro server's api version ({}) is newer than rust-analyzer's ({})", in run() 44 srv = create_srv(false)?; in run() 45 srv.version = v; in run() 46 Ok(srv) in run() 49 … tracing::info!(%e, "proc-macro version check failed, restarting and assuming version 0"); in run() 55 pub(crate) fn version(&self) -> u32 { in version() [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv/ |
| D | build.rs | 1 //! Determine rustc version `proc-macro-srv` (and thus the sysroot ABI) is 11 let rustc = env::var("RUSTC").expect("proc-macro-srv's build script expects RUSTC to be set"); in main() 12 let output = Command::new(rustc).arg("--version").output().expect("rustc --version must run"); in main() 14 .expect("rustc --version output must be UTF-8") in main()
|
| D | Cargo.toml | 2 name = "proc-macro-srv" 9 rust-version.workspace = true 15 object = { version = "0.30.2", default-features = false, features = [ 29 proc-macro-api.workspace = true 31 [dev-dependencies] 32 expect-test = "1.4.0" 34 # used as proc macro test targets 35 proc-macro-test.workspace = true 38 sysroot-abi = []
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/rust-analyzer/src/cli/ |
| D | flags.rs | 1 //! Grammar for the command-line arguments. 15 /// changed without notice. Top-level flags that are not are marked as [Unstable] provide 16 /// backwards-compatibility and may be relied on. 17 cmd rust-analyzer { 19 repeated -v, --verbose 21 optional -q, --quiet 24 optional --log-file path: PathBuf 26 optional --no-log-buffering 29 optional --wait-dbg 31 default cmd lsp-server { [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/.github/workflows/ |
| D | ci.yaml | 1 # Please make sure that the `needs` fields for both `end-success` and `end-failure` 9 - auto 10 - try 17 RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects" 22 runs-on: ubuntu-latest 24 pull-requests: read 29 - uses: actions/checkout@v3 30 - uses: dorny/paths-filter@4067d885736b84de7c414f582ac45897079b0a78 35 - 'editors/code/**' 37 - 'crates/proc-macro-api/**' [all …]
|
| D | autopublish.yaml | 6 # - cron: "0 0 * * *" # midnight UTC 10 - release 15 runs-on: ubuntu-latest 17 - name: Checkout repository 20 fetch-depth: 0 22 - name: Install Rust toolchain 23 run: rustup update --no-self-update stable 25 - name: Install cargo-workspaces 26 run: cargo install cargo-workspaces 28 - name: Publish Crates [all …]
|
| /third_party/rust/rust/src/bootstrap/ |
| D | tool.rs | 32 /// Nightly-only features that are allowed (comma-separated list). 44 ) -> Option<gha::Group> { in msg_tool() 63 fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { in should_run() 71 fn run(self, builder: &Builder<'_>) -> Option<PathBuf> { in run() 125 // compiletest confuses HTML tidy with the in-tree tidy. Name the in-tree tidy something in run() 128 tool = "rust-tidy"; in run() 147 ) -> CargoCommand { in prepare_tool_cargo() 150 cargo.arg("--manifest-path").arg(dir.join("Cargo.toml")); in prepare_tool_cargo() 163 features.push("all-static".to_string()); in prepare_tool_cargo() 176 // import rustc-ap-rustc_attr which requires this to be set for the in prepare_tool_cargo() [all …]
|
| D | bootstrap.py | 52 "Pre-built artifacts might not be available for this " 53 "target at this time, see https://doc.rust-lang.org/nightly" 54 "/rustc/platform-support.html for more information.") 60 print("using already-download file", path, file=sys.stderr) 64 print("ignoring already-download file", 92 # https://devblogs.microsoft.com/commandline/tar-and-curl-come-to-windows/) 94 # - If we are on win32 fallback to powershell 95 # - Otherwise raise the error if appropriate 101 option = "-#" 103 option = "-s" [all …]
|
| D | download.rs | 26 pub fn is_verbose(&self) -> bool { in is_verbose() 48 pub(crate) fn tempdir(&self) -> PathBuf { in tempdir() 57 pub(crate) fn try_run(&self, cmd: &mut Command) -> Result<(), ()> { in try_run() 68 pub(crate) fn check_run(&self, cmd: &mut Command) -> bool { in check_run() 78 fn should_fix_bins_and_dylibs(&self) -> bool { in should_fix_bins_and_dylibs() 80 match Command::new("uname").arg("-s").stderr(Stdio::inherit()).output() { in should_fix_bins_and_dylibs() 97 // - patchelf only works with ELF files, so no need to run it on Mac or Windows in should_fix_bins_and_dylibs() 98 …// - On other Unix systems, there is no stable syscall interface, so Nix doesn't manage the global… in should_fix_bins_and_dylibs() 103 // Use `/etc/os-release` instead of `/etc/NIXOS`. in should_fix_bins_and_dylibs() 105 let is_nixos = match File::open("/etc/os-release") { in should_fix_bins_and_dylibs() [all …]
|
| D | test.rs | 1 //! Implementation of the test-related targets of the build system. 34 // mir-opt tests have different variants depending on whether a target is 32bit or 64bit, and 35 // blessing them requires blessing with each target. To aid developers, when blessing the mir-opt 42 ("i686-unknown-linux-gnu", "x86_64-unknown-linux-gnu"), 43 ("i686-unknown-linux-musl", "x86_64-unknown-linux-musl"), 44 ("i686-pc-windows-msvc", "x86_64-pc-windows-msvc"), 45 ("i686-pc-windows-gnu", "x86_64-pc-windows-gnu"), 46 ("i686-apple-darwin", "x86_64-apple-darwin"), 47 // ARM Macs don't have a corresponding 32-bit target that they can (easily) 48 // build for, so there is no entry for "aarch64-apple-darwin" here. [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv/src/tests/ |
| D | utils.rs | 1 //! utils used in proc-macro tests 8 fn parse_string(code: &str) -> Option<crate::server::TokenStream> { in parse_string() 36 pub(crate) fn list() -> Vec<String> { in list() 38 let mut srv = ProcMacroSrv::default(); in list() localVariable 39 let res = srv.list_macros(&dylib_path).unwrap(); in list()
|
| /third_party/rust/rust/src/etc/ |
| D | rust_analyzer_settings.json | 2 "rust-analyzer.check.invocationLocation": "root", 3 "rust-analyzer.check.invocationStrategy": "once", 4 "rust-analyzer.check.overrideCommand": [ 8 "--json-output" 10 "rust-analyzer.linkedProjects": [ 14 "src/tools/rust-analyzer/Cargo.toml", 18 "rust-analyzer.rustfmt.overrideCommand": [ 20 "--edition=2021" 22 "rust-analyzer.procMacro.server": "./build/host/stage0/libexec/rust-analyzer-proc-macro-srv", 23 "rust-analyzer.procMacro.enable": true, [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv/src/ |
| D | proc_macros.rs | 1 //! Proc macro ABI 13 fn from(p: proc_macro::bridge::PanicMessage) -> Self { in from() 23 /// *`lib` - The dynamic library containing the macro implementations 24 /// *`symbol_name` - The symbol name the macros can be found attributes 25 /// *`info` - RustCInfo about the compiler that was used to compile the 26 /// macro crate. This is the information we use to figure out 32 ) -> Result<ProcMacros, LoadProcMacroDylibError> { in from_lib() 48 ) -> Result<tt::Subtree, crate::PanicMessage> { in expand() 98 pub(crate) fn list_macros(&self) -> Vec<(String, ProcMacroKind)> { in list_macros() 123 …ylib rustc version (read from .rustc section): {:?} != proc-macro-srv version (read from 'rustc --… in test_version_check()
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/proc-macro-srv/src/server/ |
| D | symbol.rs | 1 //! Symbol interner for proc-macro-srv 17 pub(super) fn intern(interner: SymbolInternerRef, data: &str) -> Symbol { in intern() 21 pub(super) fn text(&self, interner: SymbolInternerRef) -> SmolStr { in text() 33 fn intern(&mut self, data: &str) -> Symbol { in intern() 45 fn get(&self, sym: &Symbol) -> &SmolStr { in get()
|
| /third_party/gn/src/gn/ |
| D | rust_project_writer.cc | 2 // Use of this source code is governed by a BSD-style license that can be 29 // Current structure of rust-project.json output file 55 // "target": "x86_64-unknown-linux" // optional rustc target 65 SourceFile output_file = build_settings->build_dir().ResolveRelativeFile( in RunAndWriteFiles() 70 base::FilePath output_path = build_settings->GetFullPath(output_file); in RunAndWriteFiles() 93 for (const auto& pair : target->GetDeps(Target::DEPS_LINKED)) { in GetRustDeps() 96 if (dep->source_types_used().RustSourceUsed()) { in GetRustDeps() 98 rust_deps->push_back(dep); in GetRustDeps() 99 } else if (dep->output_type() == Target::OutputType::GROUP) { in GetRustDeps() 175 auto compiler_target = FindArgValue("--target", compiler_args); in AddTarget() [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/project-model/src/ |
| D | tests.rs | 18 fn load_cargo(file: &str) -> (CrateGraph, ProcMacroPaths) { in load_cargo() 25 ) -> (CrateGraph, ProcMacroPaths) { in load_cargo_with_overrides() 44 ) -> (CrateGraph, ProcMacroPaths) { in load_cargo_with_sysroot() 68 fn load_rust_project(file: &str) -> (CrateGraph, ProcMacroPaths) { in load_rust_project() 77 fn get_test_json_file<T: DeserializeOwned>(file: &str) -> T { in get_test_json_file() 106 let fake_sysroot_path = get_test_path("fake-sysroot"); in replace_fake_sys_root() 117 fn get_test_path(file: &str) -> PathBuf { in get_test_path() 122 fn get_fake_sysroot() -> Sysroot { in get_fake_sysroot() 123 let sysroot_path = get_test_path("fake-sysroot"); in get_fake_sysroot() 124 // there's no `libexec/` directory with a `proc-macro-srv` binary in that in get_fake_sysroot() [all …]
|
| D | workspace.rs | 1 //! Handles lowering of build-system specific workspace information (`cargo 2 //! metadata` or `rust-project.json`) into representation stored in the salsa 3 //! database -- `CrateGraph`. 30 /// A set of cfg-overrides per crate. 40 pub fn len(&self) -> usize { in len() 58 /// Project workspace was discovered by running `cargo metadata` and `rustc --print sysroot`. 65 /// `rustc --print cfg`. 67 /// FIXME: make this a per-crate map, as, eg, build.rs might have a 74 /// Project workspace was manually specified using a `rust-project.json` file. 79 /// `rustc --print cfg`. [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/rust-analyzer/tests/slow-tests/ |
| D | main.rs | 1 //! The most high-level integrated tests for rust-analyzer. 8 //! specific JSON shapes here -- there's little value in such tests, as we can't 13 #[cfg(not(feature = "in-rust-tree"))] 52 //- /Cargo.toml in completes_items_from_standard_library() 57 //- /src/lib.rs in completes_items_from_standard_library() 87 //- /foo/Cargo.toml in test_runnables_project() 92 //- /foo/src/lib.rs in test_runnables_project() 95 //- /foo/tests/spam.rs in test_runnables_project() 99 //- /bar/Cargo.toml in test_runnables_project() 104 //- /bar/src/main.rs in test_runnables_project() [all …]
|
| /third_party/mesa3d/docs/relnotes/ |
| D | 23.1.0.rst | 1 Mesa 23.1.0 Release Notes / 2023-05-10 20 --------------- 24 a9dde3c76571c4806245a05bda1cceee347c3267127e9e549e4f4e225d92e992 mesa-23.1.0.tar.xz 28 ------------ 30 - VK_EXT_pipeline_library_group_handles on RADV 31 - VK_EXT_image_sliced_view_of_3d on RADV/GFX10+ 32 - VK_KHR_map_memory2 on ANV and RADV 33 - fullyCoveredFragmentShaderInputVariable on RADV/GFX9+ 34 - VK_EXT_discard_rectangles version 2 on RADV 35 - VK_EXT_graphics_pipeline_library on RADV [all …]
|