Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix template! cfg condition #1822

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Fix template! cfg condition #1822

merged 1 commit into from
Oct 2, 2023

Conversation

Dragonink
Copy link
Contributor

The current #[cfg] condition for the template! aliased as view! is not the negation of the condition for the real template!.
This causes an error when the compilation target is not wasm32 but the template_macro feature is enabled, which happens with rust-analyzer in a workspace for example.

The fix is just to use the negation of condition for the real template!.

@gbj
Copy link
Collaborator

gbj commented Oct 2, 2023

Thanks very much! This is clearly right.

@gbj gbj merged commit ac8dd7a into leptos-rs:main Oct 2, 2023
56 checks passed
@Dragonink Dragonink deleted the fix-template-cfg branch October 2, 2023 13:27
maccesch pushed a commit to maccesch/leptos that referenced this pull request Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants