MCPcopy Create free account
hub / github.com/Nariod/RustPacker / apply_replacements

Function apply_replacements

src/puzzle.rs:228–239  ·  view source on GitHub ↗
(
    replacements: &HashMap<&str, String>,
    main_path: &Path,
    cargo_path: &Path,
)

Source from the content-addressed store, hash-verified

226}
227
228fn apply_replacements(
229 replacements: &HashMap<&str, String>,
230 main_path: &Path,
231 cargo_path: &Path,
232) {
233 for (key, value) in replacements {
234 search_and_replace(main_path, key, value)
235 .unwrap_or_else(|e| eprintln!("Warning: template replace failed for {}: {}", key, e));
236 search_and_replace(cargo_path, key, value)
237 .unwrap_or_else(|e| eprintln!("Warning: cargo replace failed for {}: {}", key, e));
238 }
239}
240
241fn apply_proxy(order: &Order, folder: &Path) {
242 let proxy_path = order.proxy_dll.as_ref().unwrap();

Callers 1

assembleFunction · 0.85

Calls 1

search_and_replaceFunction · 0.85

Tested by

no test coverage detected