Lil' Wrapper is a Rust library that hard-wraps comments and prose to a configurable column. It is available as a Rust library, a native Language Server Protocol (LSP) server, and a Zed extension.
| Component | Use it when you want to... |
|---|---|
| Core library | Rewrap text from Rust code. |
| LSP server | Integrate wrapping into an editor or LSP client. |
| Zed extension | Configure and use Lil Wrapper in Zed. |
The workspace requires Rust 1.85 or newer. Run the core and LSP tests with:
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --all -- --checkThe complete compatibility suite also requires the .NET 8 SDK and Deno 2. Building the Zed
extension requires the wasm32-wasip2 target:
rustup target add wasm32-wasip2
cargo check --package lil-wrapper-zed --target wasm32-wasip2