File tree Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ compile_error!("Tests will always fail with cfg=fuzzing");
6262#[ macro_use]
6363extern crate alloc;
6464
65- extern crate lightning_types;
65+ pub extern crate lightning_types as types ;
6666
6767pub extern crate bitcoin;
6868#[ cfg( any( test, feature = "std" ) ) ]
Original file line number Diff line number Diff line change 1111//!
1212//! See [`lightning_types::features`] for the list of features currently supported.
1313//!
14+ //! Note that the use of types via this module is deprecated and will be removed in a future
15+ //! version. Instead, use feature objects via [`lightning::types::features`].
16+ //!
17+ //! [`lightning::types::features`]: crate::types::features
1418//! [BOLT #9]: https://github.com/lightning/bolts/blob/master/09-features.md
1519
1620pub use lightning_types:: features:: Features ;
Original file line number Diff line number Diff line change 88// licenses.
99
1010//! Implementations of various parts of the Lightning protocol are in this module.
11+ //!
12+ //! Note that the re-exports of [`PaymentHash`], [`PaymentPreimage`], and [`PaymentSecret`] here
13+ //! are deprecated and will be removed in a future version. Instead, use them via
14+ //! [`lightning::types::payment`].
15+ //!
16+ //! [`lightning::types::payment`]: crate::types::payment
1117
1218#[ cfg( any( test, feature = "_test_utils" ) ) ]
1319#[ macro_use]
Original file line number Diff line number Diff line change 88// licenses.
99
1010//! Various wrapper types (most around 32-byte arrays) for use in lightning.
11+ //!
12+ //! Note that the re-exports of [`PaymentHash`], [`PaymentPreimage`], and [`PaymentSecret`] here
13+ //! are deprecated and will be removed in a future version. Instead, use them via
14+ //! [`lightning::types::payment`].
15+ //!
16+ //! [`lightning::types::payment`]: crate::types::payment
1117
1218use crate :: chain:: transaction:: OutPoint ;
1319use crate :: io;
You can’t perform that action at this time.
0 commit comments