Skip to content

Commit 4ab9dea

Browse files
committed
Rename binary crate
1 parent 91f3ffe commit 4ab9dea

File tree

7 files changed

+16
-21
lines changed

7 files changed

+16
-21
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace]
22
members = [
33
"crates/cargo-gpu-cache",
4-
"crates/cargo-gpu-cli",
4+
"crates/cargo-gpu",
55
"crates/xtask",
66
]
77

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Command line tool for building Rust shaders using rust-gpu.
99
To install the tool ensure you have `rustup`. Then run:
1010

1111
```
12-
cargo install --git https://github.com/rust-gpu/cargo-gpu cargo-gpu-cli
12+
cargo install --git https://github.com/rust-gpu/cargo-gpu cargo-gpu
1313
```
1414

1515
After that you can use `cargo gpu` to compile your shader crates with:

crates/cargo-gpu-cache/src/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ mod test {
179179
let cargo_gpu = metadata
180180
.packages
181181
.iter_mut()
182-
.find(|package| package.name.contains("cargo-gpu"))
182+
.find(|package| package.name.contains("cargo-gpu-cache")) // should be the name of this very crate
183183
.unwrap();
184184
cargo_gpu.metadata = serde_json::json!({
185185
"rust-gpu": {

crates/cargo-gpu-cli/Cargo.toml renamed to crates/cargo-gpu/Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
[package]
2-
name = "cargo-gpu-cli"
2+
name = "cargo-gpu"
33
description = "Command line tool for building Rust shaders using `rust-gpu`"
44
version.workspace = true
55
edition.workspace = true
66
repository.workspace = true
77
keywords.workspace = true
88
license.workspace = true
9-
109
default-run = "cargo-gpu"
1110

12-
[[bin]]
13-
name = "cargo-gpu"
14-
path = "src/main.rs"
15-
1611
[dependencies]
1712
cargo-gpu-cache = { path = "../cargo-gpu-cache", features = ["watch", "clap"] }
1813
clap.workspace = true
File renamed without changes.

crates/xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn main() {
149149
rust_gpu_version: maybe_rust_gpu_version,
150150
} => {
151151
log::info!("installing cargo gpu");
152-
cmd(["cargo", "install", "--path", "crates/cargo-gpu-cli"]).unwrap();
152+
cmd(["cargo", "install", "--path", "crates/cargo-gpu"]).unwrap();
153153

154154
log::info!("setup project");
155155
let dir = tempdir::TempDir::new("test-shader-output").unwrap();

0 commit comments

Comments
 (0)