Files
FoundryOS/libk
zxq5 d9bbdff08c - added a new libary libm containing procedural macros for the kernel.
these should be used to include external files and resources in the kernel binary
  at compile time.
  - libm currently supports loading psf-1 formatted fonts
- added two fonts that are included in the binary at compile time
- refactored libk to make the crate structure more organised and maintainable in future.
  new structure:
    - drivers   (hardware interaction)
    - resources (consts and statics included either manually or via macros)
    - std       (standard functions for higher level interaction with the os, for example creating windows)
- added geometry.rs
  - provides the Vec2<T> struct for use with dimensions, coordinates etc.
- added window.rs
  - provides the Window struct for rendering the state of an application to the screen
- added application.rs
  - provides the Application trait for custom programs to implement in order to run
2025-02-24 03:26:49 +00:00
..

libk is for the code that did not make the kernel*

*crate, lol.

libk is an attempt to move away from the godforsaken git submodules that plagued our forefathers. Now we have a crate containing a bunch of code that didn't quite make the core kernel crate, which should be:

  • simpler to maintain
  • has a catchier name
  • less fighting with Cargo.toml manifests

TODO:

A lot of things must be improved and worked on, feel free to add extra TODOs below.

[] Create a kernel logging abstraction similar to Linux. (this should probably just use the serial drivers)

The rationale behind this is that we want some sort of debug log/tracing support so we aren't just printf debugging forever.

Authors

Again, write your name below if you like:

  • @zxq5 (wrote most of the libraries as of 23/02/25)
  • @nullndvoid (made this lushious library crate)