solidity-language-server 0.1.27

A fast Solidity language server powered by solc and Foundry
Documentation

Solidity Language Server

Crates.io Tests Release GitHub Release Telegram

The fastest Solidity language server — optimized for low-latency go-to-definition/declaration, references, hover, completions, and file operations. See benchmarks.

Install

cargo install solidity-language-server

Or download a pre-built binary from the latest release.

Benchmarks

Benchmarked against v4-coretest/PoolManager.t.sol (v0.1.26, p95 latency).

Method mmsaki v0.1.26
initialize 20.7ms ⚡
textDocument/diagnostic 2.2s ⚡
textDocument/semanticTokens/full/delta 9.8ms ⚡
textDocument/definition 6.7ms ⚡
textDocument/declaration 0.8ms ⚡
textDocument/hover 6.8ms ⚡
textDocument/references 4.9ms ⚡
textDocument/completion 0.2ms ⚡
textDocument/signatureHelp 6.0ms ⚡
textDocument/rename 6.5ms ⚡
textDocument/prepareRename 0.2ms ⚡
textDocument/documentSymbol 6.4ms ⚡
textDocument/documentHighlight 7.6ms ⚡
textDocument/documentLink 1.6ms ⚡
textDocument/formatting 19.3ms ⚡
textDocument/foldingRange 7.3ms ⚡
textDocument/selectionRange 6.0ms ⚡
textDocument/inlayHint 16.1ms ⚡
textDocument/semanticTokens/full 10.1ms ⚡
textDocument/semanticTokens/range 6.8ms ⚡
workspace/symbol 6.1ms ⚡
workspace/willRenameFiles 90.4ms ⚡
workspace/willCreateFiles 0.2ms
workspace/willDeleteFiles 81.8ms ⚡

Docs

Editor Setup

Use the docs for complete editor-specific setup and config examples:

Minimal LSP command:

solidity-language-server --stdio

Verify Release Binaries

Release binaries are GPG-signed. Download checksums-sha256.txt, checksums-sha256.txt.asc, and public-key.asc from the release:

gpg --import public-key.asc
gpg --verify checksums-sha256.txt.asc checksums-sha256.txt
sha256sum -c checksums-sha256.txt