mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-12 23:47:16 +00:00
8b5ad5d925
* Moves index.html creation until after wasm creation so the webserver doesn't prematurely serve the page * sets up nasm for windows builds (to be superseded by Remove Dioxus CLI NASM dependency #2666 #2682) * puts magnanis-cli-support in a blocking task to prevent threadlocking during sequential builds * changes order of client/server builds such that the client is built before the server so the webserver doesn't prematurely serve invalid client code * declobbers "serve" such that each project gets a different dir in the target folder * uses nest_service instead of fallback so the router doesn't respond with fallback codes * reincorporates doge's fix from Fix hot-reloading on Windows #2544 |
||
---|---|---|
.. | ||
.vscode | ||
docs | ||
src | ||
tests | ||
Cargo.toml | ||
CHANGELOG.md | ||
README.md |
dioxus-core-macro
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.