iqos_cli
iqos_cli copied to clipboard
chore: update to iqos crate v1.1.0
Background
iqos crate released v1.1.0 on 2026-04-21. Three PRs were merged:
- PR #1 —
feat: add Auto Start read support— addsread_autostart(model) - PR #2 —
feat: add device status read— addsread_device_status(model, device_info)+DeviceStatustype; updates capability matrix (SmartGesture / AutoStart now route throughsupports_holder_features()) - PR #4 —
Add charge start vibration capability— addsDeviceCapability::ChargeStartVibration; breaking:set_flexpuffandread_flexpuffnow require an explicitmodel: DeviceModelparameter
Tasks
Mandatory (breaking change — won't compile on 1.1.0)
- [ ] Bump
iqosdependency to1.1.0inCargo.toml - [ ] Fix
flexpuff.rs: updateset_flexpuffandread_flexpuffcalls to passmodeliqos.set_flexpuff(FlexPuffSetting::new(true))→iqos.set_flexpuff(model, FlexPuffSetting::new(true))iqos.read_flexpuff()→iqos.read_flexpuff(model)
New features
- [ ]
autostart statussubcommand: useread_autostart(model) -> Result<bool>to print current state - [ ] Device status command: expose
read_device_status(model, device_info) -> Result<DeviceStatus>— aggregates stick firmware version, optional holder firmware version, optional battery voltage. Considerdevice-statussubcommand or folding intoinfo.
Capability matrix review
- [ ] Review
compat.rsagainst updated crate matrix: PR #2 changedSmartGestureandAutoStartto route throughsupports_holder_features()={Iluma, IlumaPrime, IlumaI, IlumaIPrime}. Oursupports_smartgesture()currently usesis_iluma_i_family()={IlumaIOne, IlumaI, IlumaIPrime}. Determine whether the crate matrix is now correct and whether compat.rs overrides are still necessary. - [ ]
ChargeStartVibrationin compat.rs:supports_charge_start_vibration()is now in the crate (routes throughsupports_holder_features()). Evaluate whethercompat.rsneeds a corresponding gate, or whether the crate'sread_vibration_settings/update_vibration_settingsalready handle it internally.
Acceptance Criteria
cargo checkpasses withiqos = "1.1.0"cargo clippy -- -D warningscleanautostart statusprints current state orError::Unsupportedmessage for unsupported modelscompat.rsis consistent with the 1.1.0 capability matrix, with inline justification for any deliberate divergence