From 8a38b9ec6f1cf6214601f4facbfa35396fb2aacb Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Wed, 20 Mar 2024 17:04:54 +0100 Subject: [PATCH] features --- Cargo.toml | 9 +++++++++ src/bin/cliwordle.rs | 3 +++ src/lib.rs | 0 src/main.rs | 3 --- 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 src/bin/cliwordle.rs create mode 100644 src/lib.rs delete mode 100644 src/main.rs diff --git a/Cargo.toml b/Cargo.toml index d96411e..d9d8b3c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,16 @@ readme = "README.md" homepage = "https://git.cscherr.de/PlexSheep/wordle-analyzer" repository = "https://git.cscherr.de/PlexSheep/wordle-analyzer" keywords = ["wordle", "benchmark"] +default-run = "wordle" +[features] +default = ["game", "bench"] +game = [] +bench = [] [dependencies] +[[bin]] +name = "cliwordle" +path = "src/bin/cliwordle.rs" +required-features = ["game"] diff --git a/src/bin/cliwordle.rs b/src/bin/cliwordle.rs new file mode 100644 index 0000000..ee80563 --- /dev/null +++ b/src/bin/cliwordle.rs @@ -0,0 +1,3 @@ +fn main() { + unimplemented!(); +} diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index e7a11a9..0000000 --- a/src/main.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - println!("Hello, world!"); -}