updated cache buster

This commit is contained in:
realaravinth 2021-07-07 18:10:01 +05:30
parent 40801575b2
commit 5fa668ad97
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
4 changed files with 21 additions and 7 deletions

View file

@ -35,6 +35,17 @@ jobs:
toolchain: stable
components: clippy
override: true
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build frontend
run: make frontend
- name: Check with Clippy
uses: actions-rs/clippy-check@v1
with:

View file

@ -72,6 +72,9 @@ jobs:
profile: minimal
override: true
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Build frontend
run: make frontend

10
Cargo.lock generated
View file

@ -579,7 +579,7 @@ dependencies = [
[[package]]
name = "cache-buster"
version = "0.2.0"
source = "git+https://github.com/realaravinth/cache-buster#e75ac689d2155092b90d1421ec05ec84c6917350"
source = "git+https://github.com/realaravinth/cache-buster#3cf8828ab80b72037d23f5ce12b5879e44534da3"
dependencies = [
"data-encoding",
"derive_builder",
@ -3009,9 +3009,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]]
name = "tokio"
version = "1.8.0"
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "570c2eb13b3ab38208130eccd41be92520388791207fde783bda7c1e8ace28d4"
checksum = "98c8b05dc14c75ea83d63dd391100353789f5f24b8b3866542a5e85c8be8e985"
dependencies = [
"autocfg",
"bytes",
@ -3049,9 +3049,9 @@ dependencies = [
[[package]]
name = "tokio-stream"
version = "0.1.6"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f8864d706fdb3cc0843a49647ac892720dac98a6eeb818b77190592cf4994066"
checksum = "7b2f3f698253f03119ac0102beaa64f67a67e08074d03a22d18784104543727f"
dependencies = [
"futures-core",
"pin-project-lite",

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use cache_buster::BusterBuilder;
use cache_buster::{BusterBuilder, NoHashCategory};
use std::process::Command;
fn main() {
@ -48,7 +48,7 @@ fn cache_bust() {
// mime::TEXT_CSS,
// ];
let no_hash = vec!["bundle/f3c927fe82899094538e.module.wasm"];
let no_hash = vec![NoHashCategory::FileExtentions(vec!["wasm"])];
let config = BusterBuilder::default()
.source("./static/cache")