Skip to content

Commit 5836eec

Browse files
committed
Tweaks
1 parent e703707 commit 5836eec

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rust-version = "1.84"
1919

2020
[workspace.dependencies]
2121
five8_const = "0.1.4"
22-
pinocchio = { version = "0.9", path = "sdk/pinocchio" }
22+
pinocchio = { version = "0.9", default-features = false, path = "sdk/pinocchio" }
2323
pinocchio-log-macro = { version = "0.5", path = "sdk/log/macro" }
2424
quote = "1.0"
2525
regex = "1"

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ When no allocation is needed or desired, the feature can be disabled:
176176
pinocchio = { version = "0.10.0", default-features = false }
177177
```
178178

179+
> ⚠️ **Note:**
180+
> The `default_allocator` macro is not available when disabling the `alloc` feature.
181+
179182
## Advance entrypoint configuration
180183

181184
The symbols emitted by the entrypoint macros — program entrypoint, global allocator and default panic handler — can only be defined once globally. If the program crate is also intended to be used as a library, it is common practice to define a Cargo [feature](https://doc.rust-lang.org/cargo/reference/features.html) in your program crate to conditionally enable the module that includes the `entrypoint!` macro invocation. The convention is to name the feature `bpf-entrypoint`.

0 commit comments

Comments
 (0)