← All stories
● Covered by 1 source Β· 1 reportMedium impact

Crates.io Adds Code Viewer and Decouples Accounts from GitHub

Aggregated by BrevFeed dev Β· updated 1h ago
πŸ”– Save

Crates.io has introduced a new Code tab for browsing published crate versions and is untangling account identities from GitHub. This update simplifies dependency audits and paves the way for broader login options, improving overall usability.

Key points

New Code Viewer Feature

The crates.io platform has added a 'Code' tab on crate pages that allows users to browse the exact files corresponding to published crate versions. This feature aids in auditing dependencies by showing files that may not be linked in the repository, such as generated Cargo.toml files.

The viewer includes a sidebar with a file tree, search functionality, syntax highlighting, and GitHub-like line selection for sharing specific code lines.

Server Improvements

To support the code viewing functionality, crates.io now builds a zip archive for each published version, enhancing access to files. This architecture ensures minimal load on the crates.io API servers while still allowing access to older crate versions.

Decoupling from GitHub

Crates.io has initiated a shift from relying solely on GitHub for user accounts, introducing native crates.io usernames. This change is a prerequisite for supporting additional identity provider logins. While the implementation is underway, users will gain the ability to customize their crates.io usernames in the future.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors β€” check the original sources. How BrevFeed works β†’

Primary sources

GitHub rust-lang/rfcs GitHub rust-lang/std-replacement-data GitHub rust-lang/crates.io GitHub rust-lang/blog.rust-lang.org

Reporting from

Crates.io has introduced a new 'Code' tab for browsing crate sources directly on its platform and has started implementing native crates.io usernames. These changes aim to improve auditing of dependencies and enhance user account management.