Skip to content

Commit

Permalink
Fix required features for CLI (#1888)
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe authored Dec 25, 2024
1 parent aea21f9 commit cd47e8c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions root/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ license-file.workspace = true
readme.workspace = true
repository.workspace = true

[[bin]]
name = "stak"
required-features = ["cli"]

[features]
default = ["float", "libc", "std"]
cli = []
float = ["stak-vm/float"]
hot-reload = ["stak-macro/hot-reload"]
libc = [
Expand Down
9 changes: 7 additions & 2 deletions root/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
//! A build script.
use stak_build::{build_r7rs, BuildError};
#[cfg(any(feature = "cli", test))]
use stak_build::build_r7rs;
use stak_build::BuildError;

fn main() -> Result<(), BuildError> {
build_r7rs()
#[cfg(any(feature = "cli", test))]
build_r7rs()?;

Ok(())
}

0 comments on commit cd47e8c

Please sign in to comment.