This is a my personal blog at <https://wangxy.fly.dev/>, written in Rust using the Leptos framework, and styled with Tailwind CSS.
- Rust
- Leptos
- Tailwind Css
- Tailwind/Typography
If you don't have cargo-leptos installed you can install it with
cargo install cargo-leptosThen cd into your project directory
cd blogcargo leptos watchTo use the Tailwind CSS JIT, you need to add the following to your package.json or execute the command below
bun run watchIf you have no bun environment, you can install it with
# Linux&MacOS
curl -fsSL https://bun.sh/install | bash
# Windows
powershell -c "irm bun.sh/install.ps1 | iex"
By default, cargo-leptos uses nightly Rust, cargo-generate, and sass. If you run into any trouble, you may need to install one or more of these tools.
rustup toolchain install nightly --allow-downgrade- make sure you have Rust nightlyrustup target add wasm32-unknown-unknown- add the ability to compile Rust to WebAssemblycargo install cargo-generate- installcargo-generatebinary (should be installed automatically in future)npm install -g sass- installdart-sass(should be optional in future
cargo leptos build --releaseWill generate your server binary in target/server/release and your site package in target/site
