Skip to content

Commit ee9f7a4

Browse files
committed
uefi-services: prepare v0.26.0 release to accelerate migration/deprecation
Apparently, still a lot of people are using uefi-services, probably mostly due to auto-upgrades. This seems to cause upgrades when people keep upgrading `uefi` while still using an outdated version of `uefi-services`. This update will cause everyone using auto-updates to either rethink to pin their crate versions or to finally migrate.
1 parent 7283021 commit ee9f7a4

File tree

7 files changed

+42
-0
lines changed

7 files changed

+42
-0
lines changed

Cargo.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ members = [
55
"uefi",
66
"uefi-macros",
77
"uefi-raw",
8+
"uefi-services",
89
"uefi-std-example",
910
"uefi-test-runner",
1011
"xtask",
@@ -29,6 +30,7 @@ uguid = "2.2.1"
2930
uefi = { path = "uefi" }
3031
uefi-macros = { path = "uefi-macros" }
3132
uefi-raw = { path = "uefi-raw" }
33+
uefi-services = { path = "uefi-services" }
3234

3335
# Enable optimization for xtask itself, not for its dependencies. This speeds up
3436
# OVMF prebuilt decompression without much increase in compilation time.

uefi-services/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# uefi-services - 0.26 (2025-06-23)
2+
3+
## Changed
4+
- The deprecation warning was replaced with a `compile_error!` call to alert
5+
users to upgrade. `v0.25.0` can cause problems when used with `uefi` `>v0.25`.

uefi-services/Cargo.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
name = "uefi-services"
3+
version = "0.26.0"
4+
readme = "README.md"
5+
description = "Deprecated. Please migrate to `uefi::helpers`."
6+
7+
authors.workspace = true
8+
categories.workspace = true
9+
edition.workspace = true
10+
keywords.workspace = true
11+
license.workspace = true
12+
repository.workspace = true
13+
rust-version.workspace = true
14+
15+
[dependencies]
16+
17+
[features]
18+
default = []
19+
qemu = []
20+
panic_handler = []
21+
logger = []

uefi-services/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fn main() {
2+
println!(
3+
"cargo:warning=`uefi-services` is deprecated. Functionality was moved to `uefi::helpers::init`."
4+
);
5+
}

uefi-services/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//! WARNING: `uefi-services` is deprecated. Functionality was moved to `uefi::helpers::init`.
2+
#![no_std]
3+
4+
compile_error!("uefi-services is deprecated since v0.25 (April 2024). Please migrate to `uefi`!");

xtask/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ fn format_file_headers(fmt_opt: &FmtOpt) -> Result<()> {
367367
// This directory contains short code snippets used in `trybuild` tests,
368368
// no license needed.
369369
"uefi-macros/tests/ui/",
370+
"uefi-services",
370371
];
371372

372373
// Recursively get Rust files

0 commit comments

Comments
 (0)