- crates/lsp toolchain: PHP from php.executable or PATH, `php -v` with a 5 s timeout and capped output, version parsing (proptest), PHP >= 8.2. - Pinned Phpactor 2026.06.25.0 (SHA-256 832510fe...59e9); newer releases need ext-posix and do not start on Windows. - Download with ureq + rustls (ring, OS roots via rustls-native-certs): HTTPS only, 32 MiB cap, SHA-256 verified before an atomic write, retry with backoff. Tests use a local HTTP server only. - Engine: settings php.executable, phpactor.path, phpactor.autoDownload (bool and string setting kinds), toolchain.status, toolchain.downloadPhpactor, toolchainChanged, notifications; worker thread off the engine lock, results via the pump. Downloads only after the host calls Engine::allow_downloads (the desktop does). - Docs: architecture Toolchain section (network access, D15), G6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
835 B
TOML
35 lines
835 B
TOML
[package]
|
|
name = "lutra-lsp"
|
|
description = "Language server client (Phpactor first), later a DAP client"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
publish.workspace = true
|
|
|
|
[package.metadata.lutra]
|
|
layer = 3
|
|
|
|
[[bin]]
|
|
name = "lutra-lsp-fake"
|
|
path = "src/bin/lutra-lsp-fake.rs"
|
|
test = false
|
|
doc = false
|
|
|
|
[dependencies]
|
|
lutra-text.workspace = true
|
|
lutra-vfs.workspace = true
|
|
ring = "0.17.14"
|
|
rustls = { version = "0.23.22", default-features = false, features = ["ring", "std", "tls12"] }
|
|
rustls-native-certs = "0.8.5"
|
|
serde_json = "1.0.154"
|
|
thiserror = "2.0.21"
|
|
ureq = { version = "3.4.2", default-features = false, features = ["rustls-no-provider"] }
|
|
|
|
[dev-dependencies]
|
|
proptest.workspace = true
|
|
tempfile.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|