From 7c2f2fcac2d1f212318928f4611064dc48ddcd2e Mon Sep 17 00:00:00 2001 From: Julien Cretin Date: Thu, 27 May 2021 22:52:24 +0200 Subject: [PATCH] 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. --- lib/macro/internal/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/macro/internal/Cargo.toml b/lib/macro/internal/Cargo.toml index 6d64cf5..5b320d6 100644 --- a/lib/macro/internal/Cargo.toml +++ b/lib/macro/internal/Cargo.toml @@ -13,5 +13,5 @@ include = ["Cargo.toml", "LICENSE", "README.md", "src/lib.rs"] proc-macro = true [dependencies] -data-encoding = { version = "2.3", path = "../.." } +data-encoding = { version = "2.3", path = "../..", default-features = false, features = ["alloc"] } syn = "1"