mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Implement proc-macro-api versioning
This commit is contained in:
parent
41a46a78f2
commit
c40b0895f0
4 changed files with 42 additions and 8 deletions
|
@ -15,6 +15,9 @@ pub fn run() -> io::Result<()> {
|
|||
msg::Response::ListMacros(srv.list_macros(&dylib_path))
|
||||
}
|
||||
msg::Request::ExpandMacro(task) => msg::Response::ExpandMacro(srv.expand(task)),
|
||||
msg::Request::ApiVersionCheck {} => {
|
||||
msg::Response::ApiVersionCheck(proc_macro_api::msg::API_VERSION)
|
||||
}
|
||||
};
|
||||
write_response(res)?
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue