-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.j2
27 lines (23 loc) · 1.33 KB
/
README.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{%- if crate is defined -%}
# {{ crate }}
{%- if license is defined %} ![License: {{ license }}](https://img.shields.io/badge/license-{{ license | replace("-", "--") | urlencode }}-blue)
{%- else %} ![License](https://img.shields.io/crates/l/{{ crate | urlencode }})
{%- endif %}
{%- if crate is defined %} [![{{ crate }} on crates.io](https://img.shields.io/crates/v/{{ crate | urlencode }})](https://crates.io/crates/{{ crate | urlencode }})
{%- if target == "lib" %} [![{{ crate }} on docs.rs](https://docs.rs/{{ crate | urlencode }}/badge.svg)](https://docs.rs/{{ crate | urlencode }})
{%- endif %}
{%- endif %}
{%- if repository is defined %}
{%- if repository_host == "github.com" %} [![Source Code Repository](https://img.shields.io/badge/Code-On%20GitHub-blue?logo=GitHub)]({{ repository }})
{%- elif repository_host is defined %} [![Source Code Repository](https://img.shields.io/badge/Code-On%20{{ repository_host | replace("-", "--") | urlencode }}-blue)]({{ repository }})
{%- endif %}
{%- endif %}
{%- if rust_version is defined %} ![Rust Version: {{rust_version}}](https://img.shields.io/badge/rustc-{{ rust_version | urlencode }}-orange.svg)
{%- endif %}
{%- endif %}
{{ readme }}
## TODOs
- improve tests (how exactly?)
{% if links != "" %}
{{ links }}
{%- endif %}