Skip to content

Commit 3054cc0

Browse files
fix: use proptest only for test
1 parent 6f1f0f9 commit 3054cc0

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

iri_s/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ serde.workspace = true
1818
thiserror.workspace = true
1919
url.workspace = true
2020

21-
[target.'cfg(not(target_family = "wasm"))'.dependencies]
21+
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
2222
proptest.workspace = true

iri_s/src/iri/test.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
use crate::iri;
44
use crate::{IriS, iri_once, static_once};
5-
use proptest::prelude::*;
65
use std::str::FromStr;
76

87
const URI_REGEX: &str = r"https?://[a-zA-Z0-9]{3,}(\.[a-zA-Z0-9]{3,})+(\/[a-zA-Z0-9/]{1,3})*\/";
98
const PATH_REGEX: &str = r"([a-zA-Z0-9_\-]{3,5}/){1,10}";
109
const FILE_REGEX: &str = concat!("file:///", r"([a-zA-Z0-9_\-]{3,5}/){1,10}");
1110

11+
#[cfg(test)]
1212
mod tests {
13+
use proptest::prelude::*;
1314
use super::*;
1415
use oxrdf::NamedNode;
1516

@@ -86,7 +87,9 @@ mod tests_macros_static {
8687
}
8788
}
8889

90+
#[cfg(test)]
8991
mod tests_macros {
92+
use proptest::prelude::*;
9093
use super::*;
9194

9295
proptest! {

prefixmap/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ iri_s.workspace = true
1616
serde.workspace = true
1717
thiserror.workspace = true
1818

19-
[target.'cfg(not(target_family = "wasm"))'.dependencies]
19+
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
2020
proptest.workspace = true
2121
#bencher.workspace = true

0 commit comments

Comments
 (0)