chore: split unstable features into independent flags (#469)

This commit is contained in:
Santiago Carmuega 2024-05-27 18:42:22 -03:00 committed by GitHub
parent d4608cc297
commit 6b3ac2f733
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 6 deletions

View file

@ -11,7 +11,6 @@ readme = "../README.md"
authors = ["Santiago Carmuega <santiago@carmuega.me>"]
[dependencies]
pallas-applying = { version = "=0.26.0", path = "../pallas-applying/" }
pallas-network = { version = "=0.26.0", path = "../pallas-network/" }
pallas-primitives = { version = "=0.26.0", path = "../pallas-primitives/" }
pallas-traverse = { version = "=0.26.0", path = "../pallas-traverse/" }
@ -21,9 +20,14 @@ pallas-codec = { version = "=0.26.0", path = "../pallas-codec/" }
pallas-utxorpc = { version = "=0.26.0", path = "../pallas-utxorpc/" }
pallas-configs = { version = "=0.26.0", path = "../pallas-configs/" }
pallas-txbuilder = { version = "=0.26.0", path = "../pallas-txbuilder/" }
pallas-applying = { version = "=0.26.0", path = "../pallas-applying/", optional = true }
pallas-rolldb = { version = "=0.26.0", path = "../pallas-rolldb/", optional = true }
pallas-wallet = { version = "=0.26.0", path = "../pallas-wallet/", optional = true }
pallas-hardano = { version = "=0.26.0", path = "../pallas-hardano/", optional = true }
[features]
unstable = ["pallas-rolldb", "pallas-wallet", "pallas-hardano"]
rolldb = ["pallas-rolldb"]
hardano = ["pallas-hardano"]
wallet = ["pallas-wallet"]
applying = ["pallas-applying"]
unstable = ["rolldb", "hardano", "wallet", "applying"]

View file

@ -44,21 +44,21 @@ pub mod interop {
pub mod storage {
//! Storage engines for chain-related persistence
#[cfg(feature = "unstable")]
#[cfg(all(feature = "rolldb"))]
#[doc(inline)]
pub use pallas_rolldb as rolldb;
#[cfg(feature = "unstable")]
#[cfg(feature = "hardano")]
#[doc(inline)]
pub use pallas_hardano::storage as hardano;
}
#[doc(inline)]
#[cfg(feature = "unstable")]
#[cfg(feature = "applying")]
pub use pallas_applying as applying;
#[doc(inline)]
#[cfg(feature = "unstable")]
#[cfg(feature = "wallet")]
pub use pallas_wallet as wallet;
#[doc(inline)]