├── .github ├── dependabot.yml └── workflows │ ├── release.yml │ └── test.yml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── deny.toml ├── git-gone.1.adoc ├── src └── main.rs └── supply-chain ├── audits.toml ├── config.toml └── imports.lock /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | # Check for updates of crates and actions every month. We don't check for 4 | # Rust updates because it's a nuisance to get so many pull requests, and we 5 | # can just cargo update once in a while. 6 | - package-ecosystem: "github-actions" 7 | directory: "/" 8 | schedule: 9 | interval: monthly 10 | assignees: [swsnr] 11 | - package-ecosystem: "cargo" 12 | directory: "/" 13 | schedule: 14 | interval: monthly 15 | assignees: [swsnr] 16 | # Ignore minor and patch updates; downstream consumers 17 | # can do these; we only need to check for semver 18 | # incompatible updates. 19 | ignore: 20 | - dependency-name: "*" 21 | update-types: 22 | - "version-update:semver-patch" 23 | - "version-update:semver-minor" 24 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | push: 5 | tags: 6 | - v* 7 | 8 | jobs: 9 | build-manpage: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v4 13 | - uses: docker://asciidoctor/docker-asciidoctor 14 | with: 15 | args: asciidoctor -b manpage -a reproducible git-gone.1.adoc 16 | - uses: actions/upload-artifact@v4 17 | with: 18 | name: git-gone.1 19 | path: git-gone.1 20 | 21 | vendor-dependencies: 22 | permissions: 23 | id-token: write 24 | contents: read 25 | attestations: write 26 | runs-on: ubuntu-latest 27 | steps: 28 | - uses: actions/checkout@v4 29 | - uses: dtolnay/rust-toolchain@stable 30 | - run: cargo --version 31 | - run: tar --version 32 | - run: zstd --version 33 | - run: echo "${GITHUB_SHA}" 34 | # Generate a reproducible vendor bundle 35 | - run: env LC_ALL=C TZ=UTC0 echo "timestamp=$(git show --quiet --date='format-local:%Y-%m-%dT%H:%M:%SZ' --format="%cd" "${GITHUB_SHA}")" >> "$GITHUB_OUTPUT" 36 | id: timestamp 37 | - run: cargo vendor --locked 38 | - run: env LC_ALL=C tar --numeric-owner --owner 0 --group 0 --sort name --mode='go+u,go-w' --format=posix --pax-option=exthdr.name=%d/PaxHeaders/%f --pax-option=delete=atime,delete=ctime --mtime="${{ steps.timestamp.outputs.timestamp }}" -c -f vendor.tar.zst --zstd vendor 39 | - uses: actions/attest-build-provenance@v2 40 | with: 41 | subject-path: vendor.tar.zst 42 | - uses: actions/upload-artifact@v4 43 | with: 44 | name: vendor.tar.zst 45 | path: vendor.tar.zst 46 | 47 | git-archive: 48 | permissions: 49 | id-token: write 50 | contents: read 51 | attestations: write 52 | runs-on: ubuntu-latest 53 | steps: 54 | - uses: actions/checkout@v4 55 | - run: env LC_ALL=C TZ=UTC0 git archive --format tar --prefix 'git-gone-${{ github.ref_name }}/' --output 'git-gone-${{ github.ref_name }}.tar' "${{ github.sha }}" 56 | - run: zstd 'git-gone-${{ github.ref_name }}.tar' 57 | - uses: actions/attest-build-provenance@v2 58 | with: 59 | subject-path: 'git-gone-${{ github.ref_name }}.tar.zst' 60 | - uses: actions/upload-artifact@v4 61 | with: 62 | name: git-gone-${{ github.ref_name }}.tar.zst 63 | path: git-gone-${{ github.ref_name }}.tar.zst 64 | 65 | build-windows: 66 | needs: build-manpage 67 | permissions: 68 | id-token: write 69 | contents: read 70 | attestations: write 71 | runs-on: windows-latest 72 | steps: 73 | - uses: actions/checkout@v4 74 | - uses: dtolnay/rust-toolchain@stable 75 | - uses: actions/download-artifact@v4 76 | with: 77 | path: ./artifacts 78 | - run: mv artifacts/git-gone.1/git-gone.1 . 79 | - run: cargo build --locked --release 80 | - run: mv LICENSE LICENSE.txt 81 | - run: 7z a git-gone-windows-latest.zip ./target/release/git-gone.exe ./git-gone.1 ./git-gone.1.adoc ./LICENSE.txt 82 | - uses: actions/attest-build-provenance@v2 83 | with: 84 | subject-path: git-gone-windows-latest.zip 85 | - uses: actions/upload-artifact@v4 86 | with: 87 | name: git-gone-windows-latest.zip 88 | path: git-gone-windows-latest.zip 89 | 90 | create-release: 91 | runs-on: ubuntu-latest 92 | needs: [build-windows, vendor-dependencies, git-archive] 93 | permissions: 94 | contents: write 95 | steps: 96 | - uses: actions/download-artifact@v4 97 | with: 98 | path: ./binaries 99 | - uses: softprops/action-gh-release@v2 100 | with: 101 | files: | 102 | ./binaries/**/*.zip 103 | ./binaries/**/*.tar.* 104 | 105 | publish: 106 | runs-on: ubuntu-latest 107 | # When the release is good publish to crates.io 108 | needs: [create-release] 109 | env: 110 | CARGO_REGISTRY_TOKEN: '${{ secrets.CARGO_REGISTRY_TOKEN }}' 111 | steps: 112 | - uses: actions/checkout@v4 113 | - uses: dtolnay/rust-toolchain@stable 114 | - run: cargo publish --no-verify 115 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: "Build & lint" 2 | 3 | on: 4 | push: 5 | branches: main 6 | # Don't run CI for tags; there's always a branch for the tag as well so 7 | # there's no point in testing it separately 8 | tags-ignore: "*" 9 | pull_request: 10 | 11 | permissions: 12 | contents: read 13 | 14 | jobs: 15 | test: 16 | strategy: 17 | matrix: 18 | os: [ubuntu-latest, windows-latest] 19 | runs-on: "${{ matrix.os }}" 20 | steps: 21 | - uses: actions/checkout@v4 22 | - uses: dtolnay/rust-toolchain@stable 23 | id: toolchain 24 | with: 25 | components: rustfmt, clippy 26 | # See https://github.com/actions/cache/blob/main/examples.md#rust---cargo 27 | - uses: actions/cache@v4 28 | with: 29 | path: | 30 | ~/.cargo/bin/ 31 | ~/.cargo/registry/index/ 32 | ~/.cargo/registry/cache/ 33 | ~/.cargo/git/db/ 34 | target/ 35 | key: ${{ runner.os }}-rust-${{ steps.toolchain.outputs.cachekey }}-cargo-${{ hashFiles('**/Cargo.lock') }} 36 | - run: cargo build --all-targets --locked 37 | - run: cargo clippy --all-targets --locked 38 | - run: cargo test --locked 39 | - run: cargo fmt -- --check 40 | 41 | deny: 42 | runs-on: ubuntu-latest 43 | steps: 44 | - uses: actions/checkout@v4 45 | - uses: EmbarkStudios/cargo-deny-action@v2 46 | with: 47 | rust-version: stable 48 | 49 | doc: 50 | runs-on: ubuntu-latest 51 | steps: 52 | - uses: actions/checkout@v4 53 | - uses: docker://asciidoctor/docker-asciidoctor 54 | with: 55 | args: asciidoctor -b manpage -a reproducible git-gone.1.adoc 56 | 57 | # See https://mozilla.github.io/cargo-vet/configuring-ci.html 58 | cargo-vet: 59 | runs-on: ubuntu-latest 60 | env: 61 | CARGO_VET_VERSION: 0.10.0 62 | steps: 63 | - uses: actions/checkout@v4 64 | - uses: dtolnay/rust-toolchain@stable 65 | - uses: actions/cache@v4 66 | with: 67 | path: ${{ runner.tool_cache }}/cargo-vet 68 | key: cargo-vet-bin-${{ env.CARGO_VET_VERSION }} 69 | - run: echo "${{ runner.tool_cache }}/cargo-vet/bin" >> $GITHUB_PATH 70 | - run: cargo install --root ${{ runner.tool_cache }}/cargo-vet --version ${{ env.CARGO_VET_VERSION }} cargo-vet 71 | - run: cargo vet --locked 72 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Rust build files 2 | /target/ 3 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 4 4 | 5 | [[package]] 6 | name = "anstyle" 7 | version = "1.0.10" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" 10 | 11 | [[package]] 12 | name = "bitflags" 13 | version = "2.8.0" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" 16 | 17 | [[package]] 18 | name = "cc" 19 | version = "1.2.15" 20 | source = "registry+https://github.com/rust-lang/crates.io-index" 21 | checksum = "c736e259eea577f443d5c86c304f9f4ae0295c43f3ba05c21f1d66b5f06001af" 22 | dependencies = [ 23 | "jobserver", 24 | "libc", 25 | "shlex", 26 | ] 27 | 28 | [[package]] 29 | name = "clap" 30 | version = "4.5.30" 31 | source = "registry+https://github.com/rust-lang/crates.io-index" 32 | checksum = "92b7b18d71fad5313a1e320fa9897994228ce274b60faa4d694fe0ea89cd9e6d" 33 | dependencies = [ 34 | "clap_builder", 35 | "clap_derive", 36 | ] 37 | 38 | [[package]] 39 | name = "clap_builder" 40 | version = "4.5.30" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | checksum = "a35db2071778a7344791a4fb4f95308b5673d219dee3ae348b86642574ecc90c" 43 | dependencies = [ 44 | "anstyle", 45 | "clap_lex", 46 | ] 47 | 48 | [[package]] 49 | name = "clap_derive" 50 | version = "4.5.28" 51 | source = "registry+https://github.com/rust-lang/crates.io-index" 52 | checksum = "bf4ced95c6f4a675af3da73304b9ac4ed991640c36374e4b46795c49e17cf1ed" 53 | dependencies = [ 54 | "heck", 55 | "proc-macro2", 56 | "quote", 57 | "syn", 58 | ] 59 | 60 | [[package]] 61 | name = "clap_lex" 62 | version = "0.7.4" 63 | source = "registry+https://github.com/rust-lang/crates.io-index" 64 | checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" 65 | 66 | [[package]] 67 | name = "displaydoc" 68 | version = "0.2.5" 69 | source = "registry+https://github.com/rust-lang/crates.io-index" 70 | checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" 71 | dependencies = [ 72 | "proc-macro2", 73 | "quote", 74 | "syn", 75 | ] 76 | 77 | [[package]] 78 | name = "form_urlencoded" 79 | version = "1.2.1" 80 | source = "registry+https://github.com/rust-lang/crates.io-index" 81 | checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" 82 | dependencies = [ 83 | "percent-encoding", 84 | ] 85 | 86 | [[package]] 87 | name = "git-gone" 88 | version = "1.2.5" 89 | dependencies = [ 90 | "clap", 91 | "git2", 92 | ] 93 | 94 | [[package]] 95 | name = "git2" 96 | version = "0.20.0" 97 | source = "registry+https://github.com/rust-lang/crates.io-index" 98 | checksum = "3fda788993cc341f69012feba8bf45c0ba4f3291fcc08e214b4d5a7332d88aff" 99 | dependencies = [ 100 | "bitflags", 101 | "libc", 102 | "libgit2-sys", 103 | "log", 104 | "url", 105 | ] 106 | 107 | [[package]] 108 | name = "heck" 109 | version = "0.5.0" 110 | source = "registry+https://github.com/rust-lang/crates.io-index" 111 | checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 112 | 113 | [[package]] 114 | name = "icu_collections" 115 | version = "1.5.0" 116 | source = "registry+https://github.com/rust-lang/crates.io-index" 117 | checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" 118 | dependencies = [ 119 | "displaydoc", 120 | "yoke", 121 | "zerofrom", 122 | "zerovec", 123 | ] 124 | 125 | [[package]] 126 | name = "icu_locid" 127 | version = "1.5.0" 128 | source = "registry+https://github.com/rust-lang/crates.io-index" 129 | checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" 130 | dependencies = [ 131 | "displaydoc", 132 | "litemap", 133 | "tinystr", 134 | "writeable", 135 | "zerovec", 136 | ] 137 | 138 | [[package]] 139 | name = "icu_locid_transform" 140 | version = "1.5.0" 141 | source = "registry+https://github.com/rust-lang/crates.io-index" 142 | checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" 143 | dependencies = [ 144 | "displaydoc", 145 | "icu_locid", 146 | "icu_locid_transform_data", 147 | "icu_provider", 148 | "tinystr", 149 | "zerovec", 150 | ] 151 | 152 | [[package]] 153 | name = "icu_locid_transform_data" 154 | version = "1.5.0" 155 | source = "registry+https://github.com/rust-lang/crates.io-index" 156 | checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" 157 | 158 | [[package]] 159 | name = "icu_normalizer" 160 | version = "1.5.0" 161 | source = "registry+https://github.com/rust-lang/crates.io-index" 162 | checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" 163 | dependencies = [ 164 | "displaydoc", 165 | "icu_collections", 166 | "icu_normalizer_data", 167 | "icu_properties", 168 | "icu_provider", 169 | "smallvec", 170 | "utf16_iter", 171 | "utf8_iter", 172 | "write16", 173 | "zerovec", 174 | ] 175 | 176 | [[package]] 177 | name = "icu_normalizer_data" 178 | version = "1.5.0" 179 | source = "registry+https://github.com/rust-lang/crates.io-index" 180 | checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" 181 | 182 | [[package]] 183 | name = "icu_properties" 184 | version = "1.5.1" 185 | source = "registry+https://github.com/rust-lang/crates.io-index" 186 | checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" 187 | dependencies = [ 188 | "displaydoc", 189 | "icu_collections", 190 | "icu_locid_transform", 191 | "icu_properties_data", 192 | "icu_provider", 193 | "tinystr", 194 | "zerovec", 195 | ] 196 | 197 | [[package]] 198 | name = "icu_properties_data" 199 | version = "1.5.0" 200 | source = "registry+https://github.com/rust-lang/crates.io-index" 201 | checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" 202 | 203 | [[package]] 204 | name = "icu_provider" 205 | version = "1.5.0" 206 | source = "registry+https://github.com/rust-lang/crates.io-index" 207 | checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" 208 | dependencies = [ 209 | "displaydoc", 210 | "icu_locid", 211 | "icu_provider_macros", 212 | "stable_deref_trait", 213 | "tinystr", 214 | "writeable", 215 | "yoke", 216 | "zerofrom", 217 | "zerovec", 218 | ] 219 | 220 | [[package]] 221 | name = "icu_provider_macros" 222 | version = "1.5.0" 223 | source = "registry+https://github.com/rust-lang/crates.io-index" 224 | checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" 225 | dependencies = [ 226 | "proc-macro2", 227 | "quote", 228 | "syn", 229 | ] 230 | 231 | [[package]] 232 | name = "idna" 233 | version = "1.0.3" 234 | source = "registry+https://github.com/rust-lang/crates.io-index" 235 | checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" 236 | dependencies = [ 237 | "idna_adapter", 238 | "smallvec", 239 | "utf8_iter", 240 | ] 241 | 242 | [[package]] 243 | name = "idna_adapter" 244 | version = "1.2.0" 245 | source = "registry+https://github.com/rust-lang/crates.io-index" 246 | checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" 247 | dependencies = [ 248 | "icu_normalizer", 249 | "icu_properties", 250 | ] 251 | 252 | [[package]] 253 | name = "jobserver" 254 | version = "0.1.32" 255 | source = "registry+https://github.com/rust-lang/crates.io-index" 256 | checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" 257 | dependencies = [ 258 | "libc", 259 | ] 260 | 261 | [[package]] 262 | name = "libc" 263 | version = "0.2.169" 264 | source = "registry+https://github.com/rust-lang/crates.io-index" 265 | checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" 266 | 267 | [[package]] 268 | name = "libgit2-sys" 269 | version = "0.18.0+1.9.0" 270 | source = "registry+https://github.com/rust-lang/crates.io-index" 271 | checksum = "e1a117465e7e1597e8febea8bb0c410f1c7fb93b1e1cddf34363f8390367ffec" 272 | dependencies = [ 273 | "cc", 274 | "libc", 275 | "libz-sys", 276 | "pkg-config", 277 | ] 278 | 279 | [[package]] 280 | name = "libz-sys" 281 | version = "1.1.21" 282 | source = "registry+https://github.com/rust-lang/crates.io-index" 283 | checksum = "df9b68e50e6e0b26f672573834882eb57759f6db9b3be2ea3c35c91188bb4eaa" 284 | dependencies = [ 285 | "cc", 286 | "libc", 287 | "pkg-config", 288 | "vcpkg", 289 | ] 290 | 291 | [[package]] 292 | name = "litemap" 293 | version = "0.7.4" 294 | source = "registry+https://github.com/rust-lang/crates.io-index" 295 | checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" 296 | 297 | [[package]] 298 | name = "log" 299 | version = "0.4.26" 300 | source = "registry+https://github.com/rust-lang/crates.io-index" 301 | checksum = "30bde2b3dc3671ae49d8e2e9f044c7c005836e7a023ee57cffa25ab82764bb9e" 302 | 303 | [[package]] 304 | name = "percent-encoding" 305 | version = "2.3.1" 306 | source = "registry+https://github.com/rust-lang/crates.io-index" 307 | checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" 308 | 309 | [[package]] 310 | name = "pkg-config" 311 | version = "0.3.31" 312 | source = "registry+https://github.com/rust-lang/crates.io-index" 313 | checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" 314 | 315 | [[package]] 316 | name = "proc-macro2" 317 | version = "1.0.93" 318 | source = "registry+https://github.com/rust-lang/crates.io-index" 319 | checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99" 320 | dependencies = [ 321 | "unicode-ident", 322 | ] 323 | 324 | [[package]] 325 | name = "quote" 326 | version = "1.0.38" 327 | source = "registry+https://github.com/rust-lang/crates.io-index" 328 | checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" 329 | dependencies = [ 330 | "proc-macro2", 331 | ] 332 | 333 | [[package]] 334 | name = "serde" 335 | version = "1.0.218" 336 | source = "registry+https://github.com/rust-lang/crates.io-index" 337 | checksum = "e8dfc9d19bdbf6d17e22319da49161d5d0108e4188e8b680aef6299eed22df60" 338 | dependencies = [ 339 | "serde_derive", 340 | ] 341 | 342 | [[package]] 343 | name = "serde_derive" 344 | version = "1.0.218" 345 | source = "registry+https://github.com/rust-lang/crates.io-index" 346 | checksum = "f09503e191f4e797cb8aac08e9a4a4695c5edf6a2e70e376d961ddd5c969f82b" 347 | dependencies = [ 348 | "proc-macro2", 349 | "quote", 350 | "syn", 351 | ] 352 | 353 | [[package]] 354 | name = "shlex" 355 | version = "1.3.0" 356 | source = "registry+https://github.com/rust-lang/crates.io-index" 357 | checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 358 | 359 | [[package]] 360 | name = "smallvec" 361 | version = "1.14.0" 362 | source = "registry+https://github.com/rust-lang/crates.io-index" 363 | checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd" 364 | 365 | [[package]] 366 | name = "stable_deref_trait" 367 | version = "1.2.0" 368 | source = "registry+https://github.com/rust-lang/crates.io-index" 369 | checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" 370 | 371 | [[package]] 372 | name = "syn" 373 | version = "2.0.98" 374 | source = "registry+https://github.com/rust-lang/crates.io-index" 375 | checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1" 376 | dependencies = [ 377 | "proc-macro2", 378 | "quote", 379 | "unicode-ident", 380 | ] 381 | 382 | [[package]] 383 | name = "synstructure" 384 | version = "0.13.1" 385 | source = "registry+https://github.com/rust-lang/crates.io-index" 386 | checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" 387 | dependencies = [ 388 | "proc-macro2", 389 | "quote", 390 | "syn", 391 | ] 392 | 393 | [[package]] 394 | name = "tinystr" 395 | version = "0.7.6" 396 | source = "registry+https://github.com/rust-lang/crates.io-index" 397 | checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" 398 | dependencies = [ 399 | "displaydoc", 400 | "zerovec", 401 | ] 402 | 403 | [[package]] 404 | name = "unicode-ident" 405 | version = "1.0.17" 406 | source = "registry+https://github.com/rust-lang/crates.io-index" 407 | checksum = "00e2473a93778eb0bad35909dff6a10d28e63f792f16ed15e404fca9d5eeedbe" 408 | 409 | [[package]] 410 | name = "url" 411 | version = "2.5.4" 412 | source = "registry+https://github.com/rust-lang/crates.io-index" 413 | checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" 414 | dependencies = [ 415 | "form_urlencoded", 416 | "idna", 417 | "percent-encoding", 418 | ] 419 | 420 | [[package]] 421 | name = "utf16_iter" 422 | version = "1.0.5" 423 | source = "registry+https://github.com/rust-lang/crates.io-index" 424 | checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" 425 | 426 | [[package]] 427 | name = "utf8_iter" 428 | version = "1.0.4" 429 | source = "registry+https://github.com/rust-lang/crates.io-index" 430 | checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" 431 | 432 | [[package]] 433 | name = "vcpkg" 434 | version = "0.2.15" 435 | source = "registry+https://github.com/rust-lang/crates.io-index" 436 | checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" 437 | 438 | [[package]] 439 | name = "write16" 440 | version = "1.0.0" 441 | source = "registry+https://github.com/rust-lang/crates.io-index" 442 | checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" 443 | 444 | [[package]] 445 | name = "writeable" 446 | version = "0.5.5" 447 | source = "registry+https://github.com/rust-lang/crates.io-index" 448 | checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" 449 | 450 | [[package]] 451 | name = "yoke" 452 | version = "0.7.5" 453 | source = "registry+https://github.com/rust-lang/crates.io-index" 454 | checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" 455 | dependencies = [ 456 | "serde", 457 | "stable_deref_trait", 458 | "yoke-derive", 459 | "zerofrom", 460 | ] 461 | 462 | [[package]] 463 | name = "yoke-derive" 464 | version = "0.7.5" 465 | source = "registry+https://github.com/rust-lang/crates.io-index" 466 | checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" 467 | dependencies = [ 468 | "proc-macro2", 469 | "quote", 470 | "syn", 471 | "synstructure", 472 | ] 473 | 474 | [[package]] 475 | name = "zerofrom" 476 | version = "0.1.5" 477 | source = "registry+https://github.com/rust-lang/crates.io-index" 478 | checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" 479 | dependencies = [ 480 | "zerofrom-derive", 481 | ] 482 | 483 | [[package]] 484 | name = "zerofrom-derive" 485 | version = "0.1.5" 486 | source = "registry+https://github.com/rust-lang/crates.io-index" 487 | checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" 488 | dependencies = [ 489 | "proc-macro2", 490 | "quote", 491 | "syn", 492 | "synstructure", 493 | ] 494 | 495 | [[package]] 496 | name = "zerovec" 497 | version = "0.10.4" 498 | source = "registry+https://github.com/rust-lang/crates.io-index" 499 | checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" 500 | dependencies = [ 501 | "yoke", 502 | "zerofrom", 503 | "zerovec-derive", 504 | ] 505 | 506 | [[package]] 507 | name = "zerovec-derive" 508 | version = "0.10.3" 509 | source = "registry+https://github.com/rust-lang/crates.io-index" 510 | checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" 511 | dependencies = [ 512 | "proc-macro2", 513 | "quote", 514 | "syn", 515 | ] 516 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "git-gone" 3 | version = "1.2.5" 4 | description = "Manage \"gone\" Git branches" 5 | homepage = "https://github.com/swsnr/git-gone" 6 | repository = "https://github.com/swsnr/git-gone" 7 | readme = "README.adoc" 8 | license = "Apache-2.0" 9 | keywords = ["git", "branch", "remote"] 10 | categories = ["development-tools", "command-line-utilities"] 11 | authors = ["Sebastian Wiesner "] 12 | edition = "2024" 13 | include = [ 14 | "git-gone.1", 15 | "git-gone.1.adoc", 16 | "src/*.rs", 17 | "*.md", 18 | "LICENSE", 19 | "README", 20 | ] 21 | 22 | [dependencies] 23 | clap = { version = "4.5.1", default-features = false, features = [ 24 | "std", 25 | # Auto-generate help and usage info 26 | "help", 27 | "usage", 28 | # Better error messages 29 | "error-context", 30 | "derive", 31 | ] } 32 | 33 | [dependencies.git2] 34 | version = "0.20.0" 35 | # Disable all features of git2; we only use a small subset of the library and do not need any of these. 36 | # Specifically this also disables SSL and SSH support and thus removes library dependencies, which permits 37 | # a static musl build. 38 | default-features = false 39 | 40 | [package.metadata.release] 41 | pre-release-commit-message = "Release {{version}}" 42 | tag-prefix = "" 43 | tag-message = "Version {{tag_name}}" 44 | # Github Actions does this for us 45 | verify = false 46 | # The release workflow does this for us 47 | publish = false 48 | # We push commit and tag separately to make sure the release workflow only runs 49 | # if the pipeline's good; release tag rules will prevent us from pushing a tag 50 | # for a commit which is not green 51 | push = false 52 | 53 | [[package.metadata.release.pre-release-replacements]] 54 | file = "git-gone.1.adoc" 55 | search = "^:revnumber: .*$" 56 | replace = ":revnumber: {{version}}" 57 | 58 | [[package.metadata.release.pre-release-replacements]] 59 | file = "git-gone.1.adoc" 60 | search = "^:revdate: .*$" 61 | replace = ":revdate: {{date}}" 62 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Moved to 2 | -------------------------------------------------------------------------------- /deny.toml: -------------------------------------------------------------------------------- 1 | [graph] 2 | # Targets I care for 3 | targets = ['x86_64-unknown-linux-gnu', 'x86_64-pc-windows-msvc'] 4 | 5 | [advisories] 6 | version = 2 7 | ignore = [] 8 | 9 | [licenses] 10 | version = 2 11 | allow = ["MIT", "Apache-2.0", "Unicode-3.0"] 12 | 13 | [sources] 14 | unknown-registry = "deny" 15 | unknown-git = "deny" 16 | 17 | [bans] 18 | multiple-versions = "deny" 19 | -------------------------------------------------------------------------------- /git-gone.1.adoc: -------------------------------------------------------------------------------- 1 | = git-gone(1) 2 | Sebastian Wiesner 3 | :doctype: manpage 4 | :revnumber: 1.2.5 5 | :revdate: 2025-02-22 6 | :mansource: git-gone {revnumber} 7 | :manmanual: git-gone 8 | 9 | == Name 10 | 11 | git-gone - prune "gone" Git branches 12 | 13 | == Synopsis 14 | 15 | *git gone* [_-fv_] list + 16 | *git gone* [_-fv_] prune 17 | 18 | == Description 19 | 20 | Lists or removes "gone" branches, that is, local branches which used to have an upstream branch on a remote which is now removed. 21 | 22 | This situation typically occurs in a pull request workflow where the upstream branch gets deleted on the server after merging a pull request, leaving the local branch from which the pull request originated in place. 23 | *git gone* easily removes these left-over branches. 24 | 25 | == Commands 26 | 27 | list:: 28 | List all gone branches. 29 | 30 | prune:: 31 | Delete all gone branches. 32 | + 33 | Prints a list of deleted branches including a command to restore the branch as long as the referenced commit is still in the reflog. 34 | 35 | == Options 36 | 37 | -V:: 38 | --version:: 39 | Print the version number and exit. 40 | 41 | == Exit status 42 | 43 | 0 on success, non-zero otherwise. 44 | 45 | == Bugs 46 | 47 | Please report bugs to https://github.com/swsnr/git-gone/issues/new. 48 | 49 | == See also 50 | 51 | *git(1)* 52 | 53 | All credits for the idea go to Eugene Yokota (see http://eed3si9n.com/): 54 | 55 | - git gone: cleaning stale local branches at http://eed3si9n.com/git-gone-cleaning-stale-local-branches 56 | - git-gone in Bash at https://github.com/eed3si9n/git-gone 57 | 58 | 59 | == Copyright 60 | 61 | Copyright 2018-2020 Sebastian Wiesner 62 | 63 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 64 | You may obtain a copy of the License at . 65 | 66 | Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 67 | See the License for the specific language governing permissions and limitations under the License. 68 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | // Copyright 2018-2020 Sebastian Wiesner 2 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not 4 | // use this file except in compliance with the License. You may obtain a copy of 5 | // the License at 6 | 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 | // License for the specific language governing permissions and limitations under 13 | // the License. 14 | 15 | #![deny(warnings, clippy::all, clippy::pedantic, 16 | // Guard against left-over debugging output 17 | clippy::dbg_macro, 18 | clippy::unimplemented, 19 | clippy::use_debug, 20 | clippy::todo, 21 | // Do not carelessly ignore errors 22 | clippy::let_underscore_must_use, 23 | clippy::let_underscore_untyped, 24 | )] 25 | 26 | use git2::{Branch, BranchType, Error, ErrorCode, Repository}; 27 | 28 | /// Whether a branch has an upstream. 29 | /// 30 | /// Try to get the name of the upstream branch of the given branch. If it 31 | /// exists the branch has an upstream, otherwise it hasn't. 32 | fn has_upstream(repo: &Repository, branch: &Branch) -> bool { 33 | // branch_upstream_name expects the full refname (e.g. refs/heads/…) so 34 | // we move the underlying reference with .get(). 35 | branch 36 | .get() 37 | .name() 38 | .is_some_and(|refname| repo.branch_upstream_name(refname).is_ok()) 39 | } 40 | 41 | /// Iterate over gone branches. 42 | /// 43 | /// Find all branches which still have an upstream branch configured, but 44 | /// whose upstream doesn't exist anymore. These branches had an upstream once 45 | /// probably because they were pushed, but the upstream is gone, e.g. was 46 | /// deleted on the remote. 47 | fn find_gone_branches(repo: &Repository) -> Result>, Error> { 48 | let local_branches = repo 49 | .branches(Some(BranchType::Local))? 50 | .collect::, BranchType)>, Error>>()?; 51 | Ok(local_branches 52 | .into_iter() 53 | .map(|item| item.0) 54 | // Look at branches which have an upstream branch… 55 | .filter(move |branch| has_upstream(repo, branch)) 56 | // …and if that upstream doesn't exist anymore, we have a branch which 57 | // had an upstream once, but no more, so the upstream’s gone. 58 | .filter(|branch| { 59 | branch 60 | .upstream() 61 | .err() 62 | .iter() 63 | .any(|error| error.code() == ErrorCode::NotFound) 64 | })) 65 | } 66 | 67 | /// List all gone branches from the given repo on standard output. 68 | fn list_gone_branches(repo: &Repository) -> Result<(), Error> { 69 | for branch in find_gone_branches(repo)? { 70 | let name = String::from_utf8_lossy(branch.name_bytes()?); 71 | println!("{name}"); 72 | } 73 | Ok(()) 74 | } 75 | 76 | /// Prune gone branches from the given repository. 77 | fn prune_gone_branches(repo: &Repository) -> Result<(), Error> { 78 | for mut branch in find_gone_branches(repo)? { 79 | let oid = branch.get().peel_to_commit()?.id(); 80 | // Take a copy of the name cow because "delete()" borrows mutable 81 | let name = String::from_utf8_lossy(branch.name_bytes()?).to_string(); 82 | match branch.delete() { 83 | Ok(()) => { 84 | println!("Deleted {name} (restore with `git checkout -b {name} {oid}`)"); 85 | } 86 | Err(error) => { 87 | eprintln!("Skipped deleting {name} due to {error}"); 88 | } 89 | }; 90 | } 91 | Ok(()) 92 | } 93 | 94 | fn after_help() -> &'static str { 95 | "\ 96 | A \"gone\" branch is a local Git branch whose upstream branch no longer exist. 97 | This frequently occurs in a pull request workflow: 98 | 99 | 1. You create a local branch, push it and create a pull request. 100 | 2. A reviewer merges the pull request and deletes the branch on the server. 101 | 3. Your local branch still lingers in your clone. 102 | 103 | Over time and after many pull request you accumulate many of these branches 104 | which reference long-merged pull requests and serve no further purpose. 105 | 106 | git gone can list these branches and also prune them from your clone. 107 | 108 | Copyright (C) 2018–2020 Sebastian Wiesner 109 | Licensed under the Apache License, Version 2.0 110 | Report issues to ." 111 | } 112 | 113 | #[derive(Debug, clap::Parser)] 114 | #[command(author, version, about, after_help=after_help())] 115 | struct Args { 116 | /// The command. Defaults to "list". 117 | #[command(subcommand)] 118 | command: Option, 119 | } 120 | 121 | #[derive(Debug, clap::Subcommand)] 122 | enum Command { 123 | /// List all gone branches. Default. 124 | List, 125 | /// Delete all gone branches. 126 | Prune, 127 | } 128 | 129 | fn main() -> Result<(), Box> { 130 | use clap::Parser; 131 | let args = Args::parse(); 132 | let repo = Repository::open_from_env()?; 133 | 134 | match args.command.unwrap_or(Command::List) { 135 | Command::List => list_gone_branches(&repo)?, 136 | Command::Prune => prune_gone_branches(&repo)?, 137 | } 138 | 139 | Ok(()) 140 | } 141 | -------------------------------------------------------------------------------- /supply-chain/audits.toml: -------------------------------------------------------------------------------- 1 | 2 | # cargo-vet audits file 3 | 4 | [[audits.cc]] 5 | who = "Sebastian Wiesner " 6 | criteria = "safe-to-run" 7 | delta = "1.2.12 -> 1.2.15" 8 | 9 | [[audits.clap]] 10 | who = "Sebastian Wiesner " 11 | criteria = "safe-to-run" 12 | delta = "4.5.29 -> 4.5.30" 13 | 14 | [[audits.clap_builder]] 15 | who = "Sebastian Wiesner " 16 | criteria = "safe-to-run" 17 | delta = "4.5.29 -> 4.5.30" 18 | 19 | [[audits.log]] 20 | who = "Sebastian Wiesner " 21 | criteria = "safe-to-run" 22 | delta = "0.4.25 -> 0.4.26" 23 | 24 | [[audits.pkg-config]] 25 | who = "Sebastian Wiesner " 26 | criteria = "safe-to-deploy" 27 | delta = "0.3.29 -> 0.3.30" 28 | notes = "This change just adds documentation." 29 | 30 | [[audits.serde]] 31 | who = "Sebastian Wiesner " 32 | criteria = "safe-to-run" 33 | delta = "1.0.217 -> 1.0.218" 34 | 35 | [[audits.serde_derive]] 36 | who = "Sebastian Wiesner " 37 | criteria = "safe-to-run" 38 | delta = "1.0.217 -> 1.0.218" 39 | 40 | [[audits.smallvec]] 41 | who = "Sebastian Wiesner " 42 | criteria = "safe-to-run" 43 | delta = "1.6.1 -> 1.8.0" 44 | 45 | [[audits.tinyvec_macros]] 46 | who = "Sebastian Wiesner " 47 | criteria = "safe-to-deploy" 48 | delta = "0.1.0 -> 0.1.1" 49 | notes = "Explicitly forbids unsafe code now; remaining changes is just new license files" 50 | 51 | [[audits.unicode-ident]] 52 | who = "Sebastian Wiesner " 53 | criteria = "safe-to-run" 54 | delta = "1.0.16 -> 1.0.17" 55 | 56 | [[trusted.cc]] 57 | criteria = "safe-to-run" 58 | user-id = 2915 # Amanieu d'Antras (Amanieu) 59 | start = "2024-02-20" 60 | end = "2025-10-27" 61 | notes = "Trusted by Mozilla and Bytecode Alliance" 62 | 63 | [[trusted.clap_derive]] 64 | criteria = "safe-to-run" 65 | user-id = 6743 # Ed Page (epage) 66 | start = "2021-12-08" 67 | end = "2025-10-27" 68 | notes = "Trusted by Mozilla and Bytecode Alliance" 69 | 70 | [[trusted.git2]] 71 | criteria = "safe-to-run" 72 | user-id = 4333 73 | start = "2020-08-19" 74 | end = "2025-10-27" 75 | notes = "Trusted by Mozilla and Bytecode Alliance" 76 | 77 | [[trusted.git2]] 78 | criteria = "safe-to-run" 79 | user-id = 55123 # rust-lang-owner 80 | start = "2023-08-28" 81 | end = "2026-01-29" 82 | 83 | [[trusted.jobserver]] 84 | criteria = "safe-to-run" 85 | user-id = 1 # Alex Crichton (alexcrichton) 86 | start = "2019-03-15" 87 | end = "2025-10-27" 88 | notes = "Trusted by Mozilla and Bytecode Alliance" 89 | 90 | [[trusted.libc]] 91 | criteria = "safe-to-run" 92 | user-id = 55123 # rust-lang-owner 93 | start = "2024-08-15" 94 | end = "2026-02-22" 95 | 96 | [[trusted.libgit2-sys]] 97 | criteria = "safe-to-run" 98 | user-id = 4333 99 | start = "2020-08-19" 100 | end = "2025-10-27" 101 | notes = "Trusted by Mozilla and Bytecode Alliance" 102 | 103 | [[trusted.libgit2-sys]] 104 | criteria = "safe-to-run" 105 | user-id = 55123 # rust-lang-owner 106 | start = "2023-08-28" 107 | end = "2026-01-29" 108 | 109 | [[trusted.libz-sys]] 110 | criteria = "safe-to-run" 111 | user-id = 980 # Sebastian Thiel (Byron) 112 | start = "2023-07-23" 113 | end = "2026-02-22" 114 | 115 | [[trusted.libz-sys]] 116 | criteria = "safe-to-run" 117 | user-id = 4333 118 | start = "2020-08-14" 119 | end = "2025-10-27" 120 | notes = "Trusted by Mozilla and Bytecode Alliance" 121 | 122 | [[trusted.syn]] 123 | criteria = "safe-to-run" 124 | user-id = 3618 # David Tolnay (dtolnay) 125 | start = "2019-03-01" 126 | end = "2026-02-22" 127 | -------------------------------------------------------------------------------- /supply-chain/config.toml: -------------------------------------------------------------------------------- 1 | 2 | # cargo-vet config file 3 | 4 | [cargo-vet] 5 | version = "0.10" 6 | 7 | [imports.bytecode-alliance] 8 | url = "https://raw.githubusercontent.com/bytecodealliance/wasmtime/main/supply-chain/audits.toml" 9 | 10 | [imports.embark-studios] 11 | url = "https://raw.githubusercontent.com/EmbarkStudios/rust-ecosystem/main/audits.toml" 12 | 13 | [imports.google] 14 | url = "https://raw.githubusercontent.com/google/supply-chain/main/audits.toml" 15 | 16 | [imports.mozilla] 17 | url = "https://raw.githubusercontent.com/mozilla/supply-chain/main/audits.toml" 18 | 19 | [imports.swsnr] 20 | url = "https://raw.githubusercontent.com/swsnr/rust-supply-chain/refs/heads/main/audits.toml" 21 | 22 | [policy.git-gone] 23 | audit-as-crates-io = false 24 | criteria = "safe-to-run" 25 | -------------------------------------------------------------------------------- /supply-chain/imports.lock: -------------------------------------------------------------------------------- 1 | 2 | # cargo-vet imports lock 3 | 4 | [[publisher.cc]] 5 | version = "1.0.89" 6 | when = "2024-03-04" 7 | user-id = 2915 8 | user-login = "Amanieu" 9 | user-name = "Amanieu d'Antras" 10 | 11 | [[publisher.clap_derive]] 12 | version = "4.5.28" 13 | when = "2025-02-03" 14 | user-id = 6743 15 | user-login = "epage" 16 | user-name = "Ed Page" 17 | 18 | [[publisher.git2]] 19 | version = "0.20.0" 20 | when = "2025-01-05" 21 | user-id = 55123 22 | user-login = "rust-lang-owner" 23 | 24 | [[publisher.jobserver]] 25 | version = "0.1.25" 26 | when = "2022-09-23" 27 | user-id = 1 28 | user-login = "alexcrichton" 29 | user-name = "Alex Crichton" 30 | 31 | [[publisher.libc]] 32 | version = "0.2.169" 33 | when = "2024-12-19" 34 | user-id = 55123 35 | user-login = "rust-lang-owner" 36 | 37 | [[publisher.libgit2-sys]] 38 | version = "0.18.0+1.9.0" 39 | when = "2025-01-05" 40 | user-id = 55123 41 | user-login = "rust-lang-owner" 42 | 43 | [[publisher.libz-sys]] 44 | version = "1.1.21" 45 | when = "2025-01-07" 46 | user-id = 980 47 | user-login = "Byron" 48 | user-name = "Sebastian Thiel" 49 | 50 | [[publisher.syn]] 51 | version = "2.0.98" 52 | when = "2025-02-02" 53 | user-id = 3618 54 | user-login = "dtolnay" 55 | user-name = "David Tolnay" 56 | 57 | [[audits.bytecode-alliance.audits.icu_properties]] 58 | who = "Nick Fitzgerald " 59 | criteria = "safe-to-deploy" 60 | delta = "1.5.0 -> 1.5.1" 61 | 62 | [[audits.bytecode-alliance.audits.idna]] 63 | who = "Alex Crichton " 64 | criteria = "safe-to-deploy" 65 | version = "0.3.0" 66 | notes = """ 67 | This is a crate without unsafe code or usage of the standard library. The large 68 | size of this crate comes from the large generated unicode tables file. This 69 | crate is broadly used throughout the ecosystem and does not contain anything 70 | suspicious. 71 | """ 72 | 73 | [[audits.bytecode-alliance.audits.jobserver]] 74 | who = "Alex Crichton " 75 | criteria = "safe-to-deploy" 76 | delta = "0.1.25 -> 0.1.32" 77 | 78 | [[audits.bytecode-alliance.audits.vcpkg]] 79 | who = "Pat Hickey " 80 | criteria = "safe-to-deploy" 81 | version = "0.2.15" 82 | notes = "no build.rs, no macros, no unsafe. It reads the filesystem and makes copies of DLLs into OUT_DIR." 83 | 84 | [audits.embark-studios.audits] 85 | 86 | [[audits.google.audits.anstyle]] 87 | who = "Yu-An Wang " 88 | criteria = "safe-to-run" 89 | version = "1.0.4" 90 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 91 | 92 | [[audits.google.audits.anstyle]] 93 | who = "Lukasz Anforowicz " 94 | criteria = "safe-to-run" 95 | delta = "1.0.4 -> 1.0.6" 96 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 97 | 98 | [[audits.google.audits.anstyle]] 99 | who = "danakj " 100 | criteria = "safe-to-run" 101 | delta = "1.0.6 -> 1.0.7" 102 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 103 | 104 | [[audits.google.audits.anstyle]] 105 | who = "Lukasz Anforowicz " 106 | criteria = "safe-to-run" 107 | delta = "1.0.7 -> 1.0.8" 108 | notes = "Only Cargo.toml changes in the 1.0.7 => 1.0.8 delta." 109 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 110 | 111 | [[audits.google.audits.anstyle]] 112 | who = "Dustin J. Mitchell " 113 | criteria = "safe-to-run" 114 | delta = "1.0.8 -> 1.0.9" 115 | notes = "No changes" 116 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 117 | 118 | [[audits.google.audits.anstyle]] 119 | who = "Lukasz Anforowicz " 120 | criteria = "safe-to-run" 121 | delta = "1.0.9 -> 1.0.10" 122 | notes = "Minor changes related to `write_str`." 123 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 124 | 125 | [[audits.google.audits.bitflags]] 126 | who = "Justin Green " 127 | criteria = "safe-to-run" 128 | version = "2.6.0" 129 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 130 | 131 | [[audits.google.audits.bitflags]] 132 | who = "Lukasz Anforowicz " 133 | criteria = "safe-to-deploy" 134 | delta = "2.6.0 -> 2.8.0" 135 | notes = "No changes related to `unsafe impl ... bytemuck` pieces from `src/external.rs`." 136 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 137 | 138 | [[audits.google.audits.clap]] 139 | who = "Lukasz Anforowicz " 140 | criteria = "safe-to-deploy" 141 | version = "4.5.15" 142 | notes = ''' 143 | Grepped for `-i cipher`, `-i crypto`, `'\bfs\b'`, `'\bnet\b'`, `'\bunsafe\b'` 144 | and there were no hits, except for `std::net::IpAddr` usage in 145 | `examples/typed-derive.rs`. 146 | ''' 147 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 148 | 149 | [[audits.google.audits.clap]] 150 | who = "danakj " 151 | criteria = "safe-to-deploy" 152 | delta = "4.5.15 -> 4.5.17" 153 | notes = "Minor code change and toml changes." 154 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 155 | 156 | [[audits.google.audits.clap]] 157 | who = "Lukasz Anforowicz " 158 | criteria = "safe-to-deploy" 159 | delta = "4.5.17 -> 4.5.18" 160 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 161 | 162 | [[audits.google.audits.clap]] 163 | who = "danakj " 164 | criteria = "safe-to-deploy" 165 | delta = "4.5.18 -> 4.5.20" 166 | notes = "Trivial changes" 167 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 168 | 169 | [[audits.google.audits.clap]] 170 | who = "Adrian Taylor " 171 | criteria = "safe-to-run" 172 | delta = "4.5.20 -> 4.5.21" 173 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 174 | 175 | [[audits.google.audits.clap]] 176 | who = "Lukasz Anforowicz " 177 | criteria = "safe-to-run" 178 | delta = "4.5.21 -> 4.5.23" 179 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 180 | 181 | [[audits.google.audits.clap]] 182 | who = "Lukasz Anforowicz " 183 | criteria = "safe-to-run" 184 | delta = "4.5.23 -> 4.5.27" 185 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 186 | 187 | [[audits.google.audits.clap]] 188 | who = "Liza Burakova " 189 | criteria = "safe-to-run" 190 | delta = "4.5.27 -> 4.5.28" 191 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 192 | 193 | [[audits.google.audits.clap]] 194 | who = "Jonathan Hao " 195 | criteria = "safe-to-run" 196 | delta = "4.5.28 -> 4.5.29" 197 | notes = "No code changes." 198 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 199 | 200 | [[audits.google.audits.clap_builder]] 201 | who = "Lukasz Anforowicz " 202 | criteria = "safe-to-deploy" 203 | version = "4.5.15" 204 | notes = ''' 205 | Grepped for `-i cipher`, `-i crypto`, `'\bfs\b'`, `'\bnet\b'`, `'\bunsafe\b'` 206 | and there were no hits. 207 | ''' 208 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 209 | 210 | [[audits.google.audits.clap_builder]] 211 | who = "danakj " 212 | criteria = "safe-to-deploy" 213 | delta = "4.5.15 -> 4.5.17" 214 | notes = "No new unsafe, net, fs" 215 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 216 | 217 | [[audits.google.audits.clap_builder]] 218 | who = "Lukasz Anforowicz " 219 | criteria = "safe-to-deploy" 220 | delta = "4.5.17 -> 4.5.18" 221 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 222 | 223 | [[audits.google.audits.clap_builder]] 224 | who = "danakj " 225 | criteria = "safe-to-run" 226 | delta = "4.5.18 -> 4.5.20" 227 | notes = "No new unsafe" 228 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 229 | 230 | [[audits.google.audits.clap_builder]] 231 | who = "Adrian Taylor " 232 | criteria = "safe-to-run" 233 | delta = "4.5.20 -> 4.5.21" 234 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 235 | 236 | [[audits.google.audits.clap_builder]] 237 | who = "Lukasz Anforowicz " 238 | criteria = "safe-to-run" 239 | delta = "4.5.21 -> 4.5.23" 240 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 241 | 242 | [[audits.google.audits.clap_builder]] 243 | who = "Lukasz Anforowicz " 244 | criteria = "safe-to-run" 245 | delta = "4.5.23 -> 4.5.27" 246 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 247 | 248 | [[audits.google.audits.clap_builder]] 249 | who = "Jonathan Hao " 250 | criteria = "safe-to-run" 251 | delta = "4.5.27 -> 4.5.29" 252 | notes = "Only changed `args_present` method a bit and added a `value` method to `flat_map`." 253 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 254 | 255 | [[audits.google.audits.clap_lex]] 256 | who = "Ying Hsu " 257 | criteria = "safe-to-run" 258 | version = "0.7.0" 259 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 260 | 261 | [[audits.google.audits.clap_lex]] 262 | who = "Adrian Taylor " 263 | criteria = "safe-to-run" 264 | delta = "0.7.0 -> 0.7.1" 265 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 266 | 267 | [[audits.google.audits.clap_lex]] 268 | who = "Lukasz Anforowicz " 269 | criteria = "safe-to-run" 270 | delta = "0.7.1 -> 0.7.2" 271 | notes = "No `.rs` changes in the delta." 272 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 273 | 274 | [[audits.google.audits.clap_lex]] 275 | who = "Adrian Taylor " 276 | criteria = "safe-to-run" 277 | delta = "0.7.2 -> 0.7.3" 278 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 279 | 280 | [[audits.google.audits.clap_lex]] 281 | who = "Lukasz Anforowicz " 282 | criteria = "safe-to-run" 283 | delta = "0.7.3 -> 0.7.4" 284 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 285 | 286 | [[audits.google.audits.displaydoc]] 287 | who = "George Burgess IV " 288 | criteria = "safe-to-run" 289 | version = "0.2.5" 290 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 291 | 292 | [[audits.google.audits.heck]] 293 | who = "Ying Hsu " 294 | criteria = "safe-to-run" 295 | version = "0.5.0" 296 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 297 | 298 | [[audits.google.audits.icu_locid_transform]] 299 | who = "George Burgess IV " 300 | criteria = "safe-to-run" 301 | version = "1.5.0" 302 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 303 | 304 | [[audits.google.audits.icu_locid_transform_data]] 305 | who = "George Burgess IV " 306 | criteria = "safe-to-run" 307 | version = "1.5.0" 308 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 309 | 310 | [[audits.google.audits.icu_normalizer_data]] 311 | who = "George Burgess IV " 312 | criteria = "safe-to-run" 313 | version = "1.5.0" 314 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 315 | 316 | [[audits.google.audits.icu_provider]] 317 | who = "George Burgess IV " 318 | criteria = "safe-to-run" 319 | version = "1.5.0" 320 | notes = """ 321 | This crate contains a custom impl of FxHash. The maintainers needed a custom 322 | hashing function that was `const` and self-contained. Since FxHash isn't built 323 | to be crypto secure, this does-not-implement-crypto. 324 | """ 325 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 326 | 327 | [[audits.google.audits.icu_provider_macros]] 328 | who = "George Burgess IV " 329 | criteria = "safe-to-run" 330 | version = "1.5.0" 331 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 332 | 333 | [[audits.google.audits.idna]] 334 | who = "George Burgess IV " 335 | criteria = "safe-to-run" 336 | delta = "0.3.0 -> 1.0.3" 337 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 338 | 339 | [[audits.google.audits.idna_adapter]] 340 | who = "George Burgess IV " 341 | criteria = "safe-to-run" 342 | version = "1.2.0" 343 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 344 | 345 | [[audits.google.audits.litemap]] 346 | who = "George Burgess IV " 347 | criteria = "safe-to-run" 348 | version = "0.7.4" 349 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 350 | 351 | [[audits.google.audits.log]] 352 | who = "danakj " 353 | criteria = "safe-to-deploy" 354 | version = "0.4.22" 355 | notes = """ 356 | Unsafe review in https://docs.google.com/document/d/1IXQbD1GhTRqNHIGxq6yy7qHqxeO4CwN5noMFXnqyDIM/edit?usp=sharing 357 | 358 | Unsafety is generally very well-documented, with one exception, which we 359 | describe in the review doc. 360 | """ 361 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 362 | 363 | [[audits.google.audits.log]] 364 | who = "Lukasz Anforowicz " 365 | criteria = "safe-to-deploy" 366 | delta = "0.4.22 -> 0.4.25" 367 | notes = "No impact on `unsafe` usage in `lib.rs`." 368 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 369 | 370 | [[audits.google.audits.percent-encoding]] 371 | who = "ChromeOS" 372 | criteria = "safe-to-run" 373 | version = "2.2.0" 374 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 375 | 376 | [[audits.google.audits.percent-encoding]] 377 | who = "George Burgess IV " 378 | criteria = "safe-to-run" 379 | delta = "2.2.0 -> 2.3.0" 380 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 381 | 382 | [[audits.google.audits.pkg-config]] 383 | who = "Justin Green " 384 | criteria = "safe-to-run" 385 | version = "0.3.31" 386 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 387 | 388 | [[audits.google.audits.proc-macro2]] 389 | who = "Ying Hsu " 390 | criteria = "safe-to-run" 391 | version = "1.0.79" 392 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 393 | 394 | [[audits.google.audits.proc-macro2]] 395 | who = "Hung-Hsien Chen " 396 | criteria = "safe-to-run" 397 | delta = "1.0.79 -> 1.0.86" 398 | aggregated-from = "https://chromium.googlesource.com/chromiumos/third_party/rust_crates/+/refs/heads/main/cargo-vet/audits.toml?format=TEXT" 399 | 400 | [[audits.google.audits.proc-macro2]] 401 | who = "danakj " 402 | criteria = "safe-to-deploy" 403 | delta = "1.0.86 -> 1.0.87" 404 | notes = "No new unsafe interactions." 405 | aggregated-from = "https://chromium.googlesource.com/chromium/src/+/main/third_party/rust/chromium_crates_io/supply-chain/audits.toml?format=TEXT" 406 | 407 | [[audits.google.audits.proc-macro2]] 408 | who = "Liza Burakova