Add a Language Server Protocol (LSP) server to enable IDE integration. The server provides: - Real-time diagnostics (parse errors and type errors) - Basic hover information - Keyword completions (fn, let, if, match, type, effect, etc.) - Go-to-definition stub (ready for implementation) Usage: lux --lsp The LSP server can be integrated with any editor that supports LSP, including VS Code, Neovim, Emacs, and others. Dependencies added: - lsp-server 0.7 - lsp-types 0.94 - serde with derive feature - serde_json Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
407 B
TOML
21 lines
407 B
TOML
[package]
|
|
name = "lux"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "A functional programming language with first-class effects, schema evolution, and behavioral types"
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
rustyline = "14"
|
|
thiserror = "1"
|
|
lsp-server = "0.7"
|
|
lsp-types = "0.94"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
|
|
[profile.release]
|
|
lto = true
|