Skip to content

Commit 2c94380

Browse files
crawfxrdjackpot51
authored andcommitted
Replace uefi dependency with std::uefi
uefi_std re-exports uefi. Adding it as a separate dependency may cause import conflicts. Signed-off-by: Tim Crawford <[email protected]>
1 parent a86bd74 commit 2c94380

File tree

13 files changed

+27
-28
lines changed

13 files changed

+27
-28
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ plain = "0.2.3"
1414
redox_dmi = "0.1.5"
1515
redox_hwio = "0.1.4"
1616
redox_intelflash = "0.1.3"
17-
redox_uefi = "0.1.2"
1817
redox_uefi_std = "0.1.5"
1918
system76_ecflash = { git = "https://github.com/system76/ecflash.git" }
2019
system76_ectool = { git = "https://github.com/system76/ec.git", default-features = false, features = ["redox_hwio"] }

src/app/bios.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ use plain::Plain;
1010
use std::fs::{find, load};
1111
use std::ptr;
1212
use std::vars::{get_boot_item, get_boot_order, set_boot_item, set_boot_order};
13-
use uefi::reset::ResetType;
14-
use uefi::status::{Error, Result, Status};
13+
use std::uefi::reset::ResetType;
14+
use std::uefi::status::{Error, Result, Status};
1515

1616
use super::{FIRMWARECAP, FIRMWAREDIR, FIRMWARENSH, FIRMWAREROM, H2OFFT, IFLASHV, UEFIFLASH, shell, Component};
1717

src/app/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-3.0-only
22

3-
use uefi::status::Result;
3+
use std::uefi::status::Result;
44

55
pub trait Component {
66
fn name(&self) -> &str;

src/app/ec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use std::{
1818
fs::{find, load},
1919
str,
2020
};
21-
use uefi::status::{Error, Result};
21+
use std::uefi::{self, status::{Error, Result}};
2222

2323
use super::{ECROM, EC2ROM, ECTAG, FIRMWAREDIR, FIRMWARENSH, pci_read, shell, Component};
2424

src/app/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ use std::vars::{
1717
get_os_indications, set_os_indications,
1818
get_os_indications_supported
1919
};
20-
use uefi::guid;
21-
use uefi::reset::ResetType;
22-
use uefi::status::{Error, Result, Status};
20+
use std::uefi::guid;
21+
use std::uefi::reset::ResetType;
22+
use std::uefi::status::{Error, Result, Status};
2323

2424
use crate::display::{Display, ScaledDisplay, Output};
2525
use crate::image::{self, Image};

src/display.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use core::cell::Cell;
44
use core::ops::Try;
55
use orbclient::{Color, Mode, Renderer};
66
use std::proto::Protocol;
7-
use uefi::graphics::{GraphicsOutput, GraphicsBltOp, GraphicsBltPixel};
8-
use uefi::guid::{Guid, GRAPHICS_OUTPUT_PROTOCOL_GUID};
7+
use std::uefi::graphics::{GraphicsOutput, GraphicsBltOp, GraphicsBltPixel};
8+
use std::uefi::guid::{Guid, GRAPHICS_OUTPUT_PROTOCOL_GUID};
99

1010
pub struct Output(pub &'static mut GraphicsOutput);
1111

src/dmi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-3.0-only
22

33
use core::slice;
4-
use uefi::guid::GuidKind;
4+
use std::uefi::guid::GuidKind;
55

66
pub fn dmi() -> Vec<dmi::Table> {
77
for table in std::system_table().config_tables() {

src/io.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: GPL-3.0-only
22

33
use core::char;
4-
use uefi::status;
5-
use uefi::text::TextInputKey;
4+
use std::uefi::status;
5+
use std::uefi::text::TextInputKey;
66

77
pub fn wait_key() -> Result<char, status::Error> {
88
let uefi = std::system_table();

src/key.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-3.0-only
22

3-
use uefi::status::Result;
4-
use uefi::text::TextInputKey;
3+
use std::uefi::status::Result;
4+
use std::uefi::text::TextInputKey;
55

66
pub fn raw_key() -> Result<TextInputKey> {
77
let uefi = std::system_table();

0 commit comments

Comments
 (0)