Cargo Features

[dependencies]
oak-swift = { version = "0.0.11", default-features = false, features = ["serde", "lsp", "mcp", "tokio"] }
default = serde

The serde feature is set by default whenever oak-swift is added without default-features = false somewhere in the dependency tree.

serde default

Enables serde, serde of oak-core

lsp mcp? = oak-highlight, oak-pretty-print

Enables futures, oak-hover, oak-lsp, and oak-vfs

Affects lsp::SwiftHoverProvider, lsp::SwiftLanguageService, oak-swift::lsp

mcp = lsp

Enables io-std of oak-mcp

Affects oak-swift::mcp

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

oak-highlight lsp?

Affects lsp::highlighter, oak-swift::lsp

oak-pretty-print lsp?

Affects lsp::formatter, oak-swift::lsp

oak-mcp mcp?
tokio implicit feature

Enables tokio

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications