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

Using "fullstack" feature is not equivalent to using it separately for server and web client #3410

Open
Andrew15-5 opened this issue Dec 19, 2024 · 0 comments
Labels
bug Something isn't working cli Related to the dioxus-cli program

Comments

@Andrew15-5
Copy link
Contributor

Andrew15-5 commented Dec 19, 2024

Problem

I want to only use Dioxus Fullstack for the Web platform, so I have to separately add fullstack to the web and server features, but this disables the fullstack, i.e., the build is broken/not working in the end.

image

Even though this is not the expected usage, I think it's valid, since it reduces the bloat during development for other platforms and for the release binaries for these platforms.

Steps To Reproduce

Steps to reproduce the behavior:

  • dx new test --subtemplate Bare-Bones -o is_fullstack=false -o is_router=false -o is_tailwind=false -o default_platform=web
  • cd test
  • sed '/default/d' Cargo.toml | sd 'web"]' 'web", "dioxus/fullstack"]' | sed '/web/iserver = ["dioxus/server", "dioxus/fullstack"]' | sponge Cargo.toml
  • dx serve --platform web

Expected behavior

It should be the same as doing

  • dx new test --subtemplate Bare-Bones -o is_fullstack=true -o is_router=false -o is_tailwind=false -o default_platform=web
  • cd test
  • dx serve --platform web

image

Environment:

  • Dioxus version: v0.6.1
  • Rust version: rustc 1.83.0-nightly (fb4aebddd 2024-09-30)
  • OS info: Pop!_OS 22.04
  • App platform: web

Questionnaire

I'm interested in fixing this myself but don't know where to start.
I don't have time to fix this right now, but maybe later.

@ealmloff ealmloff added bug Something isn't working cli Related to the dioxus-cli program labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the dioxus-cli program
Projects
None yet
Development

No branches or pull requests

2 participants