tor-cell: Re-export paste so restrict_msg can work outside the crate.
This commit is contained in:
parent
0633f17131
commit
037d1658b2
|
@ -1,7 +1,7 @@
|
||||||
//! Declare a restricted variant of our message types.
|
//! Declare a restricted variant of our message types.
|
||||||
|
|
||||||
/// Re-export tor_bytes here, so that the macro can use it.
|
/// Re-export tor_bytes and paste here, so that the macro can use it.
|
||||||
pub use tor_bytes;
|
pub use {paste, tor_bytes};
|
||||||
|
|
||||||
/// Declare a restricted version of
|
/// Declare a restricted version of
|
||||||
/// [`AnyRelayMsg`](crate::relaycell::msg::AnyRelayMsg) or
|
/// [`AnyRelayMsg`](crate::relaycell::msg::AnyRelayMsg) or
|
||||||
|
@ -103,7 +103,7 @@ macro_rules! restricted_msg {
|
||||||
$(,)?
|
$(,)?
|
||||||
}
|
}
|
||||||
} => {
|
} => {
|
||||||
paste::paste!{
|
$crate::restrict::paste::paste!{
|
||||||
$(#[$meta])*
|
$(#[$meta])*
|
||||||
$v enum $name {
|
$v enum $name {
|
||||||
$(
|
$(
|
||||||
|
|
Loading…
Reference in New Issue