diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a15e612..2f9c7b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,11 +71,11 @@ jobs: - name: Install AArch64 target toolchain if: matrix.target == 'aarch64-unknown-linux-gnu' - run: sudo apt-get install gcc-aarch64-linux-gnu libc6-dev-arm64-cross + run: sudo apt-get install gcc-aarch64-linux-gnu libc6-dev-arm64-cross g++-aarch64-linux-gnu - name: Install ARM target toolchain if: matrix.target == 'arm-unknown-linux-gnueabihf' - run: sudo apt-get install gcc-arm-linux-gnueabihf + run: sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf - name: Dist run: cargo xtask dist diff --git a/crates/llm-ls/src/document.rs b/crates/llm-ls/src/document.rs index 06eb0c5..2ee1544 100644 --- a/crates/llm-ls/src/document.rs +++ b/crates/llm-ls/src/document.rs @@ -165,16 +165,16 @@ fn get_parser(language_id: LanguageId) -> Result { } } -pub struct Document { +pub(crate) struct Document { #[allow(dead_code)] language_id: LanguageId, - pub text: Rope, + pub(crate) text: Rope, parser: Parser, - pub tree: Option, + pub(crate) tree: Option, } impl Document { - pub async fn open(language_id: &str, text: &str) -> Result { + pub(crate) async fn open(language_id: &str, text: &str) -> Result { let language_id = language_id.into(); let rope = Rope::from_str(text); let mut parser = get_parser(language_id)?; @@ -187,7 +187,7 @@ impl Document { }) } - pub async fn change(&mut self, text: &str) -> Result<()> { + pub(crate) async fn change(&mut self, text: &str) -> Result<()> { let rope = Rope::from_str(text); self.tree = self.parser.parse(text, None); self.text = rope; diff --git a/crates/llm-ls/src/language_id.rs b/crates/llm-ls/src/language_id.rs index 94893d9..2892268 100644 --- a/crates/llm-ls/src/language_id.rs +++ b/crates/llm-ls/src/language_id.rs @@ -1,7 +1,7 @@ use std::fmt; #[derive(Clone, Copy)] -pub enum LanguageId { +pub(crate) enum LanguageId { Bash, C, Cpp, @@ -59,7 +59,7 @@ impl fmt::Display for LanguageId { } } -pub struct LanguageIdError { +pub(crate) struct LanguageIdError { language_id: String, }