Cargo Features

Ollama-rs has no features set by default.

[dependencies]
ollama-rs = { version = "0.2.4", features = ["stream", "rustls", "headers", "tool-implementations", "macros"] }
default

These default features are set whenever ollama-rs is added without default-features = false somewhere in the dependency tree.

Enables default-tls of reqwest

reqwest:

Note: this doesn't enable the 'native-tls' feature, which adds specific functionality for it.

stream = tokio, tokio-stream

Enables stream of reqwest

Affects chat::ChatMessageResponseStream, completion::GenerationResponseStream, create::CreateModelStatusStream, pull::PullModelStatusStream, push::PushModelStatusStream

rustls

Enables rustls-tls of reqwest

headers = http

Affects ollama-rs::headers

tool-implementations = calc, html2md, regex, scraper, text-splitter

Affects tools::implementations

macros = ollama-rs-macros

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.

tokio stream?
tokio-stream stream?
scraper tool-implementations?

Enables scraper ^0.19.0

text-splitter tool-implementations?

Enables text-splitter ^0.13.1

regex tool-implementations?
http headers?
calc tool-implementations?
html2md tool-implementations?
ollama-rs-macros macros?