DioxusLabs / DioxusLabs/dioxus

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

Open
#3,410 1 comment 1 reaction 0 assignees View on GitHub
bug cli
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**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](https://github.com/user-attachments/assets/26509226-e8a9-4426-8efe-6cfe566b26f0)

Even though this is [not the expected usage](https://discord.com/channels/899851952891002890/928812591126569000/1319364607122341988), 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](https://github.com/user-attachments/assets/0a612a63-ea61-4d3e-aeb2-9eb7638f073a)

**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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.