Skip to content

Commit ba41b68

Browse files
authored
Support puma rm <model> (#17)
* support new cache structure Signed-off-by: kerthcet <kerthcet@gmail.com> * support puma rm Signed-off-by: kerthcet <kerthcet@gmail.com> * use readable format Signed-off-by: kerthcet <kerthcet@gmail.com> * remove requests.rs Signed-off-by: kerthcet <kerthcet@gmail.com> * fix lint Signed-off-by: kerthcet <kerthcet@gmail.com> --------- Signed-off-by: kerthcet <kerthcet@gmail.com>
1 parent c6efcdb commit ba41b68

17 files changed

Lines changed: 794 additions & 255 deletions

File tree

.github/workflows/rust-ci.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Rust CI
2+
3+
on:
4+
push:
5+
branches: [ main, feat/* ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
lint:
14+
name: Lint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install Rust toolchain
20+
uses: actions-rust-lang/setup-rust-toolchain@v1
21+
with:
22+
toolchain: stable
23+
components: rustfmt, clippy
24+
25+
- name: Run lint
26+
run: make lint
27+
28+
test:
29+
name: Test
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
34+
- name: Install Rust toolchain
35+
uses: actions-rust-lang/setup-rust-toolchain@v1
36+
with:
37+
toolchain: stable
38+
39+
- name: Run tests
40+
run: make test

Cargo.lock

Lines changed: 114 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ indicatif = "0.17.11"
1919
dirs = "6.0.0"
2020
hf-hub = { version = "0.5.0", features = ["tokio"] }
2121
colored = "2.1"
22+
chrono = "0.4"
23+
serde_json = "1.0"
24+
25+
[dev-dependencies]
26+
tempfile = "3.12"

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ build:
33

44
test:
55
cargo test
6+
7+
lint:
8+
cargo fmt --all -- --check
9+
cargo clippy --all-targets --all-features -- -D warnings

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Quick Start
1010

11-
### Installation
11+
### Install from source
1212

1313
```bash
1414
make build
@@ -34,7 +34,7 @@ make build
3434
### Build
3535

3636
```bash
37-
make compile
37+
make build
3838
```
3939

4040
### Test

0 commit comments

Comments
 (0)