Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔨 Fix cargo watch tooling #387

Merged
merged 3 commits into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"lint": "cargo clippy --package stump_server -- -D warnings",
"format": "cargo fmt --package stump_server",
"start": "cargo run --release --package stump_server",
"dev": "cargo-watch -x run",
"dev": "cargo watch --ignore core/prisma -x run",
"build": "cargo build --release --package stump_server",
"delete-webapp": "trash \"dist/*\" \"!dist/.placeholder\"",
"get-webapp": "cp -r ../web/dist ./dist"
Expand Down
6 changes: 3 additions & 3 deletions core/src/filesystem/media/epub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ impl EpubProcessor {
///
/// 1. Attempt to find a resource with the default ID of "cover"
/// 2. Attempt to find a resource with a mime type of "image/jpeg" or "image/png", and weight the
/// results based on how likely they are to be the cover. For example, if the cover is named
/// "cover.jpg", it's probably the cover. The entry with the heighest weight, if any, will be
/// returned.
/// results based on how likely they are to be the cover. For example, if the cover is named
/// "cover.jpg", it's probably the cover. The entry with the heighest weight, if any, will be
/// returned.
pub fn get_cover(path: &str) -> Result<(ContentType, Vec<u8>), FileError> {
let mut epub_file = EpubDoc::new(path).map_err(|e| {
tracing::error!("Failed to open epub file: {}", e);
Expand Down
4 changes: 2 additions & 2 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ impl StumpCore {
/// A three-step configuration initialization function.
///
/// 1. Loads configuration variables from Stump.toml, located at the input
/// config_dir, if such a file exists.
/// config_dir, if such a file exists.
///
/// 2. Overrides variables with those set in the environment.
///
/// 3. Creates the configuration directory (if it does not exist) and writes
/// to Stump.toml.
/// to Stump.toml.
///
/// Returns the configuration variables in a `StumpConfig` struct.
pub fn init_config(config_dir: String) -> CoreResult<StumpConfig> {
Expand Down
Loading