Commit 0e5f034
fix: make tokio signal/rt-multi-thread optional via "tokio-full" feature
The "full" tokio feature includes signal handling and multi-threaded
runtime which are not available on all platforms (notably ESP-IDF).
This change:
- Uses minimal tokio features by default (rt, net, io-util, sync, time, macros)
- Adds "tokio-full" feature for rt-multi-thread and signal support
- Includes "tokio-full" in default features for backward compatibility
- Marks all examples as requiring "tokio-full" since they use #[tokio::main]
and/or tokio::signal
For ESP32/embedded builds, use:
cargo build --no-default-features --features alloc
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 0cb2fe1 commit 0e5f034
2 files changed
+16
-53
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| 86 | + | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
| 91 | + | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| 96 | + | |
88 | 97 | | |
89 | 98 | | |
90 | 99 | | |
91 | 100 | | |
| 101 | + | |
92 | 102 | | |
93 | 103 | | |
94 | 104 | | |
95 | 105 | | |
| 106 | + | |
0 commit comments