Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

Smooth init with app config#1

Merged
max-wells merged 3 commits into
masterfrom
smooth_init_with_app_config
May 16, 2025
Merged

Smooth init with app config#1
max-wells merged 3 commits into
masterfrom
smooth_init_with_app_config

Conversation

@mayanktestweb

@mayanktestweb mayanktestweb commented May 15, 2025

Copy link
Copy Markdown
Collaborator

Smooth Initialization Of UI-CLI with app_config.toml

Problem

So previously initialization process had following problems

  1. Breaking of init process due to lack of tailwind-input-file property in Cargo.toml, but thing is we can not expect a new user to set it up before hand.
  2. Lack of proper dependency in application. Previously init process was forcing to install leptos@0.6.13 but new components are not compatible with leptos@06.13. Also new components have a dependency on tw_merge lib which was not being installed.
  3. Lastly, application configurations were dispersed in two files, i.e., Cargo.toml and Components.toml.

Solution

So while Cargo.toml is great place for everything Rust specific, our application should have it's own configuration file which will serve as a single source of truth through out the application. We have it as app_config.toml, which initially holds two important values tailwind-input-file and base-path-component.

We also have automated installation of leptos@latest with --features csr and tw_merge with --features variant. Note that we have not made our initial dependencies to have any version specific now. But since we my want to support Yew and Dioxus in future we will be specific about versions, their peer dependencies and also their boilerplate code.

Note: Branch has multiple commits with message explaining changes in each commit.

@max-wells

Copy link
Copy Markdown
Contributor

@mayanktestweb Thank you a lot for your contribution! 🙏

@max-wells max-wells merged commit 491b007 into master May 16, 2025
@max-wells max-wells deleted the smooth_init_with_app_config branch May 16, 2025 17:01
max-wells added a commit that referenced this pull request Mar 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants