Skip to content

Commit 1fe2952

Browse files
committed
✨ Update crate() macro and add more rust crate links
1 parent a2dcb98 commit 1fe2952

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

content/blog/2019-10-07-building-wasm-with-rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title = "Building WASM with Rust"
33
[taxonomies]
44
tags = ["rust","wasm"]
55
+++
6-
There are several options to build Rust into WebAssembly. `cargo-web` was the preferred way for `yew`, but nowadays yew also supports wasm-bindgen and this opens up some possibilities for javascript interop.
6+
There are several options to build Rust into WebAssembly. {{ crate(name="cargo-web") }} was the preferred way for {{ crate(name="yew") }}, but nowadays yew also supports {{ crate(name="wasm-bindgen") }} and this opens up some possibilities for javascript interop.
77

88
<!-- more -->
99

content/blog/2019-11-17-rust-on-longan-nano.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ I'm on OSX so your mileage may vary. I started from a blog post [here](https://p
1515
git clone https://github.com/pcein/rust-sipeed-longan-nano
1616
```
1717

18-
I use `cargo-xbuild` to build and `cargo-binutils` to perform various object manipulation tasks, so install them first.
18+
I use {{ crate(name="cargo-xbuild") }} to build and {{ crate(name="cargo-binutils") }} to perform various object manipulation tasks, so install them first.
1919

2020
```sh
2121
cargo install cargo-xbuild cargo-binutils

content/blog/2022-05-03-osdev-tooling-3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ I wanted to try my hand at some Tokio code, but I believe another approach would
2323

2424
## Other tools
2525

26-
Using cargo-make lets install helper tools as part of the build, so I added `rustfilt` dependency to my `nm` command. Now `just nm` would not simply dump all of the kernel symbols, but sort them by start address and demangle names to proper Rust qualified identifiers.
26+
Using cargo-make lets install helper tools as part of the build, so I added {{ crate(name="rustfilt") }} dependency to my `nm` command. Now `just nm` would not simply dump all of the kernel symbols, but sort them by start address and demangle names to proper Rust qualified identifiers.
2727

2828
```
2929
000000000009390c t core::slice::index::slice_start_index_len_fail_rt

templates/shortcodes/crate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{{ name }}](https://lib.rs/crates/{{ name }}) [![crates.io](https://img.shields.io/crates/v/{{ name }}?labelColor=blue&color=darkblue)](https://crates.io/crates/{{ name }}){% if gh %} <a href="https://github.com/{{ gh }}" alt="GitHub"><i class="lni lni-github"></i></a>{% endif %}{% if body %} {{ body }}{% endif %}
1+
📦 [{{ name }}](https://lib.rs/crates/{{ name }}) [![crates.io](https://img.shields.io/crates/v/{{ name }}?labelColor=blue&color=darkblue)](https://crates.io/crates/{{ name }}){% if gh %} <a href="https://github.com/{{ gh }}" alt="GitHub"><i class="lni lni-github"></i></a>{% endif %}{% if body %} {{ body }}{% endif %}

0 commit comments

Comments
 (0)