Skip to content

Commit

Permalink
chore: update root crate re-exports (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega authored Nov 3, 2024
1 parent b641c4e commit 00e1611
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 8 deletions.
2 changes: 2 additions & 0 deletions pallas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pallas-codec = { version = "=0.30.2", path = "../pallas-codec/" }
pallas-utxorpc = { version = "=0.30.2", path = "../pallas-utxorpc/" }
pallas-configs = { version = "=0.30.2", path = "../pallas-configs/" }
pallas-txbuilder = { version = "=0.30.2", path = "../pallas-txbuilder/" }
pallas-math = { version = "=0.30.2", path = "../pallas-math/", optional = true }
pallas-applying = { version = "=0.30.2", path = "../pallas-applying/", optional = true }
pallas-rolldb = { version = "=0.30.2", path = "../pallas-rolldb/", optional = true }
pallas-wallet = { version = "=0.30.2", path = "../pallas-wallet/", optional = true }
Expand All @@ -30,4 +31,5 @@ rolldb = ["pallas-rolldb"]
hardano = ["pallas-hardano"]
wallet = ["pallas-wallet"]
applying = ["pallas-applying"]
math = ["pallas-math"]
unstable = ["rolldb", "hardano", "wallet", "applying"]
47 changes: 39 additions & 8 deletions pallas/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ pub mod ledger {
pub use pallas_addresses as addresses;

#[doc(inline)]
// WARNING: this is deprecated, use `pallas::interop::hardano::configs` instead.
// Since deprecation notices don't work for re-exports we don't have a way to notify users.
pub use pallas_configs as configs;

#[doc(inline)]
#[cfg(feature = "pallas-applying")]
pub use pallas_applying as rules;
}

#[doc(inline)]
Expand All @@ -34,32 +40,57 @@ pub use pallas_crypto as crypto;
#[doc(inline)]
pub use pallas_codec as codec;

#[doc(inline)]
#[cfg(feature = "pallas-math")]
pub use pallas_math as math;

pub mod interop {
//! Interoperability with other protocols, formats & systems

#[doc(inline)]
pub use pallas_utxorpc as utxorpc;

#[cfg(feature = "pallas-hardano")]
pub mod hardano {
//! Interoperability with the Haskell Cardano node

#[doc(inline)]
pub use pallas_hardano::storage;

#[doc(inline)]
pub use pallas_configs as configs;
}
}

pub mod storage {
//! Storage engines for chain-related persistence

#[cfg(feature = "rolldb")]
#[doc(inline)]
pub use pallas_rolldb as rolldb;

#[cfg(feature = "hardano")]
#[cfg(feature = "pallas-hardano")]
#[doc(inline)]
// WARNING: this is deprecated, use `pallas::interop::hardano::storage` instead.
// Since deprecation notices don't work for re-exports we don't have a way to notify users.
pub use pallas_hardano::storage as hardano;
}

#[doc(inline)]
#[cfg(feature = "applying")]
#[cfg(feature = "pallas-applying")]
// WARNING: this is deprecated but since deprecation notices don't work for re-exports
// we don't have a way to notify users.
pub use pallas_applying as applying;

#[doc(inline)]
#[cfg(feature = "wallet")]
pub use pallas_wallet as wallet;
pub mod wallet {
//! Utilities for wallet implementations

#[doc(inline)]
#[cfg(feature = "pallas-wallet")]
pub use pallas_wallet as keystore;

#[doc(inline)]
pub use pallas_txbuilder as txbuilder;
}

#[doc(inline)]
// WARNING: this is deprecated, use `pallas::wallet::txbuilder` instead.
// Since deprecation notices don't work for re-exports we don't have a way to notify users.
pub use pallas_txbuilder as txbuilder;

0 comments on commit 00e1611

Please sign in to comment.