-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crates.io used to show some automatically per badge configuration in the crate toml files, however then they dropped this ([1]). crates now show badges via embedding them in readme.md files. shields.io is a popular service for constructing and serving badges, with a lot of available customisation. here i have selected the 'for-the-badge' style, which is similar to the nice 'flat-square' style, but uses capital letters and a default later height of 28px instead of 20px. I have used HTML for embedding them to allow control over the size, which I have forced to 24px since 28px is just too large. (there is a query-param available to control width but not height for some reason). notes: - for the min-rust-version badge, there were two different URL formats available for custom badges, I went with the 'static' form which makes use of a lot of query params. - for the min-rust-version badge, I had to use capitals for the service text to get it consistent with the rest, since it was not automatically capitalising it. - for the docs.rs one i had to use the crates.io one with a custom colour and service text specified, since shields.io has a mechanism in place for automatically building the latest crates.io version number into the crates.io badge, but does not have a similar specific badge-builder available for docs.rs badges. (and the badge you can get from docs.rs itself is a different style of course). - the message for the min-rust-version is '1.40%2B' which is '1.40+'! i was inspired by the badges of the 'quote' crate. [1]: rust-lang/crates.io#2436
- Loading branch information
Showing
7 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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