Skip to content

Commit f0a2848

Browse files
committed
Add badges
1 parent ec12c31 commit f0a2848

File tree

10 files changed

+418
-0
lines changed

10 files changed

+418
-0
lines changed

Cargo.lock

Lines changed: 77 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ url = "1.1.1"
3131
params = "0.2.2"
3232
libc = "0.2"
3333

34+
[dependencies.badge]
35+
path = "src/web/badge"
36+
version = "0"
37+
3438
[dependencies.cargo]
3539
git = "https://github.com/rust-lang/cargo.git"
3640
rev = "ffa147d393037fd5632cd8c9d048b5521d70ab4c"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ extern crate r2d2_postgres;
2323
extern crate url;
2424
extern crate params;
2525
extern crate libc;
26+
extern crate badge;
2627

2728
pub use self::docbuilder::DocBuilder;
2829
pub use self::docbuilder::ChrootBuilderResult;

src/web/badge/Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[package]
2+
name = "badge"
3+
version = "0.1.0"
4+
description = "Simple badge generator"
5+
authors = ["Onur Aslan <[email protected]>"]
6+
license-file = "LICENSE"
7+
repository = "https://github.com/onur/docs.rs"
8+
documentation = "https://docs.rs/badge"
9+
10+
[lib]
11+
path = "badge.rs"
12+
13+
[dependencies]
14+
rusttype = "0.2.0"

src/web/badge/DejaVuSans.ttf

738 KB
Binary file not shown.

src/web/badge/LICENSE

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: badge
3+
Source: https://github.com/onur/docs.rs
4+
5+
Files: *
6+
Copyright: Copyright (c) 2016 Onur Aslan <[email protected]>
7+
License: Expat
8+
Permission is hereby granted, free of charge, to any person obtaining a copy
9+
of this software and associated documentation files (the "Software"), to deal
10+
in the Software without restriction, including without limitation the rights
11+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
copies of the Software, and to permit persons to whom the Software is
13+
furnished to do so, subject to the following conditions:
14+
.
15+
The above copyright notice and this permission notice shall be included in all
16+
copies or substantial portions of the Software.
17+
.
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
SOFTWARE.
25+
26+
Files: DejaVuSans.ttf
27+
Copyright: Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved.
28+
Bitstream Vera is a trademark of Bitstream, Inc.
29+
DejaVu changes are in public domain.
30+
License: bitstream-vera
31+
Permission is hereby granted, free of charge, to any person obtaining a copy
32+
of the fonts accompanying this license ("Fonts") and associated
33+
documentation files (the "Font Software"), to reproduce and distribute the
34+
Font Software, including without limitation the rights to use, copy, merge,
35+
publish, distribute, and/or sell copies of the Font Software, and to permit
36+
persons to whom the Font Software is furnished to do so, subject to the
37+
following conditions:
38+
.
39+
The above copyright and trademark notices and this permission notice shall
40+
be included in all copies of one or more of the Font Software typefaces.
41+
.
42+
The Font Software may be modified, altered, or added to, and in particular
43+
the designs of glyphs or characters in the Fonts may be modified and
44+
additional glyphs or characters may be added to the Fonts, only if the fonts
45+
are renamed to names not containing either the words "Bitstream" or the word
46+
"Vera".
47+
.
48+
This License becomes null and void to the extent applicable to Fonts or Font
49+
Software that has been modified and is distributed under the "Bitstream
50+
Vera" names.
51+
.
52+
The Font Software may be sold as part of a larger software package but no
53+
copy of one or more of the Font Software typefaces may be sold by itself.
54+
.
55+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
56+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
57+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
58+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
59+
FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
60+
ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
61+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
62+
THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
63+
FONT SOFTWARE.
64+
.
65+
Except as contained in this notice, the names of Gnome, the Gnome
66+
Foundation, and Bitstream Inc., shall not be used in advertising or
67+
otherwise to promote the sale, use or other dealings in this Font Software
68+
without prior written authorization from the Gnome Foundation or Bitstream
69+
Inc., respectively. For further information, contact: fonts at gnome dot
70+
org.

0 commit comments

Comments
 (0)