mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-02 08:37:42 +00:00
8 lines
No EOL
5.3 KiB
HTML
8 lines
No EOL
5.3 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Implementation of the LSP for rust-analyzer."><title>rust_analyzer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-84e720fa.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="rust_analyzer" data-themes="" data-resource-suffix="" data-rustdoc-version="1.89.0 (29483883e 2025-08-04)" data-channel="1.89.0" data-search-js="search-92309212.js" data-settings-js="settings-5514c975.js" ><script src="../static.files/storage-4e99c027.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-fd3af306.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../rust_analyzer/index.html">rust_<wbr>analyzer</a><span class="version">0.0.0</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#modules">Crate Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <span>rust_analyzer</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/rust_analyzer/lib.rs.html#1-82">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Implementation of the LSP for rust-analyzer.</p>
|
||
<p>This crate takes Rust-specific analysis results from ide and translates
|
||
into LSP types.</p>
|
||
<p>It also is the root of all state. <code>world</code> module defines the bulk of the
|
||
state, and <code>main_loop</code> module defines the rules for modifying it.</p>
|
||
<p>The <code>cli</code> submodule implements some batch-processing analysis, primarily as
|
||
a debugging aid.</p>
|
||
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="cli/index.html" title="mod rust_analyzer::cli">cli</a></dt><dd>Various batch processing tasks, intended primarily for debugging.</dd><dt><a class="mod" href="config/index.html" title="mod rust_analyzer::config">config</a></dt><dd>Config used by the language server.</dd><dt><a class="mod" href="lsp/index.html" title="mod rust_analyzer::lsp">lsp</a></dt><dd>Custom LSP definitions and protocol conversions.</dd><dt><a class="mod" href="tracing/index.html" title="mod rust_analyzer::tracing">tracing</a></dt></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.MINIMUM_SUPPORTED_TOOLCHAIN_VERSION.html" title="constant rust_analyzer::MINIMUM_SUPPORTED_TOOLCHAIN_VERSION">MINIMUM_<wbr>SUPPORTED_<wbr>TOOLCHAIN_<wbr>VERSION</a></dt><dd>Any toolchain less than this version will likely not work with rust-analyzer built from this revision.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.from_json.html" title="fn rust_analyzer::from_json">from_<wbr>json</a></dt><dt><a class="fn" href="fn.main_loop.html" title="fn rust_analyzer::main_loop">main_<wbr>loop</a></dt><dt><a class="fn" href="fn.server_capabilities.html" title="fn rust_analyzer::server_capabilities">server_<wbr>capabilities</a></dt><dt><a class="fn" href="fn.version.html" title="fn rust_analyzer::version">version</a></dt><dd>Returns information about cargo’s version.</dd><dt><a class="fn" href="fn.ws_to_crate_graph.html" title="fn rust_analyzer::ws_to_crate_graph">ws_<wbr>to_<wbr>crate_<wbr>graph</a></dt></dl></section></div></main></body></html> |