code-chunker 0.2.0

AST-aware code chunking and late chunking for RAG
Documentation
Build #3158941 2026-04-19 13:41:02

# rustc version rustc 1.97.0-nightly (0febdbab2 2026-04-18)

# docs.rs version docsrs 0.0.0 (15f7e1e9dfac4fc5b7cc4abfd7682239002ba909 2026-04-08 )

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/code-chunker-0.2.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/code-chunker-0.2.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "6442450944" "--cpuset-cpus" "8-11" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "sleep" "infinity", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a061d2a81a7976ebf7ee88975b5e345cfcfcd63b6421c970b20e7d0e9ee0ca80 [INFO] running `Command { std: "docker" "start" "a061d2a81a7976ebf7ee88975b5e345cfcfcd63b6421c970b20e7d0e9ee0ca80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "a061d2a81a7976ebf7ee88975b5e345cfcfcd63b6421c970b20e7d0e9ee0ca80" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260418-1.97.0-nightly-0febdbab2\", \"--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\"" "-Zrustdoc-scrape-examples" "-j4" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: code_chunking, late_chunking [INFO] [stderr] If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true` [INFO] [stderr] to the [[example]] target configuration of at least one example. [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting code-chunker v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unresolved link to `crate::CodeChunker` [INFO] [stderr] --> src/sizer.rs:5:21 [INFO] [stderr] | [INFO] [stderr] 5 | /// [`CodeChunker`](crate::CodeChunker) uses a `ChunkSizer` to decide whether [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ no item named `CodeChunker` in module `code_chunker` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `CodeChunker` [INFO] [stderr] --> src/lib.rs:90:50 [INFO] [stderr] | [INFO] [stderr] 90 | /// This crate only ships one public chunker — [`CodeChunker`] — but the [INFO] [stderr] | ^^^^^^^^^^^ no item named `CodeChunker` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] [INFO] [stderr] warning: `code-chunker` (lib doc) generated 2 warnings [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.45s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/code_chunker/index.html [INFO] running `Command { std: "docker" "stop" "-t" "1" "a061d2a81a7976ebf7ee88975b5e345cfcfcd63b6421c970b20e7d0e9ee0ca80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a061d2a81a7976ebf7ee88975b5e345cfcfcd63b6421c970b20e7d0e9ee0ca80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a061d2a81a7976ebf7ee88975b5e345cfcfcd63b6421c970b20e7d0e9ee0ca80", kill_on_drop: false }` [INFO] [stdout] a061d2a81a7976ebf7ee88975b5e345cfcfcd63b6421c970b20e7d0e9ee0ca80