Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4cea282

Browse files
committedApr 20, 2024
treewide: nuke uefi-services
1 parent dd47cae commit 4cea282

File tree

14 files changed

+22
-572
lines changed

14 files changed

+22
-572
lines changed
 

‎.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- run: |
1818
cargo install auto-release
19-
auto-release --condition body -p uefi-raw -p uefi-macros -p uefi -p uefi-services
19+
auto-release --condition body -p uefi-raw -p uefi-macros -p uefi
2020
env:
2121
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

‎CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
* [`uefi` changelog](uefi/CHANGELOG.md)
44
* [`uefi-macros` changelog](uefi-macros/CHANGELOG.md)
55
* [`uefi-raw` changelog](uefi-raw/CHANGELOG.md)
6-
* [`uefi-services` changelog](uefi-services/CHANGELOG.md)

‎Cargo.lock

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

‎Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ members = [
55
"uefi",
66
"uefi-macros",
77
"uefi-raw",
8-
"uefi-services",
98
"uefi-test-runner",
109
"xtask",
1110
]
@@ -29,7 +28,6 @@ uguid = "2.1.0"
2928
uefi = { path = "uefi" }
3029
uefi-macros = { path = "uefi-macros" }
3130
uefi-raw = { path = "uefi-raw" }
32-
uefi-services = { path = "uefi-services" }
3331

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

‎PUBLISHING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ repository to [crates.io](https://crates.io/).
1111
release is performed.
1212
- We want git tags like `uefi-raw-v0.4.0` or `uefi-v0.25.0` for every release.
1313
- We want our crate dependencies published in the right order (if necessary):
14-
- `uefi-services` depends on `uefi`
1514
- `uefi` depends on `uefi-macros` and `uefi-raw`
1615

1716
## How: Ways to Publish

‎book/src/reference.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
* [`uefi` crate reference](https://docs.rs/uefi)
55
* [`uefi-macros` crate reference](https://docs.rs/uefi-macros)
66
* [`uefi-raw` crate reference](https://docs.rs/uefi-raw)
7-
* [`uefi-services` crate reference](https://docs.rs/uefi-services)
87
* [UEFI Specifications](https://uefi.org/specifications)

‎uefi-services/CHANGELOG.md

Lines changed: 0 additions & 105 deletions
This file was deleted.

‎uefi-services/Cargo.toml

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎uefi-services/LICENSE

Lines changed: 0 additions & 373 deletions
This file was deleted.

‎uefi-services/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# uefi-services
22

3-
WARNING: `uefi-services` is deprecated. Functionality was moved to `uefi::helpers::init`.
3+
WARNING: `uefi-services` is deprecated. Functionality was moved to
4+
`uefi::helpers::init` in `uefi` ´v0.28.0`.

‎uefi-services/build.rs

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎uefi-services/src/lib.rs

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎xtask/src/cargo.rs

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ pub enum Package {
1010
UefiApp,
1111
UefiMacros,
1212
UefiRaw,
13-
UefiServices,
1413
UefiTestRunner,
1514
Xtask,
1615
}
@@ -23,20 +22,14 @@ impl Package {
2322
Self::UefiApp => "uefi_app",
2423
Self::UefiMacros => "uefi-macros",
2524
Self::UefiRaw => "uefi-raw",
26-
Self::UefiServices => "uefi-services",
2725
Self::UefiTestRunner => "uefi-test-runner",
2826
Self::Xtask => "xtask",
2927
}
3028
}
3129

3230
/// All published packages, in the order that publishing should occur.
3331
pub fn published() -> Vec<Package> {
34-
vec![
35-
Self::UefiRaw,
36-
Self::UefiMacros,
37-
Self::Uefi,
38-
Self::UefiServices,
39-
]
32+
vec![Self::UefiRaw, Self::UefiMacros, Self::Uefi]
4033
}
4134

4235
/// All the packages except for xtask.
@@ -46,7 +39,6 @@ impl Package {
4639
Self::UefiApp,
4740
Self::UefiMacros,
4841
Self::UefiRaw,
49-
Self::UefiServices,
5042
Self::UefiTestRunner,
5143
]
5244
}
@@ -60,11 +52,8 @@ pub enum Feature {
6052
Logger,
6153
PanicOnLoggerErrors,
6254
Unstable,
63-
64-
// `uefi-services` features.
6555
PanicHandler,
6656
Qemu,
67-
ServicesLogger,
6857

6958
// `uefi-test-runner` features.
7059
DebugSupport,
@@ -83,10 +72,8 @@ impl Feature {
8372
Self::Logger => "logger",
8473
Self::PanicOnLoggerErrors => "panic-on-logger-errors",
8574
Self::Unstable => "unstable",
86-
87-
Self::PanicHandler => "uefi-services/panic_handler",
88-
Self::Qemu => "uefi-services/qemu",
89-
Self::ServicesLogger => "uefi-services/logger",
75+
Self::PanicHandler => "panic_handler",
76+
Self::Qemu => "qemu",
9077

9178
Self::DebugSupport => "uefi-test-runner/debug_support",
9279
Self::MultiProcessor => "uefi-test-runner/multi_processor",
@@ -106,8 +93,9 @@ impl Feature {
10693
Self::Logger,
10794
Self::PanicOnLoggerErrors,
10895
Self::Unstable,
96+
Self::PanicHandler,
97+
Self::Qemu,
10998
],
110-
Package::UefiServices => vec![Self::PanicHandler, Self::Qemu, Self::ServicesLogger],
11199
Package::UefiTestRunner => {
112100
vec![
113101
Self::DebugSupport,

‎xtask/src/main.rs

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,22 @@ use opt::{Action, BuildOpt, ClippyOpt, DocOpt, Opt, QemuOpt, TpmVersion};
2121
use std::process::Command;
2222
use util::run_cmd;
2323

24+
/// Builds various feature permutations that are valid for the `uefi` crate.
2425
fn build_feature_permutations(opt: &BuildOpt) -> Result<()> {
25-
for package in [Package::Uefi, Package::UefiServices] {
26-
let all_package_features = Feature::package_features(package);
27-
for features in all_package_features.iter().powerset() {
28-
let features = features.iter().map(|f| **f).collect();
26+
let all_package_features = Feature::package_features(Package::Uefi);
27+
for features in all_package_features.iter().powerset() {
28+
let features = features.iter().map(|f| **f).collect();
2929

30-
let cargo = Cargo {
31-
action: CargoAction::Build,
32-
features,
33-
packages: vec![package],
34-
release: opt.build_mode.release,
35-
target: Some(*opt.target),
36-
warnings_as_errors: true,
37-
target_types: TargetTypes::BinsExamplesLib,
38-
};
39-
run_cmd(cargo.command()?)?;
40-
}
30+
let cargo = Cargo {
31+
action: CargoAction::Build,
32+
features,
33+
packages: vec![Package::Uefi],
34+
release: opt.build_mode.release,
35+
target: Some(*opt.target),
36+
warnings_as_errors: true,
37+
target_types: TargetTypes::BinsExamplesLib,
38+
};
39+
run_cmd(cargo.command()?)?;
4140
}
4241

4342
Ok(())
@@ -195,8 +194,6 @@ fn run_host_tests(test_opt: &TestOpt) -> Result<()> {
195194
// features is set to no as it is not possible as as soon a #[global_allocator] is
196195
// registered, the Rust runtime executing the tests uses it as well.
197196
features: Feature::more_code(*test_opt.unstable, false),
198-
// Don't test uefi-services (or the packages that depend on it)
199-
// as it has lang items that conflict with `std`.
200197
packages,
201198
release: false,
202199
// Use the host target so that tests can run without a VM.

0 commit comments

Comments
 (0)
Please sign in to comment.