Skip to content

Commit 7c2f2fc

Browse files
committed
lib/macro/internal: Only use alloc instead of std
Fix #47. The problem is that for stable compilers older than 1.51, we used to support no-std alloc environments, but not no-alloc environments. For compilers 1.51 and later, we additionally support no-alloc environments using resolver = "2" in Cargo.toml of the end binary.
1 parent df5efea commit 7c2f2fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/macro/internal/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ include = ["Cargo.toml", "LICENSE", "README.md", "src/lib.rs"]
1313
proc-macro = true
1414

1515
[dependencies]
16-
data-encoding = { version = "2.3", path = "../.." }
16+
data-encoding = { version = "2.3", path = "../..", default-features = false, features = ["alloc"] }
1717
syn = "1"

0 commit comments

Comments
 (0)