Commit 041fd5f
Add `std`/`alloc`/`serde` feature flags. The only non-codegen module
(`graph_ids`) now compiles on bare-metal targets with zero std
dependencies.
- Add `#![cfg_attr(not(feature = "std"), no_std)]` to `lib.rs`
- Make `serde` optional (only needed for `slotmap` key serialization,
pulled in by `codegen` feature)
- Set `slotmap` to `default-features = false`
- `codegen` feature implies `std` + `serde`
Co-authored-by: Infinity 🤖 <infinity@hydro.run>
Co-authored-by: Infinity 🤖 <infinity@hydro.run>
1 parent 341fb14 commit 041fd5f
2 files changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | | - | |
| 46 | + | |
42 | 47 | | |
43 | | - | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
0 commit comments