llama-cpp-4 0.7.0

llama.cpp bindings for Rust
Documentation

Build #4393890 2026-09-09 19:52:17

# rustc version rustc 1.100.0-nightly (4aa1fbcf4 2026-09-08)

# docs.rs version docsrs 0.0.0 (bbe8284d494398efa390829fb7f0bf2364bcdf59 2026-09-08 )

# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "21bfcf26229544fb5ce9c6a07cb135ebe4d968e717af668da6683d0cc7ba2657" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--features" "mtmd ggml rpc" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=html-non-static-files\", \"--resource-suffix\", \"-20260908-1.100.0-nightly-4aa1fbcf4\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-j12" "--target" "x86_64-unknown-linux-gnu" "-Zrustdoc-scrape-examples", kill_on_drop: false }` [INFO] [stderr] warning: explicit `package.readme` can be inferred [INFO] [stderr] --> Cargo.toml:77:1 [INFO] [stderr] | [INFO] [stderr] 77 | readme = "README.md" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::manual_readme` is set to `warn` by default [INFO] [stderr] help: consider removing `package.readme` [INFO] [stderr] warning: `llama-cpp-4` (manifest) generated 1 warning [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting llama-cpp-4 v0.7.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: public documentation for `ChatError` links to private item `crate::shim::ShimError` [INFO] [stderr] --> src/chat.rs:44:32 [INFO] [stderr] | [INFO] [stderr] 44 | /// An alias for [`ShimError`](crate::shim::ShimError) — every shim-backed [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] = note: `#[warn(rustdoc::private_intra_doc_links)]` on by default [INFO] [stderr] [INFO] [stderr] warning: public documentation for `parse_oaicompat` links to private item `ChatError::Failed` [INFO] [stderr] --> src/chat.rs:94:19 [INFO] [stderr] | [INFO] [stderr] 94 | /// Returns [`ChatError::Failed`] if llama.cpp does not recognise `value`. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `json_schema_to_grammar` links to private item `ChatError::BadJson` [INFO] [stderr] --> src/chat.rs:151:15 [INFO] [stderr] | [INFO] [stderr] 151 | /// Returns [`ChatError::BadJson`] if `schema_json` is not valid JSON, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `json_schema_to_grammar` links to private item `ChatError::Failed` [INFO] [stderr] --> src/chat.rs:152:7 [INFO] [stderr] | [INFO] [stderr] 152 | /// [`ChatError::Failed`] if it is not a schema llama.cpp can convert. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `from_model` links to private item `ChatError::Init` [INFO] [stderr] --> src/chat.rs:191:19 [INFO] [stderr] | [INFO] [stderr] 191 | /// Returns [`ChatError::Init`] if the model has no usable template [INFO] [stderr] | ^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `source` links to private item `ChatError::Failed` [INFO] [stderr] --> src/chat.rs:209:19 [INFO] [stderr] | [INFO] [stderr] 209 | /// Returns [`ChatError::Failed`] if llama.cpp could not report a source. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `caps_json` links to private item `ChatError::Failed` [INFO] [stderr] --> src/chat.rs:238:19 [INFO] [stderr] | [INFO] [stderr] 238 | /// Returns [`ChatError::Failed`] if llama.cpp could not report caps. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `apply` links to private item `ChatError::BadJson` [INFO] [stderr] --> src/chat.rs:249:19 [INFO] [stderr] | [INFO] [stderr] 249 | /// Returns [`ChatError::BadJson`] for malformed `messages`/`tools` JSON, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `apply` links to private item `ChatError::Failed` [INFO] [stderr] --> src/chat.rs:250:11 [INFO] [stderr] | [INFO] [stderr] 250 | /// [`ChatError::Failed`] if the template cannot render the request. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `format_name` links to private item `ChatError::Failed` [INFO] [stderr] --> src/chat.rs:535:19 [INFO] [stderr] | [INFO] [stderr] 535 | /// Returns [`ChatError::Failed`] if llama.cpp cannot name the format. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `parse` links to private item `ChatError::Failed` [INFO] [stderr] --> src/chat.rs:673:19 [INFO] [stderr] | [INFO] [stderr] 673 | /// Returns [`ChatError::Failed`] if the output cannot be parsed. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `parse_with` links to private item `ChatError::Failed` [INFO] [stderr] --> src/chat.rs:683:19 [INFO] [stderr] | [INFO] [stderr] 683 | /// Returns [`ChatError::Failed`] if the output cannot be parsed. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `format_name` links to private item `ChatError::Failed` [INFO] [stderr] --> src/chat.rs:714:15 [INFO] [stderr] | [INFO] [stderr] 714 | /// Returns [`ChatError::Failed`] if llama.cpp cannot name the format. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `parse_messages_oaicompat` links to private item `ChatError::BadJson` [INFO] [stderr] --> src/chat.rs:729:15 [INFO] [stderr] | [INFO] [stderr] 729 | /// Returns [`ChatError::BadJson`] if the input is not valid JSON, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `parse_messages_oaicompat` links to private item `ChatError::Failed` [INFO] [stderr] --> src/chat.rs:730:7 [INFO] [stderr] | [INFO] [stderr] 730 | /// [`ChatError::Failed`] if it is not a valid message array. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `parse_tools_oaicompat` links to private item `ChatError::BadJson` [INFO] [stderr] --> src/chat.rs:743:15 [INFO] [stderr] | [INFO] [stderr] 743 | /// Returns [`ChatError::BadJson`] if the input is not valid JSON, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `parse_tools_oaicompat` links to private item `ChatError::Failed` [INFO] [stderr] --> src/chat.rs:744:7 [INFO] [stderr] | [INFO] [stderr] 744 | /// [`ChatError::Failed`] if it is not a valid tool array. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `CommonSamplerError` links to private item `crate::shim::ShimError` [INFO] [stderr] --> src/common_sampler.rs:34:32 [INFO] [stderr] | [INFO] [stderr] 34 | /// An alias for [`ShimError`](crate::shim::ShimError) — every shim-backed [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `name` links to private item `CommonSamplerError::Failed` [INFO] [stderr] --> src/common_sampler.rs:80:19 [INFO] [stderr] | [INFO] [stderr] 80 | /// Returns [`CommonSamplerError::Failed`] if llama.cpp cannot name it. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `from_names` links to private item `CommonSamplerError::Nul` [INFO] [stderr] --> src/common_sampler.rs:94:19 [INFO] [stderr] | [INFO] [stderr] 94 | /// Returns [`CommonSamplerError::Nul`] if a name contains an interior NUL. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `set_grammar` links to private item `CommonSamplerError::Nul` [INFO] [stderr] --> src/common_sampler.rs:212:19 [INFO] [stderr] | [INFO] [stderr] 212 | /// Returns [`CommonSamplerError::Nul`] for an interior NUL in `grammar`. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `add_grammar_trigger` links to private item `CommonSamplerError::InvalidArg` [INFO] [stderr] --> src/common_sampler.rs:233:19 [INFO] [stderr] | [INFO] [stderr] 233 | /// Returns [`CommonSamplerError::InvalidArg`] for an unknown `kind`, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `add_grammar_trigger` links to private item `CommonSamplerError::Nul` [INFO] [stderr] --> src/common_sampler.rs:234:11 [INFO] [stderr] | [INFO] [stderr] 234 | /// [`CommonSamplerError::Nul`] for an interior NUL. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `set_generation_prompt` links to private item `CommonSamplerError::Nul` [INFO] [stderr] --> src/common_sampler.rs:259:19 [INFO] [stderr] | [INFO] [stderr] 259 | /// Returns [`CommonSamplerError::Nul`] for an interior NUL. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `add_logit_bias` links to private item `CommonSamplerError::InvalidArg` [INFO] [stderr] --> src/common_sampler.rs:275:19 [INFO] [stderr] | [INFO] [stderr] 275 | /// Returns [`CommonSamplerError::InvalidArg`] if the params handle is bad. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `set_samplers` links to private item `CommonSamplerError::InvalidArg` [INFO] [stderr] --> src/common_sampler.rs:287:19 [INFO] [stderr] | [INFO] [stderr] 287 | /// Returns [`CommonSamplerError::InvalidArg`] if the params handle is bad. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `set_dry_breakers` links to private item `CommonSamplerError::Nul` [INFO] [stderr] --> src/common_sampler.rs:304:19 [INFO] [stderr] | [INFO] [stderr] 304 | /// Returns [`CommonSamplerError::Nul`] for an interior NUL. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `set_reasoning_budget` links to private item `CommonSamplerError::Nul` [INFO] [stderr] --> src/common_sampler.rs:331:19 [INFO] [stderr] | [INFO] [stderr] 331 | /// Returns [`CommonSamplerError::Nul`] for an interior NUL in `message`. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `new` links to private item `CommonSamplerError::Failed` [INFO] [stderr] --> src/common_sampler.rs:401:19 [INFO] [stderr] | [INFO] [stderr] 401 | /// Returns [`CommonSamplerError::Failed`] if llama.cpp cannot build it — [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `sample` links to private item `CommonSamplerError::Failed` [INFO] [stderr] --> src/common_sampler.rs:420:19 [INFO] [stderr] | [INFO] [stderr] 420 | /// Returns [`CommonSamplerError::Failed`] if llama.cpp throws. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `sample_and_accept_n` links to private item `CommonSamplerError::Failed` [INFO] [stderr] --> src/common_sampler.rs:462:19 [INFO] [stderr] | [INFO] [stderr] 462 | /// Returns [`CommonSamplerError::Failed`] if llama.cpp throws. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `try_clone` links to private item `CommonSamplerError::Failed` [INFO] [stderr] --> src/common_sampler.rs:493:19 [INFO] [stderr] | [INFO] [stderr] 493 | /// Returns [`CommonSamplerError::Failed`] if llama.cpp returns null. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `describe` links to private item `CommonSamplerError::Failed` [INFO] [stderr] --> src/common_sampler.rs:524:19 [INFO] [stderr] | [INFO] [stderr] 524 | /// Returns [`CommonSamplerError::Failed`] if llama.cpp throws. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `prev_str` links to private item `CommonSamplerError::Failed` [INFO] [stderr] --> src/common_sampler.rs:535:19 [INFO] [stderr] | [INFO] [stderr] 535 | /// Returns [`CommonSamplerError::Failed`] if llama.cpp throws. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `new` links to private item `CommonSamplerError::Failed` [INFO] [stderr] --> src/common_sampler.rs:631:19 [INFO] [stderr] | [INFO] [stderr] 631 | /// Returns [`CommonSamplerError::Failed`] if llama.cpp returns null. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `with_initial_state` links to private item `CommonSamplerError::Failed` [INFO] [stderr] --> src/common_sampler.rs:649:19 [INFO] [stderr] | [INFO] [stderr] 649 | /// Returns [`CommonSamplerError::Failed`] if llama.cpp returns null. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `ngram_simple_draft` links to private item `NgramError::Failed` [INFO] [stderr] --> src/ngram.rs:55:15 [INFO] [stderr] | [INFO] [stderr] 55 | /// Returns [`NgramError::Failed`] if llama.cpp throws. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `load` links to private item `NgramError::Failed` [INFO] [stderr] --> src/ngram.rs:138:19 [INFO] [stderr] | [INFO] [stderr] 138 | /// Returns [`NgramError::Failed`] if the file is missing or malformed, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `load` links to private item `NgramError::Nul` [INFO] [stderr] --> src/ngram.rs:139:11 [INFO] [stderr] | [INFO] [stderr] 139 | /// [`NgramError::Nul`] for an interior NUL in `path`. [INFO] [stderr] | ^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `save` links to private item `NgramError::Failed` [INFO] [stderr] --> src/ngram.rs:152:19 [INFO] [stderr] | [INFO] [stderr] 152 | /// Returns [`NgramError::Failed`] if the file cannot be written, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `save` links to private item `NgramError::Nul` [INFO] [stderr] --> src/ngram.rs:153:11 [INFO] [stderr] | [INFO] [stderr] 153 | /// [`NgramError::Nul`] for an interior NUL in `path`. [INFO] [stderr] | ^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `merge` links to private item `NgramError::Failed` [INFO] [stderr] --> src/ngram.rs:165:19 [INFO] [stderr] | [INFO] [stderr] 165 | /// Returns [`NgramError::Failed`] if llama.cpp throws. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `update` links to private item `NgramError::Failed` [INFO] [stderr] --> src/ngram.rs:193:19 [INFO] [stderr] | [INFO] [stderr] 193 | /// Returns [`NgramError::Failed`] if llama.cpp throws. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `ngram_cache_draft` links to private item `NgramError::InvalidArg` [INFO] [stderr] --> src/ngram.rs:225:15 [INFO] [stderr] | [INFO] [stderr] 225 | /// Returns [`NgramError::InvalidArg`] for empty `tokens`, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `ngram_cache_draft` links to private item `NgramError::Failed` [INFO] [stderr] --> src/ngram.rs:226:7 [INFO] [stderr] | [INFO] [stderr] 226 | /// [`NgramError::Failed`] if llama.cpp throws. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `new` links to private item `NgramError::Failed` [INFO] [stderr] --> src/ngram.rs:302:19 [INFO] [stderr] | [INFO] [stderr] 302 | /// Returns [`NgramError::Failed`] if llama.cpp cannot allocate the map — [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `begin` links to private item `NgramError::Failed` [INFO] [stderr] --> src/ngram.rs:316:19 [INFO] [stderr] | [INFO] [stderr] 316 | /// Returns [`NgramError::Failed`] if llama.cpp throws. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `draft` links to private item `NgramError::Failed` [INFO] [stderr] --> src/ngram.rs:332:19 [INFO] [stderr] | [INFO] [stderr] 332 | /// Returns [`NgramError::Failed`] if llama.cpp throws. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `RuntimeError::Failed` [INFO] [stderr] --> src/runtime.rs:146:19 [INFO] [stderr] | [INFO] [stderr] 146 | /// Returns [`RuntimeError::Failed`] if the file cannot be opened, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ no item named `RuntimeError` in scope [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `RuntimeError::Nul` [INFO] [stderr] --> src/runtime.rs:147:11 [INFO] [stderr] | [INFO] [stderr] 147 | /// [`RuntimeError::Nul`] for an interior NUL in `path`. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ no item named `RuntimeError` in scope [INFO] [stderr] [INFO] [stderr] warning: public documentation for `resolve_hf` links to private item `RuntimeError::Failed` [INFO] [stderr] --> src/runtime.rs:192:19 [INFO] [stderr] | [INFO] [stderr] 192 | /// Returns [`RuntimeError::Failed`] if resolution or download fails, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `resolve_hf` links to private item `RuntimeError::Nul` [INFO] [stderr] --> src/runtime.rs:193:11 [INFO] [stderr] | [INFO] [stderr] 193 | /// [`RuntimeError::Nul`] for an interior NUL. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `split_repo_tag` links to private item `RuntimeError::Failed` [INFO] [stderr] --> src/runtime.rs:211:19 [INFO] [stderr] | [INFO] [stderr] 211 | /// Returns [`RuntimeError::Failed`] if llama.cpp throws, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `split_repo_tag` links to private item `RuntimeError::Nul` [INFO] [stderr] --> src/runtime.rs:212:11 [INFO] [stderr] | [INFO] [stderr] 212 | /// [`RuntimeError::Nul`] for an interior NUL. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `remove_cached` links to private item `RuntimeError::Failed` [INFO] [stderr] --> src/runtime.rs:261:19 [INFO] [stderr] | [INFO] [stderr] 261 | /// Returns [`RuntimeError::Failed`] if llama.cpp throws, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `remove_cached` links to private item `RuntimeError::Nul` [INFO] [stderr] --> src/runtime.rs:262:11 [INFO] [stderr] | [INFO] [stderr] 262 | /// [`RuntimeError::Nul`] for an interior NUL. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `list_cached_json` links to private item `RuntimeError::Failed` [INFO] [stderr] --> src/runtime.rs:281:19 [INFO] [stderr] | [INFO] [stderr] 281 | /// Returns [`RuntimeError::Failed`] if the cache cannot be read. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `resolve_docker` links to private item `RuntimeError::Failed` [INFO] [stderr] --> src/runtime.rs:292:19 [INFO] [stderr] | [INFO] [stderr] 292 | /// Returns [`RuntimeError::Failed`] if resolution fails, or [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `resolve_docker` links to private item `RuntimeError::Nul` [INFO] [stderr] --> src/runtime.rs:293:11 [INFO] [stderr] | [INFO] [stderr] 293 | /// [`RuntimeError::Nul`] for an interior NUL. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `name` links to private item `RuntimeError::Failed` [INFO] [stderr] --> src/runtime.rs:34:19 [INFO] [stderr] | [INFO] [stderr] 34 | /// Returns [`RuntimeError::Failed`] if llama.cpp cannot name it. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `from_name` links to private item `RuntimeError::InvalidArg` [INFO] [stderr] --> src/runtime.rs:45:19 [INFO] [stderr] | [INFO] [stderr] 45 | /// Returns [`RuntimeError::InvalidArg`] if the name is not recognised — [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `from_name` links to private item `RuntimeError::Nul` [INFO] [stderr] --> src/runtime.rs:48:27 [INFO] [stderr] | [INFO] [stderr] 48 | /// select nothing. [`RuntimeError::Nul`] for an interior NUL. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `all_names` links to private item `RuntimeError::Failed` [INFO] [stderr] --> src/runtime.rs:63:19 [INFO] [stderr] | [INFO] [stderr] 63 | /// Returns [`RuntimeError::Failed`] if llama.cpp throws. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `speculative_types_from_gguf` links to private item `RuntimeError::Nul` [INFO] [stderr] --> src/runtime.rs:84:15 [INFO] [stderr] | [INFO] [stderr] 84 | /// Returns [`RuntimeError::Nul`] for an interior NUL in `path`. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `try_sample` links to private item `crate::shim::ShimError::Failed` [INFO] [stderr] --> src/sampling.rs:140:39 [INFO] [stderr] | [INFO] [stderr] 140 | /// Returns [`ShimError::Failed`](crate::shim::ShimError::Failed) carrying [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: public documentation for `try_accept` links to private item `crate::shim::ShimError::Failed` [INFO] [stderr] --> src/sampling.rs:180:39 [INFO] [stderr] | [INFO] [stderr] 180 | /// Returns [`ShimError::Failed`](crate::shim::ShimError::Failed) when the [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this item is private [INFO] [stderr] | [INFO] [stderr] = note: this link will resolve properly if you pass `--document-private-items` [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/eagle.rs:20:58 [INFO] [stderr] | [INFO] [stderr] 20 | ...xt type | [`LlamaContextType::Default`](crate::context::params::LlamaContextType::Default) | [`LlamaContextType::Mtp`](crate::con... [INFO] [stderr] | --------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 20 - //! | Draft context type | [`LlamaContextType::Default`](crate::context::params::LlamaContextType::Default) | [`LlamaContextType::Mtp`](crate::context::params::LlamaContextType::Mtp) | [INFO] [stderr] 20 + //! | Draft context type | [`LlamaContextType::Default`] | [`LlamaContextType::Mtp`](crate::context::params::LlamaContextType::Mtp) | [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/eagle.rs:20:137 [INFO] [stderr] | [INFO] [stderr] 20 | ...e::Default) | [`LlamaContextType::Mtp`](crate::context::params::LlamaContextType::Mtp) | [INFO] [stderr] | ----------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 20 - //! | Draft context type | [`LlamaContextType::Default`](crate::context::params::LlamaContextType::Default) | [`LlamaContextType::Mtp`](crate::context::params::LlamaContextType::Mtp) | [INFO] [stderr] 20 + //! | Draft context type | [`LlamaContextType::Default`](crate::context::params::LlamaContextType::Default) | [`LlamaContextType::Mtp`] | [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/eagle.rs:262:39 [INFO] [stderr] | [INFO] [stderr] 262 | /// [`LlamaContextType::Default`](crate::context::params::LlamaContextType::Default) [INFO] [stderr] | --------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 262 - /// [`LlamaContextType::Default`](crate::context::params::LlamaContextType::Default) [INFO] [stderr] 262 + /// [`LlamaContextType::Default`] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/eagle.rs:290:39 [INFO] [stderr] | [INFO] [stderr] 290 | /// [`LlamaContextType::Default`](crate::context::params::LlamaContextType::Default) [INFO] [stderr] | --------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 290 - /// [`LlamaContextType::Default`](crate::context::params::LlamaContextType::Default) [INFO] [stderr] 290 + /// [`LlamaContextType::Default`] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/mtp.rs:296:58 [INFO] [stderr] | [INFO] [stderr] 296 | /// `target` must be a [`LlamaContextType::Default`](crate::context::params::LlamaContextType::Default) context. [INFO] [stderr] | --------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 296 - /// `target` must be a [`LlamaContextType::Default`](crate::context::params::LlamaContextType::Default) context. [INFO] [stderr] 296 + /// `target` must be a [`LlamaContextType::Default`] context. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/mtp.rs:297:53 [INFO] [stderr] | [INFO] [stderr] 297 | /// `draft` must be a [`LlamaContextType::Mtp`](crate::context::params::LlamaContextType::Mtp) context from the same model, [INFO] [stderr] | ----------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 297 - /// `draft` must be a [`LlamaContextType::Mtp`](crate::context::params::LlamaContextType::Mtp) context from the same model, [INFO] [stderr] 297 + /// `draft` must be a [`LlamaContextType::Mtp`] context from the same model, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `llama-cpp-4` (lib doc) generated 72 warnings [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.75s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/llama_cpp_4/index.html [INFO] running `Command { std: "docker" "inspect" "21bfcf26229544fb5ce9c6a07cb135ebe4d968e717af668da6683d0cc7ba2657", kill_on_drop: false }`