From de8ae4fe08a911db6bb82c42aa55e075dbcaeb28 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" <djmitche@google.com> Date: Fri, 13 Dec 2024 04:33:58 -0500 Subject: [PATCH] Remove the phrase "third-party" (#2512) "Third-party" is a Googleism that doesn't make much sense otherwise. Most references to crates just say "crate", implying that they are open-source packages available on https://crates.io, so this updates a few additional locations to do the same. --- src/bare-metal/alloc.md | 6 +++--- src/bare-metal/useful-crates/buddy_system_allocator.md | 4 ++-- src/memory-management/approaches.md | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bare-metal/alloc.md b/src/bare-metal/alloc.md index 91dac1a5..4bc3c4d1 100644 --- a/src/bare-metal/alloc.md +++ b/src/bare-metal/alloc.md @@ -9,9 +9,9 @@ To use `alloc` you must implement a <details> -- `buddy_system_allocator` is a third-party crate implementing a basic buddy - system allocator. Other crates are available, or you can write your own or - hook into your existing allocator. +- `buddy_system_allocator` is a crate implementing a basic buddy system + allocator. Other crates are available, or you can write your own or hook into + your existing allocator. - The const parameter of `LockedHeap` is the max order of the allocator; i.e. in this case it can allocate regions of up to 2**32 bytes. - If any crate in your dependency tree depends on `alloc` then you must have diff --git a/src/bare-metal/useful-crates/buddy_system_allocator.md b/src/bare-metal/useful-crates/buddy_system_allocator.md index 9d349118..b8340669 100644 --- a/src/bare-metal/useful-crates/buddy_system_allocator.md +++ b/src/bare-metal/useful-crates/buddy_system_allocator.md @@ -1,7 +1,7 @@ # `buddy_system_allocator` -[`buddy_system_allocator`][1] is a third-party crate implementing a basic buddy -system allocator. It can be used both for [`LockedHeap`][2] implementing +[`buddy_system_allocator`][1] is a crate implementing a basic buddy system +allocator. It can be used both for [`LockedHeap`][2] implementing [`GlobalAlloc`][3] so you can use the standard `alloc` crate (as we saw [before][4]), or for allocating other address space. For example, we might want to allocate MMIO space for PCI BARs: diff --git a/src/memory-management/approaches.md b/src/memory-management/approaches.md index 57e9ce4a..4a197dea 100644 --- a/src/memory-management/approaches.md +++ b/src/memory-management/approaches.md @@ -46,7 +46,7 @@ Rust's ownership and borrowing model can, in many cases, get the performance of C, with alloc and free operations precisely where they are required -- zero cost. It also provides tools similar to C++'s smart pointers. When required, other options such as reference counting are available, and there are even -third-party crates available to support runtime garbage collection (not covered -in this class). +crates available to support runtime garbage collection (not covered in this +class). </details>