Skip to main content

Crate crates_readme_table

Crate crates_readme_table 

Source
Expand description

Crates README table: fetches user’s crates from crates.io and updates README.

Structs§

Crate
CratesResponse
Meta

Constants§

CRATES_IO_USER_AGENT
User-Agent for crates.io API (required by crates.io crawler policy).

Functions§

build_crates_table
Builds the markdown table for the crates list.
get_all_crates
Fetches all crates for a user by paginating through the API.
get_crates
Fetches one page of crates for a user from crates.io API.
update_readme_with_table
Updates README.md by replacing the content between section markers with the new table.