From 110d2ff4156b5af0109558ac233920d858eac7ca Mon Sep 17 00:00:00 2001 From: Szymon Walter Date: Mon, 19 Mar 2018 13:29:22 +0100 Subject: [PATCH] add `no_std` as default feature --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ded51c2..a216e65 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,5 +4,9 @@ version = "0.1.0" authors = ["Szymon Walter "] [dependencies] -rlibc = "1.0" bitflags = "1.0" +rlibc = { version = "1.0", optional = true } + +[features] +default = ["no_std"] +no_std = ["rlibc"]