dcm-dump

Crates.iodcm-dump
lib.rsdcm-dump
version0.1.1
created_at2025-10-03 01:43:44.449589+00
updated_at2025-10-05 21:23:32.26898+00
descriptionA minimal Rust crate + CLI to dump DICOM tags byte-by-byte
homepage
repositoryhttps://github.com/angsot3/dcm-dump
max_upload_size
id1865838
size12,088
(angsot3)

documentation

README

dcm-dump

dcm-dump is a minimal Rust toolkit for inspecting DICOM files without any external dependencies.

Current capabilities:

  • read the 128-byte preamble and four-byte DICM prefix
  • detect the transfer syntax UID from the File Meta Information group

Near-term goals:

  • parse individual data elements (starting with Explicit VR Little Endian)
  • validate common tags against the DICOM dictionary
  • surface human-readable previews for textual values and concise hex dumps for binary payloads
  • flag malformed elements (unexpected lengths, missing delimiters, etc.)

Longer-term stretch ideas:

  • graceful handling of sequences and undefined-length items
  • configurable output formats (plain text, JSON, or CSV summaries)
  • optional heuristics to spot anonymisation issues or missing required attributes

This crate is intended both as a simple CLI and as a reusable library module, so everything is kept dependency-free and straightforward to read.

Commit count: 0

cargo fmt