[workspace]
resolver = "2"
exclude = [
    "boot/yboot",
    "boot/yboot-proto",
    "tool/abi-generator",
    "toolchain",
    "userspace/dynload-program",
    "userspace/lib/ygglibc"
]
members = [
    "xtask",
    "kernel/tools/gentables",
    "kernel",
    "lib/abi",
    "lib/libyalloc",
    "lib/runtime",
    "lib/qemu"
]

[workspace.dependencies]
log = "0.4.22"
atomic_enum = "0.3.0"
bitflags = "2.6.0"
static_assertions = "1.1.0"
tock-registers = "0.9.0"
bytemuck = { version = "1.19.0", features = ["derive"] }
futures-util = { version = "0.3.31", default-features = false, features = ["alloc", "async-await"] }
crossbeam-queue = { version = "0.3.11", default-features = false, features = ["alloc"] }
async-trait = "0.1.83"
cfg-if = "1.0.0"
serde_json = { version = "1.0.132", default-features = false, features = ["alloc"] }
serde = { version = "1.0.214", features = ["derive"], default-features = false }
memoffset = "0.9.1"
ahash = { version = "0.8.11", default-features = false, features = ["no-rng"] }

# acpi
acpi = { git = "https://github.com/alnyan/acpi.git", package = "acpi", branch = "acpi-system" }
aml = { git = "https://github.com/alnyan/acpi.git", branch = "acpi-system" }
acpi-system = { git = "https://github.com/alnyan/acpi-system.git" }

# yboot
yboot-proto.path = "boot/yboot-proto"

# Local libs
abi-lib.path = "lib/abi-lib"
yggdrasil-abi.path = "lib/abi"
abi-generator.path = "tool/abi-generator"

# Kernel parts
kernel-arch-interface.path = "kernel/arch/interface"
kernel-arch-aarch64.path = "kernel/arch/aarch64"
kernel-arch-x86_64.path = "kernel/arch/x86_64"
kernel-arch-i686.path = "kernel/arch/i686"
kernel-arch-x86.path = "kernel/arch/x86"
kernel-arch.path = "kernel/arch"
device-api.path = "kernel/lib/device-api"
libk.path = "kernel/libk"
libk-util.path = "kernel/libk/libk-util"
libk-mm.path = "kernel/libk/libk-mm"
libk-mm-interface.path = "kernel/libk/libk-mm/interface"
libk-device.path = "kernel/libk/libk-device"
memtables.path = "kernel/lib/memtables"
vmalloc.path = "kernel/lib/vmalloc"
device-api-macros.path = "kernel/lib/device-api/macros"
device-tree.path = "kernel/lib/device-tree"

# AArch64
fdt-rs = { version = "0.4.5", default-features = false }
aarch64-cpu = "10.0.0"

discrete_range_map = { git = "https://git.alnyan.me/yggdrasil/discrete_range_map.git" }

[workspace.dependencies.elf]
version = "0.7.2"
git = "https://git.alnyan.me/yggdrasil/yggdrasil-elf.git"
default-features = false
features = ["no_std_stream"]

[workspace.lints.rust]
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(rust_analyzer)'] }
[workspace.lints.clippy]
derivable_impls = { level = "allow" }