Built with stubsRustdomainserver

Tiny OS

bricks/rust/tiny-os · module tiny-os

A minimal operating system kernel providing process scheduling, memory management, and basic I/O.

Brick

  • src/

  • src/domain/

  • src/

  • tests/brickcheck/

  • tests/

Cargo.lock
1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "tiny-os"
7version = "0.1.0"
8

Memory lab

Runs this brick's own tests in a release build with a counting allocator. Every operation call is measured: allocations, bytes, peak heap and time. Each body is scanned for the lines that allocate, and clippy points out avoidable copies.

Requirements

  • !

    REQ-1System can list all apps (processes)

    … [REQ-1] System can list all apps (processes) #1 · operateWithApps was not implemented within budget.

  • !

    REQ-2System can list all hardware devices

    … [REQ-2] System can list all hardware devices #1 · operateWithHardware was not implemented within budget.

  • ✓

    GATE-PORTABLESelf-contained: standard library only, no build script, rustfmt-clean

    cargo check --offline + rustfmt --check

  • ✓

    GATE-CONTRACTVendored Rust contract matches the host contract (R8)

    regenerated contract comparison

  • ✓

    GATE-TYPESCompiles, borrow-checked, with no unsafe

    cargo check --tests

  • ✓

    GATE-TESTSShips its own tests and they pass (R12)

    27 passing

  • ✓

    GATE-LIFECYCLE-PROCESSProcess.status only changes through declared transitions

    17 generated lifecycle tests

  • ✓

    GATE-LIFECYCLE-HARDWAREDEVICEHardwareDevice.status only changes through declared transitions

    10 generated lifecycle tests

Built 28/10/2026, 10:41:05 by Ada Lovelace · 27 tests passing · operations by openrouter