[package]
edition = "2024"
rust-version = "1.96"
name = "lspf"
version = "0.7.0"
authors = ["Yuming Chen"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust framework for building extensible LSP language servers"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/meymchen/lspf"
[features]
default = ["stdio"]
proposed = []
runtime-tokio = ["dep:tokio"]
stdio = [
"runtime-tokio",
"tokio-util/codec",
]
tcp = [
"runtime-tokio",
"tokio-util/codec",
"tokio/net",
]
wasm = ["dep:wasm-bindgen-futures"]
websocket = [
"runtime-tokio",
"dep:tokio-tungstenite",
"tokio/net",
]
worker-channel = [
"wasm",
"dep:js-sys",
"dep:wasm-bindgen",
"dep:web-sys",
]
[lib]
name = "lspf"
path = "src/lib.rs"
[[example]]
name = "blocking_work"
path = "examples/blocking_work.rs"
required-features = ["stdio"]
[[example]]
name = "code_actions"
path = "examples/code_actions.rs"
required-features = ["stdio"]
[[example]]
name = "code_lens"
path = "examples/code_lens.rs"
required-features = ["stdio"]
[[example]]
name = "colors"
path = "examples/colors.rs"
required-features = ["stdio"]
[[example]]
name = "formatting"
path = "examples/formatting.rs"
required-features = ["stdio"]
[[example]]
name = "goto"
path = "examples/goto.rs"
required-features = ["stdio"]
[[example]]
name = "hover"
path = "examples/hover.rs"
required-features = ["stdio"]
[[example]]
name = "inlay_hints"
path = "examples/inlay_hints.rs"
required-features = ["stdio"]
[[example]]
name = "links"
path = "examples/links.rs"
required-features = ["stdio"]
[[example]]
name = "native_tcp"
path = "examples/native_tcp.rs"
required-features = ["tcp"]
[[example]]
name = "native_websocket"
path = "examples/native_websocket.rs"
required-features = ["websocket"]
[[example]]
name = "publish_diagnostics"
path = "examples/publish_diagnostics.rs"
required-features = ["stdio"]
[[example]]
name = "pull_diagnostics"
path = "examples/pull_diagnostics.rs"
required-features = ["stdio"]
[[example]]
name = "rename"
path = "examples/rename.rs"
required-features = ["stdio"]
[[example]]
name = "semantic_tokens"
path = "examples/semantic_tokens.rs"
required-features = ["stdio"]
[[example]]
name = "server_features"
path = "examples/server_features.rs"
required-features = ["stdio"]
[[example]]
name = "shared_server"
path = "examples/shared_server.rs"
[[example]]
name = "symbols"
path = "examples/symbols.rs"
required-features = ["stdio"]
[[example]]
name = "worker_channel"
path = "examples/worker_channel.rs"
required-features = ["worker-channel"]
[[test]]
name = "catalog"
path = "tests/catalog.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "client_notifications"
path = "tests/client_notifications.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "client_requests"
path = "tests/client_requests.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "commands"
path = "tests/commands.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "completion_resolve"
path = "tests/completion_resolve.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "custom_notification"
path = "tests/custom_notification.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "custom_request"
path = "tests/custom_request.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "diagnostics"
path = "tests/diagnostics.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "document_hooks"
path = "tests/document_hooks.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "editing_presentation"
path = "tests/editing_presentation.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "file_provider"
path = "tests/file_provider.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "hierarchy_semantic_tokens"
path = "tests/hierarchy_semantic_tokens.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "hover_completion"
path = "tests/hover_completion.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "inbound_completion"
path = "tests/inbound_completion.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "initialize_transaction"
path = "tests/initialize_transaction.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "lifecycle_hooks"
path = "tests/lifecycle_hooks.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "navigation_lookup"
path = "tests/navigation_lookup.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "outgoing_notifications"
path = "tests/outgoing_notifications.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "outgoing_requests"
path = "tests/outgoing_requests.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "progress"
path = "tests/progress.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "progress_cancellation"
path = "tests/progress_cancellation.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "resolve_prepare_families"
path = "tests/resolve_prepare_families.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "resource_policy"
path = "tests/resource_policy.rs"
[[test]]
name = "runtime_boundary"
path = "tests/runtime_boundary.rs"
[[test]]
name = "service_stack"
path = "tests/service_stack.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "session_close"
path = "tests/session_close.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "worker_channel"
path = "tests/worker_channel.rs"
[[test]]
name = "workspace_hooks"
path = "tests/workspace_hooks.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "workspace_queries"
path = "tests/workspace_queries.rs"
required-features = ["runtime-tokio"]
[[test]]
name = "workspace_requests"
path = "tests/workspace_requests.rs"
required-features = ["runtime-tokio"]
[dependencies.bytes]
version = "1"
[dependencies.futures-channel]
version = "0.3"
features = ["std"]
default-features = false
[dependencies.futures-util]
version = "0.3"
features = [
"std",
"async-await-macro",
]
default-features = false
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.lsp-types]
version = "0.97"
[dependencies.ropey]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = ["raw_value"]
[dependencies.thiserror]
version = "2"
[dependencies.tokio-util]
version = "0.7"
default-features = false
[dependencies.tracing]
version = "0.1"
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.wasm-bindgen-futures]
version = "0.4"
optional = true
[dependencies.web-sys]
version = "0.3"
features = [
"Event",
"MessageEvent",
"MessagePort",
]
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
"macros",
"rt",
"io-util",
"sync",
"rt-multi-thread",
"io-std",
"fs",
]
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite]
version = "0.30"
features = [
"handshake",
"stream",
]
optional = true
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.proc-macro2]
version = "1"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.syn]
version = "2"
features = [
"full",
"visit",
]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tempfile]
version = "3"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"process",
"io-util",
"time",
"net",
]
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
]
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.web-sys]
version = "0.3"
features = ["MessageChannel"]