From 6d56cc593eaf80c02492a2bb34718deb3aaf1912 Mon Sep 17 00:00:00 2001 From: edef Date: Wed, 15 Apr 2015 19:22:41 -0400 Subject: [PATCH] feature-flag os, but leave it enabled by default --- Cargo.toml | 4 ++++ src/lib.rs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index bd3d56f..f4683f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,7 @@ build = "build.rs" [build-dependencies] gcc = "0.3.3" + +[features] +default = ["os"] +os = [] diff --git a/src/lib.rs b/src/lib.rs index 62eb963..1a26d3a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,4 +20,6 @@ pub mod context; pub mod stack; mod arch; + +#[cfg(feature = "os")] pub mod os;