docs.rs failed to build csusage-adapter-claude-0.0.1
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-claude
The Claude Code adapter: it turns the JSONL transcripts Claude Code writes per project and session into the usage entries the reports render.
Owns
daily.rs— the daily report path, which reads the same files with a narrower parser.paths.rs— environment variables, default directories, and file discovery.
Anything that is not specific to this source belongs in ccusage-core or
ccusage-adapter-common instead.
Data source
~/.claude/projects/**/*.jsonland~/.config/claude/projects/**/*.jsonl
Record shapes, token mapping, and cost rules are documented in src/README.md.
Reads plain files through ccusage-adapter-common, which handles walking, size-balanced
chunking, and ordered parallel reads.
Public surface
paths::timestamp_from_linepaths::claude_pathspaths::extract_projectpaths::extract_session_partspaths::usage_filesload_entriesload_daily_summariesusage_limit_reset_time_from_line
Depends on
ccusage-adapter-commonccusage-corejiffmemchrrustc-hashserdeserde_json
Build layer
Built in the adapters Crane artifact layer; the layer compiles all adapters in one Cargo invocation, so they build concurrently.