Make backend explicit

This commit is contained in:
Dheepak Krishnamurthy 2020-07-27 02:41:56 -06:00
parent 50dce6379d
commit 19655051f7
2 changed files with 2 additions and 3 deletions

View file

@ -31,7 +31,7 @@ jobs:
if: matrix.os != 'windows-latest' if: matrix.os != 'windows-latest'
with: with:
command: build command: build
args: --release --target=${{ matrix.target }} args: --release --features=termion-backend --target=${{ matrix.target }}
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
with: with:

View file

@ -7,7 +7,6 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features] [features]
default = ["termion-backend"]
termion-backend = ["tui/termion", "termion"] termion-backend = ["tui/termion", "termion"]
crossterm-backend = ["tui/crossterm", "crossterm"] crossterm-backend = ["tui/crossterm", "crossterm"]
@ -17,7 +16,7 @@ tui = "0.10.0"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" serde_json = "1.0"
task-hookrs = "0.7.0" task-hookrs = "0.7.0"
termion = { version = "1.5.4", optional = true } termion = { version = "1.5", optional = true }
crossterm = { version = "0.17", optional = true } crossterm = { version = "0.17", optional = true }
rand = "0.7" rand = "0.7"
shlex = "0.1.1" shlex = "0.1.1"