Skip to content

Commit a89028b

Browse files
mriiseia0
authored andcommitted
force proc-macro to be no_std compatable
1 parent 848efe3 commit a89028b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/macro/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ default = ["stable"]
2020
stable = ["data-encoding-macro-internal/stable", "proc-macro-hack"]
2121

2222
[dependencies]
23-
data-encoding = { version = "2.2", path = ".." }
23+
data-encoding = { version = "2.3", path = "..", default-features = false, features = ["alloc"] }
2424
data-encoding-macro-internal = { version = "0.1.8", path = "internal" }
2525
proc-macro-hack = { version = "0.5", optional = true }

lib/macro/internal/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ proc-macro = true
1616
stable = ["proc-macro-hack"]
1717

1818
[dependencies]
19-
data-encoding = { version = "2.2", path = "../.." }
19+
data-encoding = { version = "2.3", path = "../..", default-features = false, features = ["alloc"] }
2020
proc-macro-hack = { version = "0.5", optional = true }
2121
syn = "1"

lib/macro/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
7575
#![cfg_attr(not(feature = "stable"), feature(proc_macro_hygiene))]
7676
#![warn(unused_results)]
77+
#![no_std]
7778

7879
#[cfg(feature = "stable")]
7980
extern crate proc_macro_hack;

0 commit comments

Comments
 (0)