Skip to content

Commit

Permalink
force proc-macro to be no_std compatable
Browse files Browse the repository at this point in the history
  • Loading branch information
mriise committed Oct 31, 2020
1 parent 3699a0d commit b492d58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ default = ["stable"]
stable = ["data-encoding-macro-internal/stable", "proc-macro-hack"]

[dependencies]
data-encoding = { version = "2.2", path = ".." }
data-encoding = { version = "2.3", path = "..", default-features = false, features = ["alloc"] }
data-encoding-macro-internal = { version = "0.1.8", path = "internal" }
proc-macro-hack = { version = "0.5", optional = true }
2 changes: 1 addition & 1 deletion lib/macro/internal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ proc-macro = true
stable = ["proc-macro-hack"]

[dependencies]
data-encoding = { version = "2.2", path = "../.." }
data-encoding = { version = "2.3", path = "../..", default-features = false, features = ["alloc"] }
proc-macro-hack = { version = "0.5", optional = true }
syn = "1"
1 change: 1 addition & 0 deletions lib/macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@

#![cfg_attr(not(feature = "stable"), feature(proc_macro_hygiene))]
#![warn(unused_results)]
#![no_std]

#[cfg(feature = "stable")]
extern crate proc_macro_hack;
Expand Down

0 comments on commit b492d58

Please sign in to comment.