Skip to content

Commit 85b6b0f

Browse files
committed
Use package version for dependencies in build.rs
1 parent 95d046a commit 85b6b0f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: build.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ use std::{
33
process::Command,
44
};
55

6-
const BOOTLOADER_X86_64_UEFI_VERSION: &str = "0.11.0-beta";
6+
const BOOTLOADER_X86_64_UEFI_VERSION: &str = env!("CARGO_PKG_VERSION");
77

8-
const BOOTLOADER_X86_64_BIOS_BOOT_SECTOR_VERSION: &str = "0.1.0-beta.1";
9-
const BOOTLOADER_X86_64_BIOS_STAGE_2_VERSION: &str = "0.1.0-beta";
10-
const BOOTLOADER_X86_64_BIOS_STAGE_3_VERSION: &str = "0.1.0-beta";
11-
const BOOTLOADER_X86_64_BIOS_STAGE_4_VERSION: &str = "0.11.0-beta";
8+
const BOOTLOADER_X86_64_BIOS_BOOT_SECTOR_VERSION: &str = env!("CARGO_PKG_VERSION");
9+
const BOOTLOADER_X86_64_BIOS_STAGE_2_VERSION: &str = env!("CARGO_PKG_VERSION");
10+
const BOOTLOADER_X86_64_BIOS_STAGE_3_VERSION: &str = env!("CARGO_PKG_VERSION");
11+
const BOOTLOADER_X86_64_BIOS_STAGE_4_VERSION: &str = env!("CARGO_PKG_VERSION");
1212

1313
fn main() {
1414
let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap());

0 commit comments

Comments
 (0)