Commit 959fc39b authored by Hero Bird's avatar Hero Bird
Browse files

[pdsl_core] Make crate compatible with no_std and std environments (1. step)

parent c7d48015
......@@ -29,4 +29,5 @@ env_logger = { version = "0.6", default-features = false }
[features]
default = []
test-env = []
test-env = ["std"]
std = []
......@@ -14,14 +14,14 @@
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
#![no_std]
#![feature(alloc)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc))]
#[cfg(not(feature = "std"))]
// #[macro_use]
extern crate alloc;
#[cfg(test)]
#[cfg(all(test, feature = "std"))]
#[macro_use]
mod test_utils;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment