#session #type #macro #async-channel #channel #proc-macro #async

macro dialectic-macro

Procedural macros used by and exported from the Dialectic crate

1 unstable release

0.1.0 Apr 1, 2021

#43 in #async-channel

Download history 18/week @ 2024-03-14 21/week @ 2024-03-21 49/week @ 2024-03-28 33/week @ 2024-04-04 15/week @ 2024-04-11 14/week @ 2024-04-18 18/week @ 2024-04-25 15/week @ 2024-05-02 18/week @ 2024-05-09 16/week @ 2024-05-16 16/week @ 2024-05-23 11/week @ 2024-05-30 12/week @ 2024-06-06 13/week @ 2024-06-13 17/week @ 2024-06-20 7/week @ 2024-06-27

52 downloads per month
Used in 7 crates (via dialectic)

MIT license

160KB
2K SLoC

Rust license: MIT crates.io docs.rs documentation

This crate contains the Session!, Transmitter, and Receiver macros for use in Dialectic, as well as several other macros which are used internally to Dialectic. The dialectic-macro crate is considered an internal implementation detail and should never be relied upon or depended on outside of the dialectic crate itself, which re-exports all the important user-facing procedural macros defined in this crate.

For contributors

Internally, dialectic-macro is used to define large swathes of trait definitions which cover const generics and conversions between const generics and unary type-level representations. This is due to current limitations of const generics, and may be replaced in the future. Otherwise, dialectic-macro is the main dependent of the dialectic-compiler crate; its functionality is used within dialectic-macro to implement the Session! proc macro, and nowhere else.

Dependencies

~3.5MB
~75K SLoC