Repository navigation
Load the README's benchmark figure through github.com - #11
Merged
Merged
Conversation
The figure in the README's Benchmarks section pointed at raw.githubusercontent.com, which serves a private repository's files only with a token, so GitHub showed a broken image and the link around it went to a 404. A github.com/<repo>/raw/ URL is the one GitHub uses for a relative image: it goes with the viewer's session and redirects to a raw URL with a token. It stays absolute, which the crate docs need, because lib.rs includes the README, and once the repository is public it redirects for everyone.
clabby
force-pushed
the
readme-figure
branch
from
November 14, 2026 18:58
67c958a to
dee2a8d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bug. The figure in the README's Benchmarks section did not load on GitHub, and the link around it went to a 404.
raw.githubusercontent.com, which serves a private repository's files only with a token.https://github.com/clabby/bcmalloc/raw/main/assets/benchmarks.svginstead. That is the URL GitHub itself uses for a relative image. The request goes with the viewer's session and redirects to a raw URL that carries a token.lib.rsincludes the README. Once the repository is public, it redirects for everyone.Checks:
just bench-check, which confirms that the line sits outside the generated sections. I could not load the page in a logged-in browser from here, so the image itself is unconfirmed until you view the README on this branch.Stacked on #9.