dioxus-core-macro

Crates.iodioxus-core-macro
lib.rsdioxus-core-macro
version0.6.0-alpha.4
sourcesrc
created_at2021-02-28 22:25:09.733268
updated_at2024-11-01 23:27:22.562097
descriptionCore macro for Dioxus Virtual DOM
homepagehttps://dioxuslabs.com
repositoryhttps://github.com/DioxusLabs/dioxus/
max_upload_size
id362013
size136,124
Jonathan Kelley (jkelleyrtp)

documentation

README

dioxus-core-macro

Crates.io MIT licensed Build Status Discord chat

Website | Guides | API Docs | Chat

Overview

dioxus-core-macro provides a handful of helpful macros used by the dioxus crate. These include:

  • The rsx! macro that underpins templates and node creation.
  • The component attribute macro denotes a function as a Dioxus component. Currently, this:
    • Transforms function arguments into an auto-derived struct.
    • Ensures that your component name uses PascalCase.
    • Probably more stuff in the future. This macro allows us to have a way of distinguishing functions and components, which can be quite handy.
  • The format_args_f macro which allows f-string formatting with support for expressions.

Contributing

  • Report issues on our issue tracker.
  • Join the discord and ask questions!

License

This project is licensed under the MIT license.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you shall be licensed as MIT without any additional terms or conditions.

Commit count: 5571

cargo fmt