docs.rs failed to build csusage-adapter-common-0.0.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
ccusage-adapter-common
The file-reading and table-rendering behavior the adapters share, kept out of
ccusage-core so that changing it does not touch the report, pricing, or config
layers.
Owns
- file discovery by extension, including the JSONL helper most adapters use.
chunk_file_indexes_by_size— size-balanced work splitting, so one large file does not leave workers idle.read_files_parallel— ordered parallel reads: results come back in file order, so output does not depend on worker scheduling, and--single-threadcollapses to a plain sequential read.filter_loaded_entries_by_date— the shared--since/--untilfilter.jsonl— the streaming JSONL parsing helpers.report::print_table_for_agent— the usage table for adapters whose rows are plainUsageSummaryvalues, parameterized by agent name.
Public surface
report::print_table_for_agentcollect_usage_filescollect_files_with_extensionfilter_loaded_entries_by_datechunk_file_indexes_by_sizeread_files_parallel
Depends on
ccusage-coreserdeserde_json
Build layer
Built in the foundation Crane artifact layer, so a change here recompiles every adapter.