[{"data":1,"prerenderedAt":946},["ShallowReactive",2],{"blog-article-\u002Fblog\u002Fcargo-cache-vs-target-folder":3},{"id":4,"title":5,"author":6,"body":7,"category":929,"cover":930,"coverAlt":931,"description":932,"draft":933,"extension":934,"meta":935,"navigation":314,"path":936,"publishedAt":937,"seo":938,"stem":939,"tags":940,"translationKey":944,"updatedAt":937,"__hash__":945},"articles_en\u002Fblog\u002Fcargo-cache-vs-target-folder.md","Cargo Cache vs target Folder: What Can You Delete?","Harry",{"type":8,"value":9,"toc":913},"minimark",[10,19,35,41,46,49,66,75,226,237,241,247,250,256,260,263,384,391,412,415,451,454,458,465,483,486,498,501,562,575,578,582,585,599,605,608,673,676,718,725,739,743,746,789,795,799,813,824,828,833,836,840,846,850,855,859,862,866,902,909],[11,12,13,14,18],"p",{},"If you need disk space, clean old project ",[15,16,17],"code",{},"target"," folders first. They contain build artifacts for individual Rust workspaces and can be recreated by compiling again. Clear Cargo's shared dependency cache only when it is genuinely large, corrupted, or no longer needed for offline work—doing so makes Cargo download or extract dependencies again.",[11,20,21,22,26,27,30,31,34],{},"Do ",[23,24,25],"strong",{},"not"," delete the entire ",[15,28,29],{},".cargo"," directory. It can also contain configuration, registry credentials, and binaries installed with ",[15,32,33],{},"cargo install",", none of which are disposable cache files.",[36,37,38],"blockquote",{},[11,39,40],{},"Paths and commands were checked on macOS 15.7.7 with Cargo 1.84.0 and rustc 1.84.0 on August 12, 2026. Cargo supports custom home and target directories, so inspect your actual paths before removing anything.",[42,43,45],"h2",{"id":44},"the-short-answer-target-first-cargo-cache-second","The short answer: target first, Cargo cache second",[11,47,48],{},"Cargo stores two different kinds of reproducible data:",[50,51,52,59],"ul",{},[53,54,55,56,58],"li",{},"a workspace ",[15,57,17],{}," directory holds compiled output for that project;",[53,60,61,62,65],{},"Cargo Home, usually ",[15,63,64],{},"~\u002F.cargo",", holds shared downloads, extracted package sources, Git dependencies, configuration, credentials, and installed command-line tools.",[11,67,68,69,71,72,74],{},"That distinction determines the cleanup cost. Removing ",[15,70,17],{}," trades disk space for compilation time. Removing dependency caches may require both network access and compilation time. For most developers, an abandoned project's ",[15,73,17],{}," folder is therefore the best first candidate.",[76,77,78,97],"table",{},[79,80,81],"thead",{},[82,83,84,88,91,94],"tr",{},[85,86,87],"th",{},"Path",[85,89,90],{},"What it contains",[85,92,93],{},"Can you remove it?",[85,95,96],{},"What happens next",[98,99,100,117,133,148,167,185,204],"tbody",{},[82,101,102,108,111,114],{},[103,104,105],"td",{},[15,106,107],{},"project\u002Ftarget",[103,109,110],{},"Debug and release builds, incremental data, docs and target-specific output",[103,112,113],{},"Yes, after stopping builds",[103,115,116],{},"The project recompiles",[82,118,119,124,127,130],{},[103,120,121],{},[15,122,123],{},"~\u002F.cargo\u002Fregistry\u002Fcache",[103,125,126],{},"Downloaded compressed crate archives",[103,128,129],{},"Usually, if you are online",[103,131,132],{},"Cargo downloads missing crates again",[82,134,135,140,143,145],{},[103,136,137],{},[15,138,139],{},"~\u002F.cargo\u002Fregistry\u002Fsrc",[103,141,142],{},"Extracted registry package sources",[103,144,129],{},[103,146,147],{},"Cargo extracts or downloads them again",[82,149,150,159,162,164],{},[103,151,152,155,156],{},[15,153,154],{},"~\u002F.cargo\u002Fgit\u002Fdb"," and ",[15,157,158],{},"git\u002Fcheckouts",[103,160,161],{},"Git dependency repositories and working checkouts",[103,163,129],{},[103,165,166],{},"Cargo fetches and checks them out again",[82,168,169,174,179,182],{},[103,170,171],{},[15,172,173],{},"~\u002F.cargo\u002Fbin",[103,175,176,177],{},"Tools installed with ",[15,178,33],{},[103,180,181],{},"No—not as cache",[103,183,184],{},"Installed commands disappear",[82,186,187,195,198,201],{},[103,188,189,155,192],{},[15,190,191],{},"config.toml",[15,193,194],{},"credentials.toml",[103,196,197],{},"Cargo settings and registry credentials",[103,199,200],{},"No",[103,202,203],{},"Builds, registries, proxies or authentication may break",[82,205,206,218,221,223],{},[103,207,208,211,212,211,215],{},[15,209,210],{},"Cargo.toml",", ",[15,213,214],{},"Cargo.lock",[15,216,217],{},"src",[103,219,220],{},"Project definition, dependency lock and source code",[103,222,200],{},[103,224,225],{},"You damage the project itself",[11,227,228,229,232,233,236],{},"On Windows, the default Cargo Home is normally ",[15,230,231],{},"%USERPROFILE%\\.cargo",". If ",[15,234,235],{},"CARGO_HOME"," is set, use that location instead of the default on any operating system.",[42,238,240],{"id":239},"why-can-the-target-folder-become-so-large","Why can the target folder become so large?",[11,242,243,244,246],{},"Cargo writes build output into the workspace ",[15,245,17],{}," directory by default. Debug and release profiles use separate subdirectories, and additional target triples create more copies. Incremental compilation also keeps intermediate data so future builds can finish faster.",[11,248,249],{},"A workspace that builds desktop binaries, WebAssembly, multiple architectures, or many feature combinations can therefore accumulate much more than its source code size suggests. Cargo's official build-cache documentation treats this output as reproducible build data, but deleting it still has a real cost: the next build starts cold.",[11,251,252,253,255],{},"On the MangoDisk repository used for this article, ",[15,254,17],{}," occupied 27 GB. The same Mac had 189 MB in Cargo's compressed registry cache, 1.9 GB of extracted registry sources, and 17 MB in the Cargo Git database. Those are local measurements, not a promise of typical savings. They illustrate why measuring first is better than assuming the global cache is the main problem.",[42,257,259],{"id":258},"inspect-the-real-paths-before-cleaning","Inspect the real paths before cleaning",[11,261,262],{},"From a Rust workspace on macOS or Linux, check the common locations without deleting anything:",[264,265,270],"pre",{"className":266,"code":267,"language":268,"meta":269,"style":269},"language-bash shiki shiki-themes github-light github-dark","cargo_home=\"${CARGO_HOME:-$HOME\u002F.cargo}\"\n\ndu -sh target 2>\u002Fdev\u002Fnull\ndu -sh \"$cargo_home\u002Fregistry\u002Fcache\" \"$cargo_home\u002Fregistry\u002Fsrc\" \\\n  \"$cargo_home\u002Fgit\u002Fdb\" \"$cargo_home\u002Fgit\u002Fcheckouts\" 2>\u002Fdev\u002Fnull\n","bash","",[15,271,272,309,316,336,362],{"__ignoreMap":269},[273,274,277,281,285,289,291,294,297,300,303,306],"span",{"class":275,"line":276},"line",1,[273,278,280],{"class":279},"sVt8B","cargo_home",[273,282,284],{"class":283},"szBVR","=",[273,286,288],{"class":287},"sZZnC","\"${",[273,290,235],{"class":279},[273,292,293],{"class":283},":-",[273,295,296],{"class":279},"$HOME",[273,298,299],{"class":283},"\u002F",[273,301,302],{"class":287},".",[273,304,305],{"class":279},"cargo",[273,307,308],{"class":287},"}\"\n",[273,310,312],{"class":275,"line":311},2,[273,313,315],{"emptyLinePlaceholder":314},true,"\n",[273,317,319,323,327,330,333],{"class":275,"line":318},3,[273,320,322],{"class":321},"sScJk","du",[273,324,326],{"class":325},"sj4cs"," -sh",[273,328,329],{"class":287}," target",[273,331,332],{"class":283}," 2>",[273,334,335],{"class":287},"\u002Fdev\u002Fnull\n",[273,337,339,341,343,346,349,352,354,356,359],{"class":275,"line":338},4,[273,340,322],{"class":321},[273,342,326],{"class":325},[273,344,345],{"class":287}," \"",[273,347,348],{"class":279},"$cargo_home",[273,350,351],{"class":287},"\u002Fregistry\u002Fcache\"",[273,353,345],{"class":287},[273,355,348],{"class":279},[273,357,358],{"class":287},"\u002Fregistry\u002Fsrc\"",[273,360,361],{"class":325}," \\\n",[273,363,365,368,370,373,375,377,380,382],{"class":275,"line":364},5,[273,366,367],{"class":287},"  \"",[273,369,348],{"class":279},[273,371,372],{"class":287},"\u002Fgit\u002Fdb\"",[273,374,345],{"class":287},[273,376,348],{"class":279},[273,378,379],{"class":287},"\u002Fgit\u002Fcheckouts\"",[273,381,332],{"class":283},[273,383,335],{"class":287},[11,385,386,387,390],{},"Cargo can be configured to use a different target directory. This command prints workspace metadata, including the actual ",[15,388,389],{},"target_directory"," value:",[264,392,394],{"className":266,"code":393,"language":268,"meta":269,"style":269},"cargo metadata --no-deps --format-version 1\n",[15,395,396],{"__ignoreMap":269},[273,397,398,400,403,406,409],{"class":275,"line":276},[273,399,305],{"class":321},[273,401,402],{"class":287}," metadata",[273,404,405],{"class":325}," --no-deps",[273,407,408],{"class":325}," --format-version",[273,410,411],{"class":325}," 1\n",[11,413,414],{},"In PowerShell, inspect the project and default Cargo Home separately:",[264,416,420],{"className":417,"code":418,"language":419,"meta":269,"style":269},"language-powershell shiki shiki-themes github-light github-dark","$CargoHome = if ($env:CARGO_HOME) { $env:CARGO_HOME } else { Join-Path $HOME \".cargo\" }\n\nGet-ChildItem .\\target -Recurse -File -Force -ErrorAction SilentlyContinue |\n  Measure-Object Length -Sum\nGet-ChildItem \"$CargoHome\\registry\\cache\" -Recurse -File -Force -ErrorAction SilentlyContinue |\n  Measure-Object Length -Sum\n","powershell",[15,421,422,427,431,436,441,446],{"__ignoreMap":269},[273,423,424],{"class":275,"line":276},[273,425,426],{},"$CargoHome = if ($env:CARGO_HOME) { $env:CARGO_HOME } else { Join-Path $HOME \".cargo\" }\n",[273,428,429],{"class":275,"line":311},[273,430,315],{"emptyLinePlaceholder":314},[273,432,433],{"class":275,"line":318},[273,434,435],{},"Get-ChildItem .\\target -Recurse -File -Force -ErrorAction SilentlyContinue |\n",[273,437,438],{"class":275,"line":338},[273,439,440],{},"  Measure-Object Length -Sum\n",[273,442,443],{"class":275,"line":364},[273,444,445],{},"Get-ChildItem \"$CargoHome\\registry\\cache\" -Recurse -File -Force -ErrorAction SilentlyContinue |\n",[273,447,449],{"class":275,"line":448},6,[273,450,440],{},[11,452,453],{},"The PowerShell result is reported in bytes. More importantly, both checks force you to confirm the exact directory before cleanup.",[42,455,457],{"id":456},"how-to-clean-a-project-target-folder-safely","How to clean a project target folder safely",[11,459,460,461,464],{},"First stop ",[15,462,463],{},"cargo build",", tests, rust-analyzer work that is actively compiling, and any application running from the workspace. Then preview what Cargo would remove:",[264,466,468],{"className":266,"code":467,"language":268,"meta":269,"style":269},"cargo clean --dry-run -v\n",[15,469,470],{"__ignoreMap":269},[273,471,472,474,477,480],{"class":275,"line":276},[273,473,305],{"class":321},[273,475,476],{"class":287}," clean",[273,478,479],{"class":325}," --dry-run",[273,481,482],{"class":325}," -v\n",[11,484,485],{},"If the scope is correct, remove the complete target directory for the current workspace:",[264,487,489],{"className":266,"code":488,"language":268,"meta":269,"style":269},"cargo clean\n",[15,490,491],{"__ignoreMap":269},[273,492,493,495],{"class":275,"line":276},[273,494,305],{"class":321},[273,496,497],{"class":287}," clean\n",[11,499,500],{},"Cargo also supports narrower cleanup when you want to keep useful build data:",[264,502,504],{"className":266,"code":503,"language":268,"meta":269,"style":269},"# Remove only release-profile artifacts\ncargo clean --release\n\n# Remove generated documentation\ncargo clean --doc\n\n# Remove artifacts for one package in a workspace\ncargo clean -p your-package-name\n",[15,505,506,512,521,525,530,539,543,549],{"__ignoreMap":269},[273,507,508],{"class":275,"line":276},[273,509,511],{"class":510},"sJ8bj","# Remove only release-profile artifacts\n",[273,513,514,516,518],{"class":275,"line":311},[273,515,305],{"class":321},[273,517,476],{"class":287},[273,519,520],{"class":325}," --release\n",[273,522,523],{"class":275,"line":318},[273,524,315],{"emptyLinePlaceholder":314},[273,526,527],{"class":275,"line":338},[273,528,529],{"class":510},"# Remove generated documentation\n",[273,531,532,534,536],{"class":275,"line":364},[273,533,305],{"class":321},[273,535,476],{"class":287},[273,537,538],{"class":325}," --doc\n",[273,540,541],{"class":275,"line":448},[273,542,315],{"emptyLinePlaceholder":314},[273,544,546],{"class":275,"line":545},7,[273,547,548],{"class":510},"# Remove artifacts for one package in a workspace\n",[273,550,552,554,556,559],{"class":275,"line":551},8,[273,553,305],{"class":321},[273,555,476],{"class":287},[273,557,558],{"class":325}," -p",[273,560,561],{"class":287}," your-package-name\n",[11,563,564,567,568,571,572,302],{},[15,565,566],{},"cargo clean"," follows Cargo's configured target directory. That is safer than manually assuming ",[15,569,570],{},".\u002Ftarget",", especially in a workspace with a custom ",[15,573,574],{},"target-dir",[11,576,577],{},"After cleanup, the folder returning is normal. The next build recreates it, and the first compile can take substantially longer because incremental artifacts are gone.",[42,579,581],{"id":580},"when-should-you-clear-cargos-shared-cache","When should you clear Cargo's shared cache?",[11,583,584],{},"Shared cache cleanup is reasonable in a few situations:",[50,586,587,590,593,596],{},[53,588,589],{},"the measured cache is large enough to matter;",[53,591,592],{},"a downloaded archive or Git dependency is corrupted;",[53,594,595],{},"old toolchains and projects left dependencies you no longer expect to use;",[53,597,598],{},"you need space now and have reliable network access later.",[11,600,601,602,604],{},"Avoid it before a flight, while working offline, or when an internal registry may be unavailable. Also check whether your organization uses a custom registry, vendored dependencies, or a non-default ",[15,603,235],{}," before changing anything.",[11,606,607],{},"The official Cargo Home documentation describes registry and Git contents as caches that Cargo can restore by extracting, checking out, or downloading them again. If you decide to remove them manually, quit Cargo-related processes, set the exact Cargo Home first, and inspect it one final time:",[264,609,611],{"className":266,"code":610,"language":268,"meta":269,"style":269},"cargo_home=\"${CARGO_HOME:-$HOME\u002F.cargo}\"\ndu -sh \"$cargo_home\u002Fregistry\u002Fcache\" \"$cargo_home\u002Fregistry\u002Fsrc\" \\\n  \"$cargo_home\u002Fgit\u002Fdb\" \"$cargo_home\u002Fgit\u002Fcheckouts\" 2>\u002Fdev\u002Fnull\n",[15,612,613,635,655],{"__ignoreMap":269},[273,614,615,617,619,621,623,625,627,629,631,633],{"class":275,"line":276},[273,616,280],{"class":279},[273,618,284],{"class":283},[273,620,288],{"class":287},[273,622,235],{"class":279},[273,624,293],{"class":283},[273,626,296],{"class":279},[273,628,299],{"class":283},[273,630,302],{"class":287},[273,632,305],{"class":279},[273,634,308],{"class":287},[273,636,637,639,641,643,645,647,649,651,653],{"class":275,"line":311},[273,638,322],{"class":321},[273,640,326],{"class":325},[273,642,345],{"class":287},[273,644,348],{"class":279},[273,646,351],{"class":287},[273,648,345],{"class":287},[273,650,348],{"class":279},[273,652,358],{"class":287},[273,654,361],{"class":325},[273,656,657,659,661,663,665,667,669,671],{"class":275,"line":318},[273,658,367],{"class":287},[273,660,348],{"class":279},[273,662,372],{"class":287},[273,664,345],{"class":287},[273,666,348],{"class":279},[273,668,379],{"class":287},[273,670,332],{"class":283},[273,672,335],{"class":287},[11,674,675],{},"Then remove only the cache subdirectories you intentionally selected:",[264,677,679],{"className":266,"code":678,"language":268,"meta":269,"style":269},"rm -rf \"$cargo_home\u002Fregistry\u002Fcache\" \"$cargo_home\u002Fregistry\u002Fsrc\" \\\n  \"$cargo_home\u002Fgit\u002Fdb\" \"$cargo_home\u002Fgit\u002Fcheckouts\"\n",[15,680,681,703],{"__ignoreMap":269},[273,682,683,686,689,691,693,695,697,699,701],{"class":275,"line":276},[273,684,685],{"class":321},"rm",[273,687,688],{"class":325}," -rf",[273,690,345],{"class":287},[273,692,348],{"class":279},[273,694,351],{"class":287},[273,696,345],{"class":287},[273,698,348],{"class":279},[273,700,358],{"class":287},[273,702,361],{"class":325},[273,704,705,707,709,711,713,715],{"class":275,"line":311},[273,706,367],{"class":287},[273,708,348],{"class":279},[273,710,372],{"class":287},[273,712,345],{"class":287},[273,714,348],{"class":279},[273,716,717],{"class":287},"\u002Fgit\u002Fcheckouts\"\n",[11,719,720,721,724],{},"This command bypasses Trash. It should never be shortened to ",[15,722,723],{},"rm -rf ~\u002F.cargo",". Afterward, the next online build may download and extract dependencies again.",[11,726,727,728,731,732,734,735,738],{},"On Windows, use File Explorer to review and delete the equivalent cache subfolders under ",[15,729,730],{},"%CARGO_HOME%"," or ",[15,733,231],{},". Keeping the operation visual makes it less likely that ",[15,736,737],{},"bin",", configuration, or credentials are included by mistake.",[42,740,742],{"id":741},"what-should-you-never-delete-as-cargo-cache","What should you never delete as Cargo cache?",[11,744,745],{},"Do not treat these as cleanup targets:",[50,747,748,761,767,773,786],{},[53,749,750,753,754,731,757,760],{},[15,751,752],{},".cargo\u002Fbin",", because it contains installed commands such as ",[15,755,756],{},"cargo-audit",[15,758,759],{},"cargo-edit",";",[53,762,763,766],{},[15,764,765],{},".cargo\u002Fcredentials.toml",", because it can contain registry login tokens;",[53,768,769,772],{},[15,770,771],{},".cargo\u002Fconfig.toml",", because it can define registries, aliases, network settings and target behavior;",[53,774,775,776,211,778,211,780,731,783,785],{},"a project's ",[15,777,210],{},[15,779,214],{},[15,781,782],{},"build.rs",[15,784,217],{}," directory;",[53,787,788],{},"vendored dependencies or an organization-managed offline mirror unless its owner has a recovery plan.",[11,790,791,792,794],{},"If you are unsure whether a directory is a cache, stop at inspection. A directory being under ",[15,793,29],{}," does not automatically make it disposable.",[42,796,798],{"id":797},"review-rust-build-artifacts-with-mangodisk","Review Rust build artifacts with MangoDisk",[11,800,801,806,807,809,810,812],{},[802,803,805],"a",{"href":804},"\u002Fdocs\u002Ffeatures\u002Fdeep-clean","MangoDisk Deep Cleanup"," recognizes Rust project ",[15,808,17],{}," folders and platform-specific Cargo cache locations. The rules do not target the entire ",[15,811,29],{}," directory, and project build artifacts are not selected by default.",[11,814,815,816,818,819,823],{},"Scanning happens locally. You can review the path and measured size before deciding what to remove, which is useful when several workspaces have their own ",[15,817,17],{}," directories. See the ",[802,820,822],{"href":821},"\u002Fdocs\u002Fsafety","MangoDisk safety guide"," for the confirmation and cleanup-history workflow.",[42,825,827],{"id":826},"frequently-asked-questions","Frequently asked questions",[829,830,832],"h3",{"id":831},"is-it-safe-to-delete-a-rust-target-folder","Is it safe to delete a Rust target folder?",[11,834,835],{},"Yes, if it is the configured Cargo build-output directory and no build is running. It contains reproducible artifacts, not your project source. Expect a slower full rebuild afterward.",[829,837,839],{"id":838},"does-cargo-clean-clear-the-cargo-download-cache","Does cargo clean clear the Cargo download cache?",[11,841,842,843,845],{},"No. ",[15,844,566],{}," removes generated artifacts from the target directory. It does not wipe Cargo Home's registry or Git dependency cache.",[829,847,849],{"id":848},"can-i-delete-cargolock-to-save-space-or-fix-dependencies","Can I delete Cargo.lock to save space or fix dependencies?",[11,851,842,852,854],{},[15,853,214],{}," is small and records the resolved dependency versions. Deleting it is not disk cleanup and may change which dependency versions are selected.",[829,856,858],{"id":857},"why-did-cargos-cache-and-target-folder-come-back","Why did Cargo's cache and target folder come back?",[11,860,861],{},"That is expected. Cargo recreates build output and restores missing dependency data as projects build. Cleanup removes old reproducible data; it does not disable caching.",[42,863,865],{"id":864},"sources-and-related-reading","Sources and related reading",[50,867,868,876,883,890,896],{},[53,869,870],{},[802,871,875],{"href":872,"rel":873},"https:\u002F\u002Fdoc.rust-lang.org\u002Fstable\u002Fcargo\u002Freference\u002Fbuild-cache.html",[874],"nofollow","Cargo Book: Build Cache",[53,877,878],{},[802,879,882],{"href":880,"rel":881},"https:\u002F\u002Fdoc.rust-lang.org\u002Fcargo\u002Fcommands\u002Fcargo-clean.html",[874],"Cargo Book: cargo clean",[53,884,885],{},[802,886,889],{"href":887,"rel":888},"https:\u002F\u002Fdoc.rust-lang.org\u002Fcargo\u002Fguide\u002Fcargo-home.html",[874],"Cargo Book: Cargo Home",[53,891,892],{},[802,893,895],{"href":894},"\u002Fblog\u002Fhow-to-clear-xcode-derived-data-safely","How to Clear Xcode Derived Data Safely",[53,897,898],{},[802,899,901],{"href":900},"\u002Fblog\u002Fwhy-i-built-mangodisk","Why I Built MangoDisk",[11,903,904,905,908],{},"Prefer to compare Rust build artifacts and Cargo caches visually before deleting them? ",[802,906,907],{"href":299},"Download MangoDisk"," and review the scan locally.",[910,911,912],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}",{"title":269,"searchDepth":311,"depth":311,"links":914},[915,916,917,918,919,920,921,922,928],{"id":44,"depth":311,"text":45},{"id":239,"depth":311,"text":240},{"id":258,"depth":311,"text":259},{"id":456,"depth":311,"text":457},{"id":580,"depth":311,"text":581},{"id":741,"depth":311,"text":742},{"id":797,"depth":311,"text":798},{"id":826,"depth":311,"text":827,"children":923},[924,925,926,927],{"id":831,"depth":318,"text":832},{"id":838,"depth":318,"text":839},{"id":848,"depth":318,"text":849},{"id":857,"depth":318,"text":858},{"id":864,"depth":311,"text":865},"Developer Disk Cleanup","\u002Fimages\u002Fblog\u002Fcargo-cache-vs-target-folder.webp","Rust dependency packages separated from project build artifacts for safe disk cleanup","Learn the difference between Rust target build artifacts and Cargo dependency caches, what is safe to remove, and what you should never delete from .cargo",false,"md",{},"\u002Fblog\u002Fcargo-cache-vs-target-folder","2026-08-12T00:00:00+08:00",{"title":5,"description":932},"blog\u002Fcargo-cache-vs-target-folder",[941,942,566,943],"Cargo cache","Rust target folder","Developer disk cleanup","article-cargo-cache-vs-target-folder","VXvzknpGdT7X7pvFLdVcWvlks8MbtRitWHGT8ul_B80",1786706051528]