π§ 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.
To install the CLI:
cargo install opensass
Or build from source:
git clone https://github.com/opensass/cli.git
cd cli
cargo build --release
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.
- π§© Add OpenSASS component-based crates with a single command.
- β Automatically updates
Cargo.toml
with proper features. - π Copies only the
src/
files related to the specified feature.
os add i18nrs yew
This will:
- Download the
i18nrs
crate. - Extract files only related to the
yew
feature. - Copy
src/
files into your project. - Update your
Cargo.toml
dependencies and feature flags.
os add radiors yew
os add radiors lep
os add radiors dio
- Add components by feature.
- Auto-update
lib.rs
&Cargo.toml
. - Initialize custom WASM templates.
- TUI support.
- VS Code extension?
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
Licensed under the MIT License.