From beb3ac49fb4be989e99f01c14468c486fddead49 Mon Sep 17 00:00:00 2001 From: Xiangzhuang Shen Date: Fri, 11 Jul 2025 16:27:33 +0800 Subject: [PATCH] doc: add libspot-rs install and usage --- docs/52_rust.md | 22 ++++++++++++++++++++++ mkdocs.yml | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 docs/52_rust.md diff --git a/docs/52_rust.md b/docs/52_rust.md new file mode 100644 index 0000000..d82fb44 --- /dev/null +++ b/docs/52_rust.md @@ -0,0 +1,22 @@ +--- +title: Rust +icon: material/language-rust +--- + +[libspot-rs](https://github.com/shenxiangzhuang/libspot-rs) is a Rust wrapper for libspot. + + +## Install + +You can install it by `cargo`: + +```shell +cargo add libspot +``` + +## Get started + + +```python +--8<-- "https://raw.githubusercontent.com/shenxiangzhuang/libspot-rs/refs/heads/master/examples/simple.rs" +``` diff --git a/mkdocs.yml b/mkdocs.yml index bc6a29f..9256043 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -53,7 +53,8 @@ markdown_extensions: - admonition - footnotes - pymdownx.details - - pymdownx.snippets + - pymdownx.snippets: + url_download: true - pymdownx.superfences: custom_fences: # - name: vegalite