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
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ jobs:
components: clippy, rustfmt

- name: Rustfmt check
working-directory: lsp
run: cargo fmt --all -- --check

- name: Clippy
working-directory: lsp
run: cargo clippy --all-targets --all-features

tests:
Expand All @@ -40,7 +38,6 @@ jobs:
uses: dtolnay/rust-toolchain@stable

- name: Run tests
working-directory: lsp
run: cargo test --all-features -- --nocapture

publish:
Expand Down Expand Up @@ -79,7 +76,6 @@ jobs:
fi

- name: Check package
working-directory: lsp
run: cargo package

- name: Authenticate with crates.io
Expand All @@ -89,7 +85,6 @@ jobs:
- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
working-directory: lsp
run: cargo publish


84 changes: 17 additions & 67 deletions Cargo.lock

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

15 changes: 12 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "simplicityhl-lsp"
version = "0.3.0"
edition = "2021"
rust-version = "1.79.0"
rust-version = "1.85.0"
description = "Language Server Protocol (LSP) server for SimplicityHL."
license = "MIT OR Apache-2.0"
repository = "https://github.com/BlockstreamResearch/SimplicityHL"
Expand All @@ -16,14 +16,13 @@ tokio = { version = "1.47.1", features = ["full"] }
serde_json = "1.0.143"
tower-lsp-server = "0.22.1"

env_logger = "0.11.8"
env_logger = { version = "0.11.8", default-features = false }
thiserror = "2.0.17"

ropey = "1.6.1"
miniscript = "12.3.1"
simplicityhl = "0.5.0"
nom = "8.0.0"
lazy_static = "1.5.0"

[lints.rust]
unsafe_code = "deny"
Expand All @@ -38,3 +37,13 @@ pedantic = "warn"
[workspace.metadata.rbmt.toolchains]
nightly = "nightly-2025-08-23"
stable = "1.95.0"

[package.metadata.rbmt.lint]
allowed_duplicates = [
# version mismatch (1.* and 2.*) within the dependencies of tower-lsp-server
"bitflags",
# version mismatch (0.14.* and 0.15.*) between tower-lsp-server and chumsky
"hashbrown",
# versions match, but are split across different dependency trees
"memchr",
]
8 changes: 3 additions & 5 deletions src/completion/type_cast.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use lazy_static::lazy_static;
use std::collections::HashMap;

// Most basic type casts for integer types.
lazy_static! {
pub(crate) static ref TYPE_CASTS: HashMap<&'static str, &'static str> = {
pub(crate) static TYPE_CASTS: std::sync::LazyLock<HashMap<&'static str, &'static str>> =
std::sync::LazyLock::new(|| {
HashMap::from([
("u1", "bool"),
("u2", "(u1, u1)"),
Expand All @@ -24,5 +23,4 @@ lazy_static! {
("(u64, u64)", "u128"),
("(u128, u128)", "u256"),
])
};
}
});
Loading