chore: fix clippy warnings and update docs to match public API
Some checks failed
CI / rust (push) Has been cancelled
Some checks failed
CI / rust (push) Has been cancelled
Fix 9 clippy warnings across mmc5 mapper and desktop frontend. Sync api_contract.md and architecture.md with actual public surface.
This commit is contained in:
@@ -35,8 +35,13 @@ The main public API is organized around these groups:
|
||||
- `CpuBus`
|
||||
- `CpuError`
|
||||
- `NativeBus`
|
||||
- `Ppu`
|
||||
- `Apu`
|
||||
- `ApuStateTail`
|
||||
- `ChannelOutputs`
|
||||
- High-level runtime:
|
||||
- `NesRuntime`
|
||||
- `RuntimeError`
|
||||
- Host execution and lifecycle:
|
||||
- `RuntimeHostLoop`
|
||||
- `ClientRuntime`
|
||||
@@ -46,12 +51,23 @@ The main public API is organized around these groups:
|
||||
- `InputProvider`
|
||||
- `VideoOutput`
|
||||
- `AudioOutput`
|
||||
- Null/stub implementations:
|
||||
- `NullInput`
|
||||
- `NullVideo`
|
||||
- `NullAudio`
|
||||
- Audio helpers:
|
||||
- `AudioMixer`
|
||||
- `RingBuffer`
|
||||
- Timing and pacing:
|
||||
- `FrameClock`
|
||||
- `FramePacer`
|
||||
- `PacingClock`
|
||||
- `NoopClock`
|
||||
- `VideoMode`
|
||||
- Video constants:
|
||||
- `FRAME_WIDTH`
|
||||
- `FRAME_HEIGHT`
|
||||
- `FRAME_RGBA_BYTES`
|
||||
- Input helpers:
|
||||
- `JoypadButton`
|
||||
- `JoypadButtons`
|
||||
@@ -59,6 +75,8 @@ The main public API is organized around these groups:
|
||||
- `JOYPAD_BUTTONS_COUNT`
|
||||
- `set_button_pressed`
|
||||
- `button_pressed`
|
||||
- State versioning:
|
||||
- `SAVE_STATE_VERSION`
|
||||
|
||||
## Supported Client Flow
|
||||
|
||||
|
||||
@@ -41,6 +41,10 @@ The workspace is split into four layers:
|
||||
- `src/runtime/audio.rs`: interim PCM synthesis from core state
|
||||
- `src/runtime/timing.rs`: frame pacing types and video timing
|
||||
- `src/runtime/types.rs`: public joypad-related types and helpers
|
||||
- `src/runtime/constants.rs`: frame dimensions and video constants
|
||||
- `src/runtime/error.rs`: `RuntimeError` type definitions
|
||||
- `src/runtime/ring_buffer.rs`: lock-free ring buffer for audio sample transport
|
||||
- `src/runtime/adapters.rs`: adapter bridge types (behind `adapter-api` feature)
|
||||
- `src/runtime/host/io.rs`: host IO traits and null implementations
|
||||
- `src/runtime/host/executor.rs`: per-frame execution unit
|
||||
- `src/runtime/host/clock.rs`: clock abstraction and pacing implementations
|
||||
|
||||
Reference in New Issue
Block a user