File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description = """
4
4
Library with type definitions and parsing functions for Multiboot2 headers.
5
5
This library is `no_std` and can be used in bootloaders.
6
6
"""
7
- version = " 0.1.0 "
7
+ version = " 0.1.1 "
8
8
authors = [
9
9
" Philipp Schuster <[email protected] >"
10
10
]
@@ -27,6 +27,12 @@ homepage = "https://github.com/rust-osdev/multiboot2-header"
27
27
repository = " https://github.com/rust-osdev/multiboot2"
28
28
documentation = " https://docs.rs/multiboot2-header"
29
29
30
+ [features ]
31
+ # by default, builder is included
32
+ default = [" builder" ]
33
+ std = []
34
+ builder = [" std" ]
35
+
30
36
[dependencies ]
31
37
# used for MBI tags
32
- multiboot2 = " 0.12 .2"
38
+ multiboot2 = " 0.13 .2"
Original file line number Diff line number Diff line change @@ -15,6 +15,18 @@ What this library is good for:
15
15
What this library is not optimal for:
16
16
- compiling a Multiboot2 header statically into an object file using only Rust code
17
17
18
+ ## Features and Usage in ` no_std `
19
+ This library is always ` no_std ` . However, the ` builder ` -feature requires the ` alloc ` -crate
20
+ to be available. You need the ` builder ` only if you want to construct new headers. For parsing,
21
+ this is not relevant.
22
+
23
+ ``` toml
24
+ # without `builder`-feature (and without `alloc`-crate)
25
+ multiboot2-header = { version = " <latest>" , default-features = false }
26
+ # else (requires `alloc`-crate)
27
+ multiboot2-header = " <latest>"
28
+ ```
29
+
18
30
## Example 1: Builder + Parse
19
31
``` rust
20
32
use multiboot2_header :: builder :: Multiboot2HeaderBuilder ;
You can’t perform that action at this time.
0 commit comments