diff --git a/Cargo.toml b/Cargo.toml index b25edde242..c71210140b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -118,3 +118,16 @@ panic = "abort" panic = "abort" #lto = true debug = "full" + +# Red Bear OS Phase J: see local/sources/base/Cargo.toml for +# the rationale. Both the kernel and the base workspace need +# the libredox override so that the libredox::error::Error +# type is the same compile-time type as syscall::Error. With +# the local libredox fork at local/sources/libredox/ using +# the local syscall fork at local/sources/syscall/, the +# libredox::error::Error (re-exported from the local syscall) +# and syscall::Error (also the local syscall) are now the +# same type, so `?` conversions in scheme-utils / daemon +# compile cleanly. +[patch.crates-io] +libredox = { path = "../libredox" }