Skip to content

refactor: move dimos-viewer to dedicated dimos/ directory#7

Merged
spomichter merged 1 commit intomainfrom
refactor/move-dimos-viewer
Mar 4, 2026
Merged

refactor: move dimos-viewer to dedicated dimos/ directory#7
spomichter merged 1 commit intomainfrom
refactor/move-dimos-viewer

Conversation

@spomichter
Copy link

Summary

Move all DimOS-specific code out of examples/rust/custom_callback/ into a top-level dimos/ directory. Restore custom_callback to its upstream Rerun state for easier future merges.

Motivation

Our viewer code was living in what's supposed to be a Rerun example directory. This makes upstream merges messy and is confusing — our main product shouldn't be in examples/.

New structure

dimos/
  Cargo.toml        (dimos-viewer crate)
  pyproject.toml    (maturin packaging config)
  dimos_viewer/     (Python wrapper: __init__.py, __main__.py)
  tests/            (Python tests)
  src/
    viewer.rs       (main binary with CLI args + LCM click handler)
    lib.rs          (library root)
    interaction/    (LCM transport: publisher, protocol, handle)

What changed

Area Change
dimos/ New crate with all viewer + LCM code
examples/rust/custom_callback/ Restored to upstream Rerun state
Cargo.toml (workspace) Added dimos to members
CI workflow PACKAGE_DIRdimos, cargo commands target dimos-viewer

Testing

  • cargo check -p dimos-viewer
  • cargo test -p dimos-viewer ✅ (13 tests pass)
  • cargo check -p custom_callback ✅ (upstream intact)
  • dimos-viewer --help shows correct CLI args ✅

Move all DimOS-specific code out of examples/rust/custom_callback/ into
a top-level dimos/ directory. Restore custom_callback to its upstream
Rerun state for easier future merges.

Directory structure:
  dimos/
    Cargo.toml        (dimos-viewer crate)
    pyproject.toml    (maturin packaging)
    dimos_viewer/     (Python wrapper)
    tests/            (Python tests)
    src/
      viewer.rs       (main binary with CLI args)
      lib.rs
      interaction/    (LCM transport module)

Changes:
- Created dimos/ crate with all viewer + LCM code
- Restored examples/rust/custom_callback/ to upstream Rerun state
- Updated CI workflow to reference dimos/ instead of custom_callback
- Added dimos/ to workspace members
- Both crates compile and test independently

Verified:
- cargo check -p dimos-viewer ✓
- cargo test -p dimos-viewer ✓ (13 tests pass)
- cargo check -p custom_callback ✓ (upstream intact)
- dimos-viewer --help shows correct CLI args
@spomichter spomichter merged commit 2757b93 into main Mar 4, 2026
28 of 37 checks passed
@spomichter spomichter deleted the refactor/move-dimos-viewer branch March 4, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant