Skip to content

Commit

Permalink
chore: add test-output crate
Browse files Browse the repository at this point in the history
  • Loading branch information
clechasseur committed Oct 21, 2023
1 parent ddf44ad commit b0f001e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "rust-template-output"
version = "0.1.0"
edition = "2021"

[features]
test_feature_1 = []

[dependencies]
9 changes: 9 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fn main() {
println!("Hello, world!");

if cfg!(feature = "test_feature_1") {
println!("test-feature-1 is enabled");
} else {
println!("test-feature-1 is disabled");
}
}

0 comments on commit b0f001e

Please sign in to comment.