Cargo Features

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

The serde feature is set by default whenever oak-python 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::PythonHoverProvider, lsp::PythonLanguageService, oak-python::lsp

mcp = lsp

Enables io-std of oak-mcp

Affects oak-python::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-python::lsp

oak-pretty-print lsp?

Affects oak-python::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