diff options
author | Christian Duerr <contact@christianduerr.com> | 2024-01-06 07:05:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-06 06:05:55 +0000 |
commit | b54d763154eff23692e06500a4aa342d847ef35a (patch) | |
tree | 107b7f54590c11686746801b7588ad8d96aa90ec | |
parent | 295ac412de849872e23077d278bcb9cc2021468b (diff) | |
download | alacritty-b54d763154eff23692e06500a4aa342d847ef35a.tar.gz alacritty-b54d763154eff23692e06500a4aa342d847ef35a.zip |
Fix serde tests without default features
Authored-by: James McCoy <jamessan@jamessan.com>
-rw-r--r-- | .github/workflows/ci.yml | 2 | ||||
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 1 | ||||
-rw-r--r-- | alacritty_terminal/tests/ref.rs | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0a3b788..0a0b5f6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,8 @@ jobs: - uses: actions/checkout@v3 - name: Stable run: cargo test + - name: Stable (no default features) + run: cargo test -p alacritty_terminal --no-default-features - name: Oldstable run: | rustup default 1.70.0 diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 2553270c..ec79886c 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -2710,6 +2710,7 @@ mod tests { /// This test is in the term module as opposed to the grid since we want to /// test this property with a T=Cell. #[test] + #[cfg(feature = "serde")] fn grid_serde() { let grid: Grid<Cell> = Grid::new(24, 80, 0); let serialized = serde_json::to_string(&grid).expect("ser"); diff --git a/alacritty_terminal/tests/ref.rs b/alacritty_terminal/tests/ref.rs index 7f864ae8..587d2d3e 100644 --- a/alacritty_terminal/tests/ref.rs +++ b/alacritty_terminal/tests/ref.rs @@ -1,3 +1,4 @@ +#![cfg(feature = "serde")] use serde::Deserialize; use serde_json as json; |