Prune pallas dependencies.

Using 'pallas' as a dependency brings utxo-rpc other annoying dependencies such as _tokyo_. This not only makes the overall build longer, but it also prevents it to even work when targetting wasm.
This commit is contained in:
KtorZ
2024-08-03 14:14:49 +02:00
parent 09c065d332
commit 4645257e62
15 changed files with 73 additions and 499 deletions

View File

@@ -15,7 +15,10 @@ rust-version = "1.66.1"
build = "build.rs"
[dependencies]
aiken-lang = { path = "../aiken-lang", version = "1.0.31-alpha" }
askama = "0.12.0"
ciborium = "0.2.2"
cryptoxide = "0.4.4"
dirs = "4.0.0"
fslock = "0.2.1"
futures = "0.3.26"
@@ -25,31 +28,31 @@ indexmap = "1.9.2"
itertools = "0.10.5"
miette = { version = "5.9.0", features = ["fancy"] }
notify = "6.1.1"
num-bigint = "0.4.4"
owo-colors = { version = "3.5.0", features = ["supports-colors"] }
pallas.workspace = true
pallas-addresses.workspace = true
pallas-codec.workspace = true
pallas-crypto.workspace = true
pallas-primitives.workspace = true
pallas-traverse.workspace = true
patricia_tree = "0.8.0"
petgraph = "0.6.3"
pulldown-cmark = { version = "0.9.2", default-features = false }
rayon = "1.7.0"
regex = "1.7.1"
reqwest = { version = "0.11.14", features = ["blocking", "json"] }
semver = { version = "1.0.23", features = ["serde"] }
serde = { version = "1.0.152", features = ["derive"] }
serde_json = { version = "1.0.94", features = ["preserve_order"] }
strip-ansi-escapes = "0.1.1"
thiserror = "1.0.39"
tokio = { version = "1.26.0", features = ["full"] }
toml = "0.7.2"
uplc = { path = '../uplc', version = "1.0.31-alpha" }
vec1 = "1.10.1"
walkdir.workspace = true
zip = "0.6.4"
aiken-lang = { path = "../aiken-lang", version = "1.0.31-alpha" }
uplc = { path = '../uplc', version = "1.0.31-alpha" }
num-bigint = "0.4.4"
cryptoxide = "0.4.4"
vec1 = "1.10.1"
patricia_tree = "0.8.0"
ciborium = "0.2.2"
semver = { version = "1.0.23", features = ["serde"] }
[dev-dependencies]
blst = "0.3.11"
indoc = "2.0.1"

View File

@@ -5,7 +5,7 @@ use super::{
use aiken_lang::ast::Span;
use miette::{Diagnostic, NamedSource};
use owo_colors::{OwoColorize, Stream::Stdout};
use pallas::codec::minicbor as cbor;
use pallas_codec::minicbor as cbor;
use std::fmt::Debug;
use uplc::ast::Constant;
@@ -50,7 +50,7 @@ pub enum Error {
ParameterizedValidator { n: usize },
#[error(
"I couldn't compute the address of the given validator because it's actually a minting policy!",
"I couldn't compute the address of the given validator because it's actually a minting policy!"
)]
#[diagnostic(code("aiken::blueprint::address::minting_validator"))]
#[diagnostic(help(
@@ -60,7 +60,7 @@ pub enum Error {
UnexpectedMintingValidator,
#[error(
"I couldn't compute the policyId of the given validator because it's actually a spending policy!",
"I couldn't compute the policyId of the given validator because it's actually a spending policy!"
)]
#[diagnostic(code("aiken::blueprint::address::spending_validator"))]
#[diagnostic(help(

View File

@@ -116,7 +116,7 @@ pub enum Error {
#[error("I couldn't parse the provided stake address.")]
MalformedStakeAddress {
error: Option<pallas::ledger::addresses::Error>,
error: Option<pallas_addresses::Error>,
},
#[error("I didn't find any validator matching your criteria.")]

View File

@@ -48,11 +48,9 @@ use indexmap::IndexMap;
use miette::NamedSource;
use options::{CodeGenMode, Options};
use package_name::PackageName;
use pallas::ledger::{
addresses::{Address, Network, ShelleyAddress, ShelleyDelegationPart, StakePayload},
primitives::conway::{self as cardano, PolicyId},
traverse::ComputeHash,
};
use pallas_addresses::{Address, Network, ShelleyAddress, ShelleyDelegationPart, StakePayload};
use pallas_primitives::conway::{self as cardano, PolicyId};
use pallas_traverse::ComputeHash;
use std::{
collections::{BTreeSet, HashMap},
fs::{self, File},

View File

@@ -12,7 +12,7 @@ use cryptoxide::{blake2b::Blake2b, digest::Digest};
use indexmap::IndexMap;
use itertools::Itertools;
use owo_colors::{OwoColorize, Stream};
use pallas::ledger::primitives::alonzo::{Constr, PlutusData};
use pallas_primitives::alonzo::{Constr, PlutusData};
use patricia_tree::PatriciaMap;
use std::{
borrow::Borrow, collections::BTreeMap, convert::TryFrom, ops::Deref, path::PathBuf, rc::Rc,