Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisMacNaughton/cargo-cacher
/ functions
Functions
28 in github.com/ChrisMacNaughton/cargo-cacher
⨍
Functions
28
◇
Types & classes
6
↓ 3 callers
Function
try_fetch
(config: &Config, crate_name: &str, crate_version: &str)
src/crates.rs:56
↓ 2 callers
Function
fetch
( path: &PathBuf, upstream: &str, index_path: &str, crate_name: &str, crate_version: &str,
src/crates.rs:23
↓ 2 callers
Function
fetch_all
(config: &Config)
src/crates.rs:104
↓ 2 callers
Function
git_sync
(git_path: &PathBuf, index_path: &str, extern_url: &str)
src/index_sync.rs:22
↓ 2 callers
Function
size
(path: &PathBuf)
src/crates.rs:49
↓ 2 callers
Method
stats
(&self)
src/stats.rs:81
↓ 1 callers
Method
add_request
(&self, crate_name: T,
src/stats.rs:170
↓ 1 callers
Method
as_json
(&self)
src/stats.rs:22
↓ 1 callers
Method
bandwidth_saved
(&self, time: T)
src/stats.rs:126
↓ 1 callers
Method
crate_id
(&self, name: T)
src/stats.rs:143
↓ 1 callers
Method
downloads
(&self, time: T)
src/stats.rs:94
↓ 1 callers
Function
fetch_lock
(config: &Config)
src/crates.rs:153
↓ 1 callers
Method
hits
(&self, time: T)
src/stats.rs:110
↓ 1 callers
Function
init_sync
(git_path: PathBuf, config: &Config)
src/index_sync.rs:10
↓ 1 callers
Function
pre_fetch
(config: &Config)
src/crates.rs:77
↓ 1 callers
Function
server
(config: &Config, stats: SyncSender<CargoRequest>)
src/main.rs:258
↓ 1 callers
Function
setup_filesystem
(config: &Config)
src/main.rs:243
↓ 1 callers
Function
stat_collector
()
src/stats.rs:200
↓ 1 callers
Method
version_id
(&self, crate_id: i32, version: T)
src/stats.rs:154
Method
after
(&self, _req: &mut Request, mut res: Response)
src/main.rs:251
Function
fetch_download
( req: &mut Request, config: &Config, stats: &Mutex<SyncSender<CargoRequest>>, )
src/main.rs:315
Function
git
(req: &mut Request, config: &Config)
src/git.rs:18
Method
init
()
src/main.rs:65
Function
log
(req: &mut Request)
src/main.rs:310
Function
main
()
src/main.rs:228
Method
new
(connection_string: Option<T>)
src/stats.rs:33
Function
stats_json
()
src/main.rs:393
Function
stats_view
()
src/main.rs:380