Skip to content

Refactor: Extract status module into toride-status crate - #2

Merged
hmziqrs merged 1 commit into
masterfrom
refactor/status-crate
May 31, 2026
Merged

Refactor: Extract status module into toride-status crate#2
hmziqrs merged 1 commit into
masterfrom
refactor/status-crate

Conversation

@hmziqrs

@hmziqrs hmziqrs commented May 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

Extracts the status module from crates/toride/src/status/ into its own crate crates/toride-status/, matching the toride-ssh pattern.

Changes

  • Created crates/toride-status/ with its own Cargo.toml and 14 feature flags
  • Moved all status modules (system, collector, doctor, capabilities, presets, privacy, provider, units, error, daemon, ssh)
  • Re-exported as toride::status via pub use toride_status in toride's lib.rs
  • Updated all internal imports from crate::status:: to crate::
  • Updated doctests and examples to use toride_status

Tests

  • 519 unit tests pass
  • 72 doctests pass
  • 0 clippy warnings

Feature flags

All 14 feature flags moved to toride-status:
linux-procfs, linux-sensors, linux-udev, linux-rtnetlink, linux-cgroups, os-info, cpu-cpuid, hardware-dmi, hardware-pci, hardware-topology, gpu-nvidia, battery, commands

Move status module from crates/toride/src/status/ to crates/toride-status/
as a standalone crate, matching the toride-ssh pattern.

- Create crates/toride-status/ with its own Cargo.toml and feature flags
- Re-export as toride::status via pub use toride_status in toride lib.rs
- Update all internal imports from crate::status:: to crate::
- Update doctests and examples to use toride_status
- 519 unit tests + 72 doctests pass
@hmziqrs
hmziqrs merged commit dc77e4c into master May 31, 2026
0 of 10 checks passed
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