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;