Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 8ebe511

Browse files
author
Hendrik van Antwerpen
committed
Add dev-dependency on serde_json to ensure serde tests are independent of json feature flag
1 parent b902429 commit 8ebe511

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

stack-graphs/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ thiserror = { version="1.0" }
3939
itertools = "0.10"
4040
maplit = "1.0"
4141
pretty_assertions = "0.7"
42+
serde_json = { version="1.0" }
4243

4344
[package.metadata.docs.rs]
4445
all-features = true

stack-graphs/tests/it/serde.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55
// Please see the LICENSE-APACHE or LICENSE-MIT files in this distribution for license details.
66
// ------------------------------------------------------------------------------------------------
77

8-
#[cfg(feature = "json")]
98
use stack_graphs::graph;
10-
#[cfg(feature = "json")]
119
use stack_graphs::serde;
1210

13-
#[cfg(feature = "json")]
1411
#[test]
1512
fn serde_json_stack_graph() {
1613
let expected = serde::StackGraph {
@@ -131,7 +128,6 @@ fn serde_json_stack_graph() {
131128
assert_eq!(observed, expected);
132129
}
133130

134-
#[cfg(feature = "json")]
135131
#[test]
136132
fn reconstruct() {
137133
let json_data = serde_json::json!(

0 commit comments

Comments
 (0)