You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/rivet/lib/bolt/core/src/utils
    
    the code of the file until where you have to start completion: use std::{fs, path::Path, process::Command, sync::Arc};

use anyhow::*;
use duct::cmd;
use futures_util::future::{BoxFuture, FutureExt};
use indicatif::{ProgressBar, ProgressStyle};
use rivet_term::console::style;
use tokio::{net::TcpStream, sync::Mutex};

use crate::context::ProjectContext;

pub mod command_helper;
pub mod db_conn;
pub mod media_resize;
pub mod telemetry;

pub fn progress_bar(len: usize) -> ProgressBar {
	let pb = ProgressBar::new(len as u64);
	pb.set_style(
		ProgressStyle::default_bar()
			.progress_chars("=> ")
			.template("{spinner} {elapsed_precise:.bold} [{bar:23}] {pos}/{len} {wide_msg}"),
	);
	pb.enable_steady_tick(250);
	pb
}

    
fn deep_modified_ts_inner(path: &Path, max_modified_ts: &mut u128) -> Result<()> {
	for entry in fs::read_dir(path)? {
		let entry = entry?;
		let file_name = entry.file_name();
		let file_name = file_name.to_str().unwrap();
		let file_type = entry.file_type()?;

		// Skip non-source files
		if file_name.starts_with(".")
			|| file_name == "node_modules"
			|| file_name == "target"
			|| file_name == "dist"
		{
			continue;
		}

		// Recurse
		if file_type.is_dir() {
			deep_modified_ts_inner(&path.join(entry.path()), max_modified_ts)?;
		}

		// Check if file is newer
		if file_type.is_file() {
			let meta = entry.metadata()?;
			let modified_ts = meta
				.modified()?
				.duration_since(std::time::UNIX_EPOCH)?
				.as_millis();
			if modified_ts > *max_modified_ts {
				*max_modified_ts = modified_ts;
			}
		}
	}

	Ok(())
}