Skip to content

Commit 2572926

Browse files
committed
Duplicate profile sections in BIOS sub-crate for publishing
1 parent c09aca8 commit 2572926

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,21 @@ codegen-units = 1
6767
debug = false
6868
overflow-checks = false
6969

70+
# duplicated from `bios/stage-2/Cargo.toml`
7071
[profile.stage-2]
7172
inherits = "release"
7273
opt-level = "s"
7374
codegen-units = 1
7475
debug = false
7576
overflow-checks = true
7677

78+
# duplicated from `bios/stage-3/Cargo.toml`
7779
[profile.stage-3]
7880
inherits = "release"
7981
debug = true
8082
overflow-checks = true
8183

84+
# duplicated from `bios/stage-4/Cargo.toml`
8285
[profile.stage-4]
8386
inherits = "release"
8487
debug = true

bios/stage-2/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,12 @@ description = "Second BIOS stage of the `bootloader` crate"
1313
mbr-nostd = "0.1.0"
1414
byteorder = { version = "1.4.3", default-features = false }
1515
bootloader-x86_64-bios-common = { version = "0.1.0-beta", path = "../common" }
16+
17+
# This currently causes a cargo warning, but it is required for publishing to crates.io.
18+
# See https://github.com/rust-lang/cargo/issues/8264 for details.
19+
[profile.stage-2]
20+
inherits = "release"
21+
opt-level = "s"
22+
codegen-units = 1
23+
debug = false
24+
overflow-checks = true

bios/stage-3/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ description = "Third BIOS stage of the `bootloader` crate"
1212
[dependencies]
1313
bootloader-x86_64-bios-common = { version = "0.1.0-beta", path = "../common" }
1414
noto-sans-mono-bitmap = "0.1.5"
15+
16+
# This currently causes a cargo warning, but it is required for publishing to crates.io.
17+
# See https://github.com/rust-lang/cargo/issues/8264 for details.
18+
[profile.stage-3]
19+
inherits = "release"
20+
debug = true
21+
overflow-checks = true

bios/stage-4/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@ log = "0.4.14"
1616
x86_64 = "0.14.8"
1717
rsdp = "2.0.0"
1818
usize_conversions = "0.2.0"
19+
20+
# This currently causes a cargo warning, but it is required for publishing to crates.io.
21+
# See https://github.com/rust-lang/cargo/issues/8264 for details.
22+
[profile.stage-4]
23+
inherits = "release"
24+
debug = true
25+
overflow-checks = true

0 commit comments

Comments
 (0)