DioxusLabs / DioxusLabs/dioxus
Proc macros are improperly sanitized
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
When using the `component` and `rsx` macros (and possibly others) without importing the prelude it will complain about
- use of unresolved module or unlinked crate `dioxus_core`
- use of unresolved module or unlinked crate `dioxus_elements`
- cannot find type `GlobalSignal`
**Steps To Reproduce**
Cargo.toml
```toml
...
dioxus = "0.6.3"
```
```rust
use dixous::prelude::{Element, rsx, component};
#[component(App)]
fn app() -> Element {
rsx! {
div { "This should work" }
}
}
```
**Expected behavior**
This should work entirely as normal.
**Environment:**
- Dioxus version: 0.6.3
- Rust version: 1.90
- OS info: 6.15.8-arch1-2
- App platform: Irrelevant
**Questionnaire**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.