Files
stambha/crates/stela-boot/Cargo.toml
T

76 lines
3.0 KiB
TOML

[package]
name = "stela-boot"
version = "0.1.0"
edition = "2024"
license = "MIT AND GPL-2.0-only"
publish = false
[[bin]]
name = "stela"
path = "src/main.rs"
# Inline tests run through xtask's hosted modules; this freestanding entry
# supplies its own allocator and panic handler, not a libtest executable.
test = false
# A workspace of its own: the binary builds only for x86_64-unknown-uefi
# (no_std, no_main, its own allocator and panic handler), which a root
# member would be built and linked for the host by `cargo build/test
# --workspace`, and it aborts on panic in every profile, which a root
# profile would impose on every host crate. Cargo's per-package
# `forced-target` would allow membership once stable. Until then the
# edition, lints and release profile below repeat the root's
# `[workspace.package]`, `[workspace.lints]` and `[profile.release]`;
# change both together. Its firmware-independent logic lives in the root
# member `stela-boot-core`, tested there.
[workspace]
[features]
default = []
diagnostics = []
native-profile = ["stela-runtime/native-profile", "stela-engine/native-profile"]
[dependencies]
stela-soc-data = { path = "../stela-soc-data", default-features = false }
stela-engine = { path = "../stela-engine", default-features = false }
stela-contracts = { path = "../stela-contracts", default-features = false }
stela-crypto = { path = "../stela-crypto" }
stela-tls = { path = "../stela-tls" }
stela-formats = { path = "../stela-formats", default-features = false }
uefi = { version = "0.41", default-features = false, features = ["alloc"] }
stela-boot-core = { path = "../stela-boot-core" }
stela-drivers = { path = "../stela-drivers", features = ["linux-kernel", "native-acpi"] }
stela-runtime = { path = "../stela-runtime", default-features = false }
stela-loader = { path = "../stela-loader", default-features = false }
stela-compiler = { path = "../stela-compiler", default-features = false }
serde_json = { version = "1", default-features = false, features = ["alloc"] }
# The soft-float UEFI target cannot codegen the optional hardware intrinsics in the local
# LLVM toolchain. Use the crate's real baseline SHA implementation.
sha2 = { version = "0.10", default-features = false, features = ["force-soft"] }
# LLVM cannot codegen the SHA-1 x86 intrinsics for the soft-float UEFI
# target. Unify this existing transitive dependency on its real software
# backend only for the boot target; hosted runtime keeps its normal selection.
[target.'cfg(target_os = "uefi")'.dependencies]
sha1 = { version = "0.10", default-features = false, features = ["force-soft"] }
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"
codegen-units = 1
lto = "thin"
# Line tables go to the separate PDB, so profiles of a boot can name the
# engine's functions; the image itself is unchanged.
debug = "line-tables-only"
[lints.rust]
unsafe_op_in_unsafe_fn = "deny"
[lints.clippy]
all = "warn"
[patch.crates-io]
# Same dependency source as the root workspace; no second network stack.
smoltcp = { path = "../../third_party/smoltcp" }