Skip to content

Commit a9ffae8

Browse files
Merge pull request #1290 from phip1611/doc3
doc: move misc stuff from README to lib.rs [doc: 2/N]
2 parents c7668ee + 048ffa1 commit a9ffae8

File tree

2 files changed

+40
-19
lines changed

2 files changed

+40
-19
lines changed

README.md

+8-16
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ This crate makes it easy to develop Rust software that leverages **safe**,
1313

1414
## Description
1515

16-
[UEFI] started as the successor firmware to the BIOS in x86 space and developed
17-
to a universal firmware specification for various platforms, such as ARM. It
18-
provides an early boot environment with a variety of [specified][spec]
19-
ready-to-use "high-level" functionality, such as accessing disks or the network.
20-
EFI images, the files that can be loaded by an UEFI environment, can leverage
21-
these abstractions to extend the functionality in form of additional drivers,
22-
OS-specific bootloaders, or different kind of low-level applications.
23-
2416
Our mission is to provide **safe** and **performant** wrappers for UEFI
2517
interfaces, and allow developers to write idiomatic Rust code.
2618

@@ -38,10 +30,6 @@ You can use the abstractions for example to:
3830
- create OS-specific loaders and leverage UEFI boot service
3931
- access UEFI runtime services from an OS
4032

41-
All crates are compatible with all platforms that both the Rust compiler and
42-
UEFI support, such as `i686`, `x86_64`, and `aarch64`). Please note that we
43-
can't test all possible hardware/firmware/platform combinations.
44-
4533
[UEFI]: https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface
4634

4735
![UEFI App running in QEMU](https://imgur.com/SFPSVuO.png)
@@ -128,11 +116,14 @@ most of the library's functionality.
128116
Check out the testing project's [`README.md`](uefi-test-runner/README.md) for
129117
prerequisites for running the tests.
130118

131-
## Contributing
119+
## Discuss and Contribute
120+
121+
For general discussions, feel free to join us in our [Zulip] and ask
122+
your questions there.
132123

133-
We welcome issues and pull requests! For instructions on how to set up a
134-
development environment and how to add new protocols, check out
135-
[CONTRIBUTING.md](CONTRIBUTING.md).
124+
Further, you can submit bugs and also ask questions in our [issue tracker].
125+
Contributions in the form of a PR are also highly welcome. Check our
126+
[contributing guide](./CONTRIBUTING.md) for details.
136127

137128
## License
138129

@@ -143,3 +134,4 @@ modifications to the files must be open-sourced.
143134
The full text of the license is available in the [license file](LICENSE).
144135

145136
[UEFI]: https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface
137+
[Zulip]: https://rust-osdev.zulipchat.com

uefi/src/lib.rs

+32-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@
77
//! important UEFI concepts. For more details of UEFI, see the latest [UEFI
88
//! Specification][spec].
99
//!
10-
//! Feel free to file bug reports and questions in our [issue tracker], and [PR
11-
//! contributions][contributing] are also welcome!
12-
//!
1310
//! # Interaction with uefi services
1411
//!
1512
//! With this crate you can write code for the pre- and post-exit boot services
1613
//! epochs. However, the `uefi` crate unfolds its true potential when
1714
//! interacting with UEFI boot services.
1815
//!
16+
//! ## Supported Architectures
17+
//!
18+
//! `uefi` is compatible with all platforms that both the Rust compiler and
19+
//! UEFI support, such as `i686`, `x86_64`, and `aarch64`. Please note that we
20+
//! can't test all possible hardware/firmware/platform combinations in CI.
21+
//!
1922
//! # Crate organisation
2023
//!
2124
//! The top-level module contains some of the most used types and macros,
@@ -74,8 +77,34 @@
7477
//! only unfold their potential when you invoke `uefi::helpers::init` as soon
7578
//! as possible in your application.
7679
//!
80+
//! # Discuss and Contribute
81+
//!
82+
//! For general discussions, feel free to join us in our [Zulip] and ask
83+
//! your questions there.
84+
//!
85+
//! Further, you can submit bugs and also ask questions in our [issue tracker].
86+
//! Contributions in the form of a PR are also highly welcome. Check our
87+
//! [contributing guide][contributing] for details.
88+
//!
89+
//! # MSRV
90+
//! <!-- Keep in Sync with README! -->
91+
//!
92+
//! The minimum supported Rust version is currently 1.70.
93+
//! Our policy is to support at least the past two stable releases.
94+
//!
95+
//! # License
96+
//! <!-- Keep in Sync with README! -->
97+
//!
98+
//! The code in this repository is licensed under the Mozilla Public License 2.
99+
//! This license allows you to use the crate in proprietary programs, but any
100+
//! modifications to the files must be open-sourced.
101+
//!
102+
//! The full text of the license is available in the [license file][LICENSE].
103+
//!
104+
//! [LICENSE]: https://github.com/rust-osdev/uefi-rs/blob/main/uefi/LICENSE
77105
//! [Rust UEFI Book]: https://rust-osdev.github.io/uefi-rs/HEAD/
78106
//! [UEFI]: https://uefi.org/
107+
//! [Zulip]: https://rust-osdev.zulipchat.com
79108
//! [`BootServices`]: table::boot::BootServices
80109
//! [`GlobalAlloc`]: alloc::alloc::GlobalAlloc
81110
//! [`SystemTable`]: table::SystemTable

0 commit comments

Comments
 (0)