Skip to content

Commit 25e1b42

Browse files
committed
Remove build config evaluate
1 parent b689f30 commit 25e1b42

File tree

8 files changed

+7
-37
lines changed

8 files changed

+7
-37
lines changed

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ pallas-codec = { git = "https://github.com/blockfrost/pallas.git", tag = "blockf
4343
pallas-addresses = { git = "https://github.com/blockfrost/pallas.git", tag = "blockfrost-platform-0.0.3-alpha5" }
4444
pallas-primitives = { git = "https://github.com/blockfrost/pallas.git", tag = "blockfrost-platform-0.0.3-alpha5" }
4545
pallas-hardano = { git = "https://github.com/blockfrost/pallas.git", tag = "blockfrost-platform-0.0.3-alpha5" }
46-
[target.'cfg(not(target_os = "windows"))'.dependencies]
47-
pallas-validate = { git = "https://github.com/blockfrost/pallas.git", tag = "blockfrost-platform-0.0.3-alpha5", features = [
48-
"phase2",
49-
] }
46+
pallas-validate = { git = "https://github.com/blockfrost/pallas.git", tag = "blockfrost-platform-0.0.3-alpha5" }
5047
reqwest = "0.12.12"
5148
hex = "0.4.3"
5249
metrics = { version = "0.24.1", default-features = false }

build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ fn main() {
44

55
build_utils::git::set_git_env();
66
build_utils::testgen_hs::ensure(os, arch);
7-
build_utils::features::evaluate(os, arch);
87
}
98

109
fn target_os() -> &'static str {

crates/build_utils/src/features.rs

Lines changed: 0 additions & 12 deletions
This file was deleted.

crates/build_utils/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
pub mod git;
2-
pub mod testgen_hs;
3-
pub mod features;
2+
pub mod testgen_hs;

src/api/utils.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
#[cfg(evaluate)]
21
pub mod txs;

src/api/utils/txs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
#[cfg(evaluate)]
21
pub mod evaluate;

src/server/routes/hidden.rs

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#[cfg(evaluate)]
21
use crate::api::utils;
32
use crate::api::{
43
accounts, addresses, assets, blocks, epochs, governance, health, ledger, metadata, network,
@@ -134,20 +133,11 @@ pub fn get_hidden_api_routes(enable_metrics: bool) -> Router<AppState> {
134133
.route("/txs/{hash}/metadata/cbor", get(txs::hash::metadata::cbor::route))
135134
.route("/txs/{hash}/redeemers", get(txs::hash::redeemers::route))
136135
.route("/txs/{hash}/required_signers", get(txs::hash::required_signers::route))
137-
.route("/txs/{hash}/cbor", get(txs::hash::cbor::route));
138-
139-
#[cfg(evaluate)]
140-
{
141-
router = router
142-
.route(
143-
"/utils/tx/evaluate",
144-
post(utils::txs::evaluate::root::route),
145-
)
146-
.route(
147-
"/utils/tx/evaluate/utxos",
148-
post(utils::txs::evaluate::utxos::route),
149-
);
150-
}
136+
.route("/txs/{hash}/cbor", get(txs::hash::cbor::route))
137+
138+
// tx evaluate
139+
.route("/utils/tx/evaluate",post(utils::txs::evaluate::root::route))
140+
.route("/utils/tx/evaluate/utxos",post(utils::txs::evaluate::utxos::route));
151141

152142
if enable_metrics {
153143
router = router.route_layer(from_fn(track_http_metrics));

tests/endpoints.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ mod common;
33
mod tx_builder;
44

55
pub mod api {
6-
#[cfg(evaluate)]
76
pub mod utils;
87
}

0 commit comments

Comments
 (0)