dris-macros 0.1.0

dris 的属性宏(#[component]/#[constructor])
Documentation
  • Coverage
  • 33.33%
    1 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 1.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 250.67 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • wuhaiji

dris-macros

dris-macros 提供 dris 的属性宏:

  • #[component]:标记一个组件类型(struct)。
  • #[constructor]:标记组件的构造函数(pub fn,不允许 self 参数)。

一般情况下你不需要直接依赖它:dris-rt 会重新导出这些宏,用户侧通常只需要依赖并 use dris_rt::{component, constructor};