yewprint/README.md
Cecile Tonglet 119ead376d
Update README.md
Forgot to update the ref of the yew commits
2021-01-19 15:17:44 +01:00

8 KiB

Yewprint Rust Netlify Status Discord API Docs

It's Blueprint, but for Yew in Rust.

Warning: This is in early development and it is possible it won't be finished if there is no interest. Don't use this in production! Please help or leave a star to let me know you are interested in this project.

Installation

Use as a library (in your project)

yewprint = { git = "https://github.com/cecton/yewprint.git", branch = "main" }

# right now you need a specific version of Yew to use Yewprint
yew = { git = "https://github.com/yewstack/yew.git", rev = "db3170f629f" }

# other yew dependencies need to use this version
# yew-router = { git = "https://github.com/yewstack/yew.git", rev = "db3170f629f" }
# yewtil = { git = "https://github.com/yewstack/yew.git", rev = "db3170f629f", features = ["pure"] }

You will also need the CSS from blueprint. For that you can either include the CSS file directly or you can look at the script build.sh and see how it is downloaded automatically.

Development

This section will walk you through setting up the environment required to modify the source of yewprint.

Prerequisites

Troubleshooting

  • I can't install cargo-watch on OSX.

    This happens on some machines. Try installing the pre-compiled binary instead.

Run the development server

./dev.sh

Roadmap