Skip to content

Commit fab0e7d

Browse files
committed
Make it better
1 parent 1415149 commit fab0e7d

File tree

5 files changed

+37
-19
lines changed

5 files changed

+37
-19
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup FFmpeg
2424
uses: AnimMouse/setup-ffmpeg@v1
2525
with:
26-
version: master
26+
version: 7.1
2727
- name: Checkout code
2828
uses: actions/checkout@v4
2929
- uses: dtolnay/rust-toolchain@master

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "extract-frames"
3-
version = "0.2.3"
3+
version = "0.2.4"
44
edition = "2024"
55
description = "CLI tool for extracting frames from videos"
66
authors = [
@@ -17,7 +17,7 @@ anyhow = "1.0.99"
1717
clap = { version = "4.5.46", features = ["derive"] }
1818
glob = "0.3.3"
1919
ffmpeg-next = { version = "7.1.0", features = ["static", "build"] }
20-
ffmpeg-sys-next = { version = "8.0.0", features = ["static", "build"] }
20+
ffmpeg-sys-next = { version = "7.1.0", features = ["static", "build"] }
2121
image = { version = "0.25", features = ["jpeg"] }
2222
log = "0.4.27"
2323
ndarray = "0.16.1"

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,13 @@ cargo run -- --file input.mp4 --multicore
7474
To contribute to this project, you'll need:
7575

7676
1. Rust toolchain (nightly version recommended)
77-
2. `cargo install action-validator dircat just`
78-
3. `carcargo install --git https://github.com/RustedBytes/invoke-llm`
79-
4. `cargo install --git https://github.com/ytmimi/markdown-fmt markdown-fmt
80-
--features="build-binary"`
81-
5. [lefthook](https://github.com/evilmartians/lefthook) (for pre-commit hooks)
82-
6. [yamlfmt](https://github.com/google/yamlfmt) (for YAML formatting)
77+
2. `just init-macos` or `just init-linux`
8378

8479
## Building and Testing
8580

8681
1. Clone the repository
87-
2. Run `cargo build` to compile the application
88-
3. Run `cargo test` to execute the test suite
82+
2. Run `just build` to compile the application
83+
3. Run `just test` to execute the test suite
8984
4. Run `cargo run -- --help` to see command-line options
9085

9186
## Known Limitations

justfile

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,44 @@
11
set dotenv-load := true
22

3-
init:
4-
cargo install action-validator dircat just
3+
dev-deps:
4+
cargo install cargo-audit action-validator dircat
5+
cargo install --git https://github.com/ytmimi/markdown-fmt markdown-fmt --features="build-binary"
6+
cargo install --git https://github.com/RustedBytes/invoke-llm
7+
8+
init-macos: dev-deps
59
brew install lefthook
610

11+
init-linux: dev-deps
12+
go install github.com/evilmartians/lefthook@latest
13+
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
14+
15+
check-dev:
16+
lefthook version
17+
action-validator --version
18+
dircat --version
19+
cargo audit --version
20+
yamlfmt --version
21+
markdown-fmt --version
22+
cargo --version
23+
rustc --version
24+
git --version
25+
yasm --version
26+
727
check: fmt
828
cargo +nightly clippy -- -W clippy::pedantic
929

10-
check_fmt:
30+
check-fmt:
1131
cargo +nightly fmt -- --check
1232

13-
yaml_fmt:
33+
yaml-fmt:
1434
yamlfmt lefthook.yml
1535
yamlfmt -dstar .github/**/*.{yaml,yml}
1636

17-
md_fmt:
37+
md-fmt:
1838
markdown-fmt -m 80 CONTRIBUTING.md
1939
markdown-fmt -m 80 README.md
2040

21-
fmt: yaml_fmt md_fmt
41+
fmt: yaml-fmt md-fmt
2242
cargo +nightly fmt
2343

2444
test:
@@ -30,8 +50,11 @@ audit:
3050
doc:
3151
cargo doc --open
3252

53+
build: check
54+
cargo +stable build
55+
3356
release: check
3457
cargo +stable build --release
3558

36-
download_test_video:
59+
download-test-video:
3760
wget -O "video.mp4" "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4"

0 commit comments

Comments
 (0)