Skip to content

Commit 229f876

Browse files
authored
chore(features): remove test-utils feature gate (#122)
1 parent 7c4764b commit 229f876

File tree

8 files changed

+1
-15
lines changed

8 files changed

+1
-15
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/*"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.11.0"
6+
version = "0.11.1"
77
edition = "2021"
88
rust-version = "1.85"
99
authors = ["init4"]

crates/constants/src/chains/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#[cfg(any(test, feature = "test-utils"))]
21
pub mod test_utils;
32

43
pub mod pecorino;

crates/constants/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
1818

1919
mod chains;
20-
#[cfg(any(test, feature = "test-utils"))]
2120
pub use chains::test_utils;
2221

2322
pub use chains::pecorino;

crates/constants/src/types/chains.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ pub enum KnownChains {
1717
/// Pecorino chain.
1818
Pecorino,
1919
/// Test chain.
20-
#[cfg(any(test, feature = "test-utils"))]
2120
Test,
2221
}
2322

@@ -27,7 +26,6 @@ impl FromStr for KnownChains {
2726
fn from_str(s: &str) -> Result<Self, Self::Err> {
2827
let s = s.trim().to_lowercase();
2928
match s.as_str() {
30-
#[cfg(any(test, feature = "test-utils"))]
3129
"test" => Ok(Self::Test),
3230
"pecorino" => Ok(Self::Pecorino),
3331
_ => Err(ParseChainError::ChainNotSupported(s)),

crates/constants/src/types/environment.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ impl SignetEnvironmentConstants {
2828
}
2929

3030
/// Get the hard-coded local test rollup constants.
31-
#[cfg(any(test, feature = "test-utils"))]
3231
pub const fn test() -> Self {
3332
crate::chains::test_utils::TEST_ENV
3433
}
@@ -55,7 +54,6 @@ impl TryFrom<KnownChains> for SignetEnvironmentConstants {
5554
fn try_from(chain: KnownChains) -> Result<Self, Self::Error> {
5655
match chain {
5756
KnownChains::Pecorino => Ok(Self::pecorino()),
58-
#[cfg(any(test, feature = "test-utils"))]
5957
KnownChains::Test => Ok(Self::test()),
6058
}
6159
}

crates/constants/src/types/host.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ impl HostConstants {
6262
}
6363

6464
/// Get the hard-coded local test host constants.
65-
#[cfg(any(test, feature = "test-utils"))]
6665
pub const fn test() -> Self {
6766
crate::chains::test_utils::HOST
6867
}
@@ -148,7 +147,6 @@ impl FromStr for HostConstants {
148147
let chain: KnownChains = s.parse()?;
149148
match chain {
150149
KnownChains::Pecorino => Ok(Self::pecorino()),
151-
#[cfg(any(test, feature = "test-utils"))]
152150
KnownChains::Test => Ok(Self::test()),
153151
}
154152
}

crates/constants/src/types/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ impl SignetSystemConstants {
5353
}
5454

5555
/// Get the hard-coded local test constants.
56-
#[cfg(any(test, feature = "test-utils"))]
5756
pub const fn test() -> Self {
5857
crate::chains::test_utils::TEST_SYS
5958
}
@@ -227,7 +226,6 @@ impl TryFrom<KnownChains> for SignetSystemConstants {
227226
fn try_from(chain: KnownChains) -> Result<Self, Self::Error> {
228227
match chain {
229228
KnownChains::Pecorino => Ok(Self::pecorino()),
230-
#[cfg(any(test, feature = "test-utils"))]
231229
KnownChains::Test => Ok(Self::test()),
232230
}
233231
}
@@ -265,7 +263,6 @@ impl SignetConstants {
265263
}
266264

267265
/// Get the hard-coded local test rollup constants.
268-
#[cfg(any(test, feature = "test-utils"))]
269266
pub const fn test() -> Self {
270267
crate::chains::test_utils::TEST
271268
}
@@ -297,7 +294,6 @@ impl TryFrom<KnownChains> for SignetConstants {
297294
fn try_from(chain: KnownChains) -> Result<Self, Self::Error> {
298295
match chain {
299296
KnownChains::Pecorino => Ok(Self::pecorino()),
300-
#[cfg(any(test, feature = "test-utils"))]
301297
KnownChains::Test => Ok(Self::test()),
302298
}
303299
}

crates/constants/src/types/rollup.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ impl RollupConstants {
4949
}
5050

5151
/// Get the hard-coded local test rollup constants.
52-
#[cfg(any(test, feature = "test-utils"))]
5352
pub const fn test() -> Self {
5453
crate::chains::test_utils::ROLLUP
5554
}
@@ -113,7 +112,6 @@ impl TryFrom<KnownChains> for RollupConstants {
113112
fn try_from(chain: KnownChains) -> Result<Self, Self::Error> {
114113
match chain {
115114
KnownChains::Pecorino => Ok(Self::pecorino()),
116-
#[cfg(any(test, feature = "test-utils"))]
117115
KnownChains::Test => Ok(Self::test()),
118116
}
119117
}

0 commit comments

Comments
 (0)