Skip to content

Commit c920a5a

Browse files
committed
Duplicate profile in sub-crate for publishing
1 parent 852320f commit c920a5a

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ lto = false
5858
debug = true
5959
overflow-checks = true
6060

61+
# duplicated from `bios/boot_sector/Cargo.toml`
6162
[profile.stage-1]
6263
inherits = "release"
6364
opt-level = "s"

bios/boot_sector/Cargo.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bootloader-x86_64-bios-boot-sector"
3-
version = "0.1.0-beta"
3+
version = "0.1.0-beta.1"
44
authors = ["Philipp Oppermann <dev@phil-opp.com>"]
55
edition = "2021"
66
license.workspace = true
@@ -10,3 +10,13 @@ description = "BIOS boot sector for the `bootloader` crate"
1010
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1111

1212
[dependencies]
13+
14+
# This currently causes a cargo warning, but it is required for publishing to crates.io.
15+
# See https://github.com/rust-lang/cargo/issues/8264 for details.
16+
[profile.stage-1]
17+
inherits = "release"
18+
opt-level = "s"
19+
lto = true
20+
codegen-units = 1
21+
debug = false
22+
overflow-checks = false

0 commit comments

Comments
 (0)