#[macro_use]
extern crate alloc;
-extern crate lightning_types;
+pub extern crate lightning_types as types;
pub extern crate bitcoin;
#[cfg(any(test, feature = "std"))]
//!
//! See [`lightning_types::features`] for the list of features currently supported.
//!
+//! Note that the use of types via this module is deprecated and will be removed in a future
+//! version. Instead, use feature objects via [`lightning::types::features`].
+//!
+//! [`lightning::types::features`]: crate::types::features
//! [BOLT #9]: https://github.com/lightning/bolts/blob/master/09-features.md
pub use lightning_types::features::Features;
// licenses.
//! Implementations of various parts of the Lightning protocol are in this module.
+//!
+//! Note that the re-exports of [`PaymentHash`], [`PaymentPreimage`], and [`PaymentSecret`] here
+//! are deprecated and will be removed in a future version. Instead, use them via
+//! [`lightning::types::payment`].
+//!
+//! [`lightning::types::payment`]: crate::types::payment
#[cfg(any(test, feature = "_test_utils"))]
#[macro_use]
// licenses.
//! Various wrapper types (most around 32-byte arrays) for use in lightning.
+//!
+//! Note that the re-exports of [`PaymentHash`], [`PaymentPreimage`], and [`PaymentSecret`] here
+//! are deprecated and will be removed in a future version. Instead, use them via
+//! [`lightning::types::payment`].
+//!
+//! [`lightning::types::payment`]: crate::types::payment
use crate::chain::transaction::OutPoint;
use crate::io;