diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-02-25 01:18:10 -0600 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-02-25 10:59:35 -0600 |
commit | 178cb5bb0755064a0824b1b3d564260db412ea92 (patch) | |
tree | c9917506abe9d2b9910f01a383b9320513a69c53 /kernel/Cargo.toml | |
parent | c8de43bf43242c4ebac3d0ecb8e7951fe2371506 (diff) |
[console] Adds the start of a console subsystem to handle kernel logs.
The idea is that this is an output-only facility that log messages from
the log crate are written to. It has a small buffer, and relies on a log
destination regularly reading from the buffer.
In the next commit, platform-specific code will be able to provide a
"strict flush" routine, which runs after every write to the buffer and
drains the buffer. This is mainly to help kernel development, where it's
not assured that the kernel will even get as far in boot as initializing
its allocator.
Eventually, there will be a console fd that userspace can request, wait
on, and read from.
Diffstat (limited to 'kernel/Cargo.toml')
-rw-r--r-- | kernel/Cargo.toml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/Cargo.toml b/kernel/Cargo.toml index cef382e..d6449e8 100644 --- a/kernel/Cargo.toml +++ b/kernel/Cargo.toml @@ -7,6 +7,12 @@ edition = "2021" crate-type = ["staticlib"] [dependencies] +contracts = { version = "0.6.3", default-features = false } +log = { version = "0.4.20", default-features = false } +spin = { version = "0.9.8", default-features = false, features = ["mutex", "use_ticket_mutex"] } [profile.release] +codegen-units = 1 debug = true +lto = true +overflow-checks = true |