-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
62 lines (48 loc) · 1.57 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[workspace]
members = [ "b2ctl", "config", "xtask"]
[package]
name = "b2"
version = "0.0.1"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
log = "0.4"
anyhow = {version = "1.0.79", default-features = false}
once_cell = {version = "1.19", default-features = false, features = ["alloc"]}
thiserror = {version = "1.0", package = "thiserror-core", default-features = false}
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] }
serde-json-core = "0.5.1"
config = {path = "./config", default-features = false, features = ["no_std"]}
argon2 = {version = "0.5.3", optional = true}
[target.'cfg(target_os = "uefi")'.dependencies]
uefi = {version = "0.26", features = ["alloc","unstable"]}
uefi-services = {version = "0.23", default-features = false, features = []}
[target.'cfg(target_arch = "x86_64")'.dependencies]
x86_64 = "0.14.10"
[features]
default = ["password", "edit"]
# Graphical Interface (TODO)
graphic = []
# Password lock for the bootloader.
#
# Adds ~17.5 KB in release mode.
password = ["argon2"]
# Line editing capability.
# If this is not enabled, inputs can't be navigated or edited in the middle.
edit = []
# Embedded Config.
# Put config in config.default .
# Put config file in src/config.toml .
embedded-config = []
[profile.release]
debug = "full"
[profile.release-compact-analyze]
inherits = "release"
debug = "line-tables-only"
lto = true
opt-level = "z"
codegen-units = 1
panic = "abort"
[profile.release-compact]
inherits = "release-compact-analyze"
strip = true