From a4f8ce6429aed9c45a3211da3c4b627293901e34 Mon Sep 17 00:00:00 2001 From: Lazy Panda Date: Sat, 2 Nov 2024 19:53:15 +0800 Subject: [PATCH] use wgpu for crates.io --- build.js | 8 +++++--- graphics/Cargo.toml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.js b/build.js index 6c71bbc1..8ce4b866 100644 --- a/build.js +++ b/build.js @@ -76,7 +76,9 @@ void (async () => { /* download ffmpeg librarys for windows */ if (process.platform == "win32" || process.platform == "linux") { - const name = `ffmpeg-n7.1-latest-${process.platform == "win32" ? "win64" : "linux64"}-gpl-shared-7.1`; + const name = `ffmpeg-n7.1-latest-${ + process.platform == "win32" ? "win64" : "linux64" + }-gpl-shared-7.1`; const baseUri = "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest"; if (!fs.existsSync("./target/ffmpeg")) { @@ -115,8 +117,8 @@ void (async () => { }); for (const item of [ - ["./README.md", "./build/README.md"], - ["./LICENSE.txt", "./build/LICENSE.txt"], + ["./README.md", "./README.md"], + ["./LICENSE", "./LICENSE"], /* examples */ ["./examples/cpp/src", "./build/examples/cpp/src"], diff --git a/graphics/Cargo.toml b/graphics/Cargo.toml index ce8aeaed..be1ea3f0 100644 --- a/graphics/Cargo.toml +++ b/graphics/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" pollster = "0.3.0" thiserror = "1.0.63" smallvec = "1.13.2" -wgpu = { git = "https://github.com/gfx-rs/wgpu", rev = "8e787eb70a98c260f44b129128037d9a28d2c9ae" } +wgpu = "23" bytemuck = { version = "1.17.1", features = ["derive"] } mirror-common = { path = "../common", version = "0.1" } mirror-resample = { path = "../resample", version = "0.1" }