Skip to content

Groundwork: move the Tiny 2 Lite builders and decoders to models/tiny2lite - #159

Merged
nofuturekid merged 6 commits into
rebuildfrom
fix/149-groundwork-tiny2lite-modules
Nov 13, 2026
Merged

nofuturekid merged 6 commits into
rebuildfrom
fix/149-groundwork-tiny2lite-modules

Conversation

@nofuturekid

Copy link
Copy Markdown
Collaborator

Fixes #149

Stacked on #157 (the diff on top of that branch is one commit; base stays rebuild).

What changed

  • commands.rs, presets.rs and status.rs move from crates/obsbot-device/src/ to crates/obsbot-device/src/models/tiny2lite/ as pure renames (100% similarity), with their tests.
  • New models/mod.rs (pub mod tiny2lite;) and models/tiny2lite/mod.rs (pub mod commands; pub mod presets; pub mod status;).
  • lib.rs: only the commands/presets/status group changes, to pub mod models; and pub use models::tiny2lite::{commands, presets, status};, so the old paths stay valid until the final path change of the stage.

No byte sent to the camera, no ioctl, no timing and no CLI output changes. No CHANGELOG line (nothing a user can see).

How it was verified

  • Gate: cargo fmt --check, cargo clippy --workspace --all-targets --locked -- -D warnings, shellcheck and actionlint print nothing; cargo test --workspace --locked gives 118, 1 (byte_guard), 25, 2 (cli_surface) and 0 passed tests.
  • G1: scripts/groundwork/test-names.sh for base and head, comm -3 prints nothing (146 test names each).
  • G2/G3: byte_guard and cli_surface pass; byte-guard.txt and cli-surface.txt are not in the diff.
  • G6: scripts/groundwork/move-check.sh <base> HEAD prints exactly the four expected lines (two SPDX headers and the two module doc comments of the new files).
  • G7: git diff -M --stat shows the three files as renames, 14 insertions and 3 deletions in total.
  • MSRV (1.88) is left to the CI job.

🤖 Generated with Claude Code

nofuturekid and others added 4 commits November 13, 2026 11:52
A byte guard records every frame and short command the builders emit for a fixed list of
calls, a CLI guard records the help text of every subcommand, and the release dry run lists
the files of every package. The workspace move must leave all three unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Taken from the package-contents artifact of the release dry run of this pull request: the
files of the deb, rpm, Arch and tarball packages for both architectures.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The library modules move to crates/obsbot-device, models.rs as registry.rs, and the 0.13 CLI
and daemon to crates/obsbot4linux, which keeps the package name, the binary and the package
metadata. Version, rust-version and licence come from [workspace.package]. No behaviour change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
frame.rs and streaming.rs move unchanged; lib.rs keeps their old paths as re-exports until
the final path change of the groundwork stage.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nofuturekid nofuturekid added the enhancement New feature or request label Nov 13, 2026
nofuturekid and others added 2 commits November 13, 2026 12:47
The device, its ioctls and the extension-unit access move to transport/uvc.rs; finding the
camera (by-id links, card name) moves to enumeration.rs with its test. Every block is copied
unchanged. lib.rs keeps the old device path as a re-export until the final path change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
commands.rs, presets.rs and status.rs move unchanged, with their tests; lib.rs keeps their old
paths as re-exports until the final path change of the groundwork stage.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nofuturekid
nofuturekid force-pushed the fix/149-groundwork-tiny2lite-modules branch from 13a907e to 898579c Compare November 13, 2026 11:48
@nofuturekid
nofuturekid merged commit 898579c into rebuild Nov 13, 2026
17 checks passed
@nofuturekid
nofuturekid deleted the fix/149-groundwork-tiny2lite-modules branch November 13, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant