Skip to content

Commit 63dbc35

Browse files
committed
feat: Allow unknown extensions in static assets
1 parent afa0d6b commit 63dbc35

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
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
@@ -50,9 +50,9 @@ serde_json = { version = "1" }
5050
# Error declaration/context
5151
snafu = "0.8.8"
5252
# Serve static assets directly from the binary
53-
# Wait for https://github.com/M4SS-Code/static-serve/pull/8
53+
# Using dev branch because of: https://github.com/M4SS-Code/static-serve/pull/8
5454
# static-serve = "0.3.0"
55-
static-serve = { git = "https://github.com/angrynode/static-serve", branch = "infallible-mimetype", features = [ "infallible" ] }
55+
static-serve = { git = "https://github.com/M4SS-Code/static-serve" }
5656
# Extra tokio features:
5757
# fs: Filesystem IO integration
5858
# rt: Single-threaded runtime

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use state::error::AppStateError;
1515

1616
pub fn router(state: state::AppState) -> Router {
1717
// Embed the assets in the binary, generating the static_router function
18-
embed_assets!("assets");
18+
embed_assets!("assets", allow_unknown_extensions = true);
1919

2020
Router::new()
2121
// Register dynamic routes

0 commit comments

Comments
 (0)