sloc-web 1.2.2

Source line analysis tool with CLI, web UI, HTML/PDF reports, and CI/CD integration
docs.rs failed to build sloc-web-1.2.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: sloc-web-1.5.3

sloc-web

Axum web server and UI for oxide-sloc.

Overview

This crate runs the localhost web UI:

  • serve(config) -> Result<()> — starts an Axum HTTP/HTTPS server (default port 4317)
  • Routes: GET /, POST /analyze, GET /preview, GET /pick-directory, GET /runs/:id/:artifact, GET /view-reports, GET /compare-scans, GET /embed/summary, GET /healthz
  • Security: IP sliding-window rate limiter (60 req/60 s), optional bearer-token auth (SLOC_API_KEY), optional TLS (SLOC_TLS_CERT / SLOC_TLS_KEY), CORS, security headers
  • Native file picker via rfd — works on Windows and Linux
  • Artifacts persisted to disk with UUID-based run IDs

Usage

This is an internal crate used by the oxide-sloc workspace. It is not intended for use outside this project. See the main project for documentation and releases.

# Install the tool instead:
cargo install oxide-sloc