mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
Rust kernel expansion: - rust/src/compress/mod.rs (new): memory-safe PackBits-style run-length encoding codec (rle_compress / rle_decompress) with C-ABI shims, registered in lib.rs. C fallbacks added to rust_fallback.c so aarch64/armv8i match. - include/kernel/rust.h: FFI declarations for the codec. - LazyBox: new `rle <text>` applet that compresses, decompresses, prints the ratio and verifies the round-trip is lossless. GUI expansion: - gui/gui_apps.c: "Rust Lab" app -- a live dashboard for the Rust subsystem. Shows CRC-32C/Adler-32 of a sample, measured ChaCha20/SHA3-256/AES-128 throughput as scaled bars plus a composite score (benchmark run once at launch and cached), and a live ChaCha20 CSPRNG byte stream refreshed periodically. Per-window state freed on close. - Registered "Rust Lab" (info icon) in the desktop app table and on the desktop; desktop icon indices updated for the new entry. Verified: clean build on x86_64/aarch64/armv8i; boots through the SUB login to the desktop with the new Rust Lab icon rendering (screenshotted); checksum self-test prints, 0 panics / 0 OOM. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01Fh5z6V7nGPbHvqVG5p4CXX
16 lines
507 B
C
16 lines
507 B
C
#ifndef _GUI_APPS_H
|
|
#define _GUI_APPS_H
|
|
|
|
#include <gui/gui_wm.h>
|
|
#include <gui/gui_terminal.h>
|
|
|
|
void gui_app_sysmon_launch(int x, int y, int w, int h);
|
|
void gui_app_fileman_launch(int x, int y, int w, int h);
|
|
void gui_app_calc_launch(int x, int y, int w, int h);
|
|
void gui_app_paint_launch(int x, int y, int w, int h);
|
|
void gui_app_about_launch(int x, int y, int w, int h);
|
|
void gui_app_life_launch(int x, int y, int w, int h);
|
|
void gui_app_rustlab_launch(int x, int y, int w, int h);
|
|
|
|
#endif // _GUI_APPS_H
|