Skip to content

Commit 58e6ffa

Browse files
committed
💚 🔧 added [features] bin-app to cargo.toml
1 parent ebeeb15 commit 58e6ffa

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
with:
7777
use-cross: ${{ matrix.target.cross }}
7878
command: build
79-
args: --release --bin=cli-candlestick-chart --features='serde serde_json csv clap' --target=${{ matrix.target.target }}
79+
args: --release --bin=cli-candlestick-chart --features=bin-app --target=${{ matrix.target.target }}
8080

8181
- name: Copy release files
8282
shell: bash

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ csv = { version = "1.1", optional = true }
2424
[dev-dependencies]
2525
reqwest = { version = "0.11", features = ["blocking", "json"] }
2626

27+
[features]
28+
bin-app = ["serde", "serde_json", "csv", "clap"]
29+
2730
[[bin]]
2831
name = "cli-candlestick-chart"
2932
path = "src/bin/cli/main.rs"
30-
required-features = ["serde", "serde_json", "csv", "clap"]
33+
required-features = ["bin-app"]
3134

3235
[[example]]
3336
name = "basic-with-csv-parsing"

0 commit comments

Comments
 (0)