Skip to content

Commit b2af684

Browse files
authored
Merge pull request #3 from afeinberg/app-state
Clippy, cleanup, update deps
2 parents bfe466c + e6e9707 commit b2af684

File tree

9 files changed

+87
-204
lines changed

9 files changed

+87
-204
lines changed

Cargo.lock

Lines changed: 31 additions & 157 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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
name = "projectm_sdl"
33
version = "0.1.0"
44
edition = "2021"
5+
rust-version = "1.68.2"
56

67
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
78

89
[dependencies]
910
libc = "*"
10-
sdl2 = "0.35.2"
11-
# projectm-rs = "^1.0.4"
12-
projectm-rs = { path = "../projectm-rs" }
13-
clippy = "0.0.302"
11+
sdl2 = "0.35"
12+
projectm-rs = "1.0.5"
13+
#projectm-rs = { git = "https://github.com/projectM-visualizer/projectm-rs" }
14+
1415
# gl = "0.14.0"
1516

1617
[features]

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,19 @@ cargo run
8989
cargo build
9090
```
9191

92+
### If using SDL installed via Homebrew
93+
94+
```
95+
RUSTFLAGS="-L$(brew --prefix sdl2)/lib" cargo build
96+
RUSTFLAGS="-L$(brew --prefix sdl2)/lib" cargo run
97+
```
98+
99+
### Optimized build
100+
101+
```
102+
cargo run --release
103+
```
104+
92105
<p align="right">(<a href="#readme-top">back to top</a>)</p>
93106

94107

scripts/clippy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cargo clippy --all-features --all-targets -- -D warnings

0 commit comments

Comments
 (0)