TIL: Conditional Dependencies in Rust
You can conditionally include dependencies
in Cargo.toml
based on the compile target.
If a crate requires SSE2 for example, put it in this section
[target.'cfg(target_feature = "sse2")'.dependencies]
sse2_only_crate = "0.0.1"
Webmentions
No webmentions were found.
{% for webmention in webmentions %}-
{{ webmention.content }}
{% if webmention.author %}
{{ webmention.author.name }}
{% endif %}
{% if webmention.pubdate and webmention.url %}on{% endif %}
{% if webmention.pubdate %}
{% endif %}
{% endfor %}
{% else %}No bookmarks were found.
{% endif %}{% for webmention in webmentions %}-
{% endfor %}
{% else %}No likes were found.
{% endif %}{% for webmention in webmentions %}-
{{ webmention.content }}
{% if webmention.author %}
{{ webmention.author.name }}
{% endif %}
{% if webmention.pubdate and webmention.url %}on{% endif %}
{% if webmention.pubdate %}
{% endif %}
{% endfor %}
{% else %}No links were found.
{% endif %}{% for webmention in webmentions %}-
{{ webmention.title }}
{% if webmention.pubdate %}
{% endif %}
{% endfor %}
{% else %}No posts were found.
{% endif %}{% for webmention in webmentions %}-
{{ webmention.content }}
{% if webmention.author %}
{% if webmention.author.photo %}
{% endif %}
{{ webmention.author.name }}
{% endif %}
{% if webmention.pubdate and webmention.author %}on{% endif %}
{% if webmention.pubdate %}
{% endif %}
{% endfor %}
{% else %}No replies were found.
{% endif %}{% for webmention in webmentions %}-
{% endfor %}
{% else %}No reposts were found.
{% endif %}{% for webmention in webmentions %}-
{{ webmention.author.name }}
{{ webmention.content }}
{% endfor %}
{% else %}No RSVPs were found.
{% endif %}{% for webmention in webmentions %}-
{% if webmention.author %}
{% if webmention.author.photo %}
{% endif %}
{{ webmention.author.name }}
{% endif %}
{% if webmention.content %}
{{ webmention.content }}
{% else %}
{{ webmention.title }}
{% endif %}
{% if webmention.pubdate %}
{% endif %}
{% if webmention.pubdate and webmention.url %}|{% endif %}
{% if webmention.url %}
Permalink
{% endif %}
{% endfor %}
{% else %}No webmentions were found.
{% endif %}Comments