๐งฉ OpenSASS
๐ง Linux (Recommended) |
๐ช Windows |
|---|---|
cargo install opensass |
cargo install opensass |
| Download Executable File | Download .exe File |
os -h |
os -h |
๐งฉ OpenSASS: A CLI tool for downloading reusable OpenSASS components from crates.io and integrating them into your WASM frontend projects.
๐ Table of Contents
๐ Installation
To install the CLI:
Or build from source:
โ What is OpenSASS?
OpenSASS is a modular CLI tool that enables you to:
- Download reusable Rust/WASM components published to
crates.io. - Automatically resolve and import component-specific dependencies and features.
- Copy relevant source files directly into your
src/directory. - Seamlessly integrate with frontend frameworks like
Yew,Leptos, andDioxus.
It simplifies the process of reusing frontend Rust code across projects.
โจ Features
- ๐งฉ Add OpenSASS component-based crates with a single command.
- โ Automatically updates
Cargo.tomlwith proper features. - ๐ Copies only the
src/files related to the specified feature.
๐ก Usage
Add an OpenSASS component to your project
This will:
- Download the
i18nrscrate. - Extract files only related to the
yewfeature. - Copy
src/files into your project. - Update your
Cargo.tomldependencies and feature flags.
๐งช Examples
Using with Yew
Using with Leptos
Using with Dioxus
๐ฆ Roadmap
- Add components by feature.
- Auto-update
lib.rs&Cargo.toml. - Initialize custom WASM templates.
- TUI support.
- VS Code extension?
๐ค Contributing
Contributions are welcome! Please:
- Fork this repo
- Create your branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -am 'Add new feature') - Push and open a PR
๐ License
Licensed under the MIT License.