Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update root crate re-exports #536

Merged
merged 2 commits into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading