Skip to content

Commit

Permalink
Fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo committed Aug 9, 2024
1 parent 9c4b18b commit 486cfa1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Tests
run: cargo test --all-features
- name: List bundled examples
run: cargo run --features=build-binary list-examples
run: cargo run list-examples
publish:
needs: [ build ]
if: "startsWith(github.ref, 'refs/tags/v')"
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ copy_dir = "0.1.3"
dir-diff = "0.3.3"

[features]
build-binary = ["clap"]
default = ["cli"]
cli = ["dep:clap"]

[lib]
path = "src/lib.rs"
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::io::Write;
use std::path::{Path, PathBuf};
use std::{fs, io};

#[cfg(feature = "cli")]
pub mod cli;
pub mod model;

Expand Down

0 comments on commit 486cfa1

Please sign in to comment.