Skip to content

workspace: uefi (main library) is in a dedicated directory now #566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 2 additions & 41 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,40 +1,5 @@
[package]
name = "uefi"
version = "0.18.0"
authors = ["Gabriel Majeri <[email protected]>"]
readme = "README.md"
edition = "2021"
exclude = [
".cargo/**",
"template/**",
"uefi-macros/**",
"uefi-services/**",
"uefi-test-runner/**",
"xtask/**",
]
description = "Safe and easy-to-use wrapper for building UEFI apps"
repository = "https://github.com/rust-osdev/uefi-rs"
keywords = ["uefi", "efi"]
categories = ["embedded", "no-std", "api-bindings"]
license = "MPL-2.0"

[features]
default = ["panic-on-logger-errors"]
alloc = []
exts = []
logger = []
# Ignore text output errors in logger as a workaround for firmware issues that
# were observed on the VirtualBox UEFI implementation (see uefi-rs#121).
# In those cases, this feature can be excluded by removing the default features.
panic-on-logger-errors = []

[dependencies]
bitflags = "1.3.1"
log = { version = "0.4.5", default-features = false }
ucs2 = "0.3.2"
uefi-macros = "0.9.0"

[workspace]
resolver = "2"
members = [
"template",
"uefi-macros",
Expand All @@ -44,10 +9,6 @@ members = [
]

[patch.crates-io]
uefi = { path = "uefi" }
uefi-macros = { path = "uefi-macros" }
uefi-services = { path = "uefi-services" }
uefi = { path = "." }

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
2 changes: 1 addition & 1 deletion uefi-test-runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish = false
edition = "2021"

[dependencies]
uefi = { path = "..", features = ['exts'] }
uefi = { path = "../uefi", features = ['exts'] }
uefi-services = { path = "../uefi-services" }

log = { version = "0.4.11", default-features = false }
Expand Down
31 changes: 31 additions & 0 deletions uefi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name = "uefi"
version = "0.18.0"
authors = ["Gabriel Majeri <[email protected]>"]
readme = "README.md"
edition = "2021"
description = "Safe and easy-to-use wrapper for building UEFI apps"
repository = "https://github.com/rust-osdev/uefi-rs"
keywords = ["uefi", "efi"]
categories = ["embedded", "no-std", "api-bindings"]
license = "MPL-2.0"

[features]
default = ["panic-on-logger-errors"]
alloc = []
exts = []
logger = []
# Ignore text output errors in logger as a workaround for firmware issues that
# were observed on the VirtualBox UEFI implementation (see uefi-rs#121).
# In those cases, this feature can be excluded by removing the default features.
panic-on-logger-errors = []

[dependencies]
bitflags = "1.3.1"
log = { version = "0.4.5", default-features = false }
ucs2 = "0.3.2"
uefi-macros = "0.9.0"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file was automatically generated with:
// `cargo xtask gen-code`
//
// See //xtask/src/device_path/README.md for more details.
// See `/xtask/src/device_path/README.md` for more details.

use crate::data_types::UnalignedSlice;
use crate::proto::device_path::{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions xtask/src/device_path/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use syn::{File, Item};
use util::rustfmt_string;

const INPUT_PATH: &str = "xtask/src/device_path/spec.rs";
const OUTPUT_PATH: &str = "src/proto/device_path/device_path_gen.rs";
const OUTPUT_PATH: &str = "uefi/src/proto/device_path/device_path_gen.rs";

fn gen_code_as_string(groups: &[NodeGroup]) -> Result<String> {
let packed_modules = groups.iter().map(NodeGroup::gen_packed_module);
Expand Down Expand Up @@ -63,7 +63,7 @@ fn gen_code_as_string(groups: &[NodeGroup]) -> Result<String> {
// This file was automatically generated with:
// `cargo xtask gen-code`
//
// See //xtask/src/device_path/README.md for more details.
// See `/xtask/src/device_path/README.md` for more details.

{code}"
);
Expand Down