oxide-sloc

Nima Shafie·NimaShafie.OxideSLOC

Rust-based SLOC analysis and unit test metrics workbench

oxide-sloc is a code metrics workbench that performs SLOC (Source Lines of Code) analysis and unit test detection across 41 programming languages. It provides a CLI, a localhost web UI, rich HTML reports, and PDF export. Features include language breakdown, IEEE 1045-1992 counting standards, git webhook integration, and test/production code separation.

winget install --id NimaShafie.OxideSLOC --exact --source winget

Latest 1.6.20·September 8, 2026

Release Notes

Download

Platform File Notes
Linux x86-64 oxide-sloc-linux-x86_64 Static binary (musl) — works on any x86-64 Linux
Linux arm64 oxide-sloc-linux-arm64 Requires glibc ≥ 2.17 (Raspberry Pi 4, AWS Graviton, Ampere, etc.)
Windows x86-64 oxide-sloc-windows-x86_64.exe Windows 10/11
macOS x86-64 oxide-sloc-macos-x86_64 Intel Mac
macOS Apple Silicon oxide-sloc-macos-arm64 M1/M2/M3/M4 Mac
Vendor archive vendor.tar.gz.aa + .ab + .ac + vendor.checksums.sha256 Rust dependency sources (split gzip parts) for air-gapped builds

Checksums for all release assets are in SHA256SUMS.txt. GPG detached signatures (.sig), Sigstore cosign bundles (.bundle), and SLSA provenance attestations (.sigstore.json) are included for each binary. The GPG public key used for signing is oxide-sloc-signing-key.asc.

Quick install

# Linux x86-64
curl -Lo oxide-sloc https://github.com/oxide-sloc/oxide-sloc/releases/download/v1.6.20/oxide-sloc-linux-x86_64
chmod +x oxide-sloc && sudo mv oxide-sloc /usr/local/bin/

# Linux arm64
curl -Lo oxide-sloc https://github.com/oxide-sloc/oxide-sloc/releases/download/v1.6.20/oxide-sloc-linux-arm64
chmod +x oxide-sloc && sudo mv oxide-sloc /usr/local/bin/

# macOS (Apple Silicon)
curl -Lo oxide-sloc https://github.com/oxide-sloc/oxide-sloc/releases/download/v1.6.20/oxide-sloc-macos-arm64
chmod +x oxide-sloc && sudo mv oxide-sloc /usr/local/bin/

# macOS (Intel)
curl -Lo oxide-sloc https://github.com/oxide-sloc/oxide-sloc/releases/download/v1.6.20/oxide-sloc-macos-x86_64
chmod +x oxide-sloc && sudo mv oxide-sloc /usr/local/bin/

# Windows — rename and add to PATH
ren oxide-sloc-windows-x86_64.exe oxide-sloc.exe

# Verify checksum (Linux / macOS)
sha256sum --check SHA256SUMS.txt

# Verify GPG signature (Linux / macOS)
gpg --import oxide-sloc-signing-key.asc
gpg --verify oxide-sloc-linux-x86_64.sig oxide-sloc-linux-x86_64

# Verify cosign bundle (keyless — requires cosign installed).
# The identity flags pin the signature to this repo's release workflow.
cosign verify-blob \
  --bundle oxide-sloc-linux-x86_64.bundle \
  --certificate-identity-regexp '^https://github.com/oxide-sloc/oxide-sloc/\.github/workflows/release\.yml@refs/tags/v' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  oxide-sloc-linux-x86_64

Air-gapped build

# Download source + vendor archive from this release, then on the air-gapped machine:
bash scripts/internal/airgap-build.sh

Or build from source (requires Rust 1.98+)

cargo install --git https://github.com/oxide-sloc/oxide-sloc oxide-sloc

What's Changed

• chore:update dist Windows binaries (v1.6.19) by @oxide-sloc-toolchain-bot[bot] in https://github.com/oxide-sloc/oxide-sloc/pull/127 • chore:update dist Linux binary (v1.6.19) by @oxide-sloc-toolchain-bot[bot] in https://github.com/oxide-sloc/oxide-sloc/pull/128 • chore(deps):bump github/codeql-action/init from 4.37.7 to 4.37.9 by @dependabot[bot] in https://github.com/oxide-sloc/oxide-sloc/pull/132 • chore(deps):bump github/codeql-action/upload-sarif from 4.37.7 to 4.37.9 by @dependabot[bot] in https://github.com/oxide-sloc/oxide-sloc/pull/131 • chore(deps):bump github/codeql-action/analyze from 4.37.7 to 4.37.9 by @dependabot[bot] in https://github.com/oxide-sloc/oxide-sloc/pull/130 • chore(deps):bump uuid from 1.24.1 to 1.25.0 by @dependabot[bot] in https://github.com/oxide-sloc/oxide-sloc/pull/129 • chore(deps):bump actions/deploy-pages from 5.0.0 to 5.0.1 by @dependabot[bot] in https://github.com/oxide-sloc/oxide-sloc/pull/134 • chore(deps):bump softprops/action-gh-release from 3.0.2 to 3.0.3 by @dependabot[bot] in https://github.com/oxide-sloc/oxide-sloc/pull/135 • chore(deps):bump tree-sitter from 0.26.13 to 0.27.0 by @dependabot[bot] in https://github.com/oxide-sloc/oxide-sloc/pull/133

Full Changelog:https://github.com/oxide-sloc/oxide-sloc/compare/v1.6.19...v1.6.20

Installer type: zip

x64—C1D6096DF17B6A3D84A191D9FE60EF960C0C9DFE15BE14AC543E6CC0B81D8836

Details

Homepage
https://github.com/oxide-sloc/oxide-sloc
License
AGPL-3.0
Publisher
Nima Shafie
Support
https://github.com/oxide-sloc/oxide-sloc/issues
Moniker
oxide-sloc

Tags

clicode-analysisdeveloper-toolsmetricsrustslocsource-lines-of-code

Older versions (8)

1.6.19
x64—9DA86B044375694D7A2FD2B4D7C3147EA35BE8AD0290CB624C8CF980FDA446A3
1.6.18
x64—DAB5B02EB7056A777BCB6D43ECB8E41F7F3DE8DA0F3EA5BD77A13ECC5C47133F
1.6.17
x64—690CE94E58F9C9E672D3AEFAF7ECA86E2DD3E06AFEABDA74837EA03C1913EFA8
1.6.16
x64—44B8B2B02646A13022667E77B28E56D5D9A1CEEFE403BD8DC559DA13EF205718
1.5.70
x64—DFD8A47A866A729249DEFA95F49A60FDF769E0A2965C025F1E734A664842D000
1.5.68
x64—80BCD95C76CF733031B8F2A996B83743A24B16B6299341D408F4C54A80AD4F3B
1.5.66
x64—18588D4797C70099DF9DB80C123886BB38523F4532586E548024EE3C034EA04D
1.5.6
x64—316E3B22059FBE47409065268A7B8A4F313C0CD945DBAE87864AB9EDB014F107