Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
263 changes: 125 additions & 138 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions backend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "rust-support-backend"
# Kept equal to the plugin's version; scripts/package.mjs refuses a mismatch.
version = "0.1.0"
version = "0.1.1"
edition = "2021"
license = "Apache-2.0"
rust-version = "1.87"
publish = false
description = "The Cargo build provider of the Rust Support plugin for Lithe."
description = "The backend of the Rust Support plugin for Lithe: the Cargo build provider and the settings previews."

[[bin]]
name = "backend"
Expand Down
7 changes: 6 additions & 1 deletion backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
//!
//! - The plugin backend answers the `rustAnalyzer.launch` function: the
//! rust-analyzer command line, following the project's rustup toolchain
//! and adding the rust-analyzer component when it is missing.
//! and adding the rust-analyzer component when it is missing. It also
//! draws the views of the settings regions (`settings.view`): the Rust
//! page's toolchain rows and a preview of the rust-analyzer options, and
//! the order in which the Cargo page's cargo is looked for.
//! - The Cargo build provider answers the host's `lithe/build/*` requests
//! for the `cargo` build system of `plugin.json`:
//!
Expand Down Expand Up @@ -32,6 +35,7 @@ mod options;
mod paths;
mod process;
mod request;
mod view;

use lithe_plugin_sdk::Backend;
use paths::Workspace;
Expand Down Expand Up @@ -60,6 +64,7 @@ fn main() {
analyzer::answer(&params, context)
})
.expect("the function ID is valid");
view::register(&mut backend).expect("the view ID is valid");

let handlers = Arc::clone(&workspace);
let current = move || paths::current(&handlers);
Expand Down
Loading
Loading