Skip to content

Commit d8949ec

Browse files
committed
Third party crates: update due to our alloc landing in v6.13
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 7d23687 commit d8949ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Third-party-crates.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
Rust provides a package manager and build system called [Cargo](https://doc.rust-lang.org/cargo/). Rust also provides [crates.io](https://crates.io), its default package registry. In userspace, all these form a solution that a lot of open-source Rust projects use.
66

7-
Some of those open-source libraries are potentially usable in the kernel because they only depend on `core` and `alloc` (rather than `std`), or because they only provide macro facilities.
7+
Some of those open-source libraries are potentially usable in the kernel because they only depend on `core` (and possibly `alloc`) rather than `std`, or because they only provide macro facilities.
88

99
Thus it is natural to consider whether some of these libraries could be reused for the kernel.
1010

1111
## Suitability of a crate
1212

13-
Even if a library only depends on `core` and `alloc`, it may still not be usable within the kernel for other reasons.
13+
Even if a library only depends on `core` (and possibly `alloc`), it may still not be usable within the kernel for other reasons.
1414

15-
For instance, its license may be incompatible, it may not support fallible allocations, the kernel may only need a very small subset of what it supports (even if it supports configuring out some of its features), the kernel may already provide the same functionality on the C side (which could be abstracted), etc.
15+
For instance, its license may be incompatible, its use of the Rust standard library `alloc` crate (if any) may not be easy to adapt to the kernel's `alloc` module, the kernel may only need a very small subset of what it supports (even if it supports configuring out some of its features), the kernel may already provide the same functionality on the C side (which could be abstracted), etc.
1616

1717
On top of that, the code of a crate may require some changes to be adapted for the kernel anyway. For instance, adding SPDX license identifiers, removing a dependency, tweaking some code, enabling an unstable feature, etc.
1818

0 commit comments

Comments
 (0)