-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move debugger_visualizer tests to separate crate
To prevent having to raise MSRV again, we move the debugger_visualizer to a separate crate. This crate is only compiled when the feature `debugger_visualizer` is enabled, because only then the `debugger_visualizer` test is added as a compile target.
- Loading branch information
1 parent
a3e07c7
commit 4b31c13
Showing
5 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
[workspace] | ||
members = ["url", "form_urlencoded", "idna", "percent_encoding", "data-url"] | ||
members = [ | ||
"url", | ||
"form_urlencoded", | ||
"idna", | ||
"percent_encoding", | ||
"data-url", | ||
"url_debug_tests", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
|
||
name = "url_debug_tests" | ||
version = "0.0.0" | ||
description = "Tests for debugger visualizers defined for the url crate such as url.natvis" | ||
publish = false | ||
rust-version = "1.60" | ||
|
||
[dev-dependencies] | ||
url = { path = "../url" } | ||
debugger_test = "0.1" | ||
debugger_test_parser = "0.1" | ||
|
||
[features] | ||
debugger_visualizer = [] | ||
|
||
[[test]] | ||
name = "debugger_visualizer" | ||
path = "tests/debugger_visualizer.rs" | ||
required-features = ["debugger_visualizer"] | ||
test = false |
3 changes: 3 additions & 0 deletions
3
url/tests/debugger_visualizer.rs → url_debug_tests/tests/debugger_visualizer.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
extern crate debugger_test; | ||
extern crate url; | ||
|
||
use debugger_test::debugger_test; | ||
use url::Url; | ||
|
||
|