Introduce alloc feature for optional allocation

Wrap heap-allocated types and service generation in the `alloc` feature
flag to support environments without a memory allocator.
This commit is contained in:
2026-05-19 21:55:18 -07:00
parent 6910f11d69
commit 117cbf812b
7 changed files with 201 additions and 52 deletions
+5
View File
@@ -24,7 +24,12 @@ futures-util = "0.3"
http-body-util = "0.1"
http = "1.1"
http-body = "1.0"
async-trait = "0.1"
[build-dependencies]
tonic-build = "0.12"
roto-codegen = { path = "../../codegen" }
[features]
default = ["alloc"]
alloc = []