Skip to content

Commit 6332fa0

Browse files
xi xiaoxixiaofinland
authored andcommitted
chore: readme update
1 parent 185e932 commit 6332fa0

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ This means `afmt` will progressively introduce more configuration options, addre
5858

5959
## 📥 Installation
6060

61-
### Scripts
61+
### 1. Script Install
6262

6363
The script downloads `afmt` latest version to a user's folder and prompts whether adding it to the Path.
6464

@@ -77,7 +77,20 @@ curl -sL https://raw.githubusercontent.com/xixiaofinland/afmt/main/scripts/insta
7777
iwr -useb https://raw.githubusercontent.com/xixiaofinland/afmt/main/scripts/install-afmt.ps1 | iex
7878
```
7979

80-
### Manually Install
80+
<br>
81+
82+
### 2. Cargo Install
83+
84+
`afmt` is published in creates.io [here](https://crates.io/crates/sf-afmt).
85+
Run cmd below if you have the `Cargo` tool.
86+
87+
```bash
88+
cargo install sf-afmt
89+
```
90+
91+
<br>
92+
93+
### 3. Manual Download
8194

8295
Visit the [release page](https://github.com/xixiaofinland/afmt/releases/latest) and download the appropriate binary for your operating system (Linux, macOS, or Windows).
8396

0 commit comments

Comments
 (0)