53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
{% extends "_base" %}
|
|
{% block content -%}
|
|
{% if error -%}
|
|
{{ error }}
|
|
|
|
{% endif -%}
|
|
|
|
{%- if item -%}
|
|
## {{ item.name }} v{{ item.latest_version.version }}
|
|
> {{ item.description }}
|
|
by {{ item.owner }} {% if item.license %}[{{ item.license }}]{% endif %}
|
|
|
|
### Install by:
|
|
Run this command in your project's directory:
|
|
```
|
|
cargo add {{ item.name }}
|
|
```
|
|
Or add the following line to your Cargo.toml
|
|
```
|
|
[dependencies]
|
|
{{ item.name }} = "{{ item.latest_version.version }}"
|
|
```
|
|
|
|
{% if item.api_reference -%}
|
|
=> {{ item.api_reference }} API reference
|
|
{%- endif %}
|
|
{% if item.git_repo -%}
|
|
=> {{ item.git_repo }} Git repo
|
|
{%- endif %}
|
|
{% if item.website -%}
|
|
=> {{ item.website }} Website
|
|
{%- endif %}
|
|
### Latest versions:
|
|
{%- for version in item.versions %}
|
|
* {{ version.version }} {{ version.date }}
|
|
{%- endfor %}
|
|
|
|
### Readme
|
|
----------------------------------------------
|
|
{{ item.readme | trim }}
|
|
----------------------------------------------
|
|
|
|
### Dependencies:
|
|
{% if item.dependencies -%}
|
|
{%- for dep in item.dependencies %}
|
|
=> /crates/{{ dep }} {{ dep }}
|
|
{%- endfor -%}
|
|
{%- else -%}
|
|
No dependencies
|
|
{%- endif -%}
|
|
{%- endif -%}
|
|
{% endblock content %}
|