Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/staticfiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,13 @@ fn name_and_ext(path: &Path) -> Option<(&str, &str)> {
None
}

#[cfg(any(
all(feature = "mime03", feature = "http-types"),
all(feature = "mime02", feature = "http-types"),
all(feature = "mime02", feature = "mime03"),
))]
compile_error!(r#"Only one of these features "http-types", "mime02" or "mime03" must be enabled at a time."#);

/// A short and url-safe checksum string from string data.
fn checksum_slug(data: &[u8]) -> String {
use base64::prelude::{Engine, BASE64_URL_SAFE_NO_PAD};
Expand Down