Skip to content

RustLangES/RustLangES.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

718caa9 · Sep 10, 2024
Jul 18, 2024
Aug 24, 2023
Aug 22, 2024
Jan 7, 2024
May 16, 2024
Aug 22, 2024
Apr 27, 2024
Jan 8, 2024
Sep 3, 2023
Jan 7, 2024
Jul 15, 2024
Jul 15, 2024
Aug 23, 2023
Jul 18, 2024
Jul 22, 2024
May 1, 2024
Feb 20, 2024
Jan 7, 2024
Apr 27, 2024
Sep 10, 2024
May 1, 2024
Jan 7, 2024
Jan 7, 2024
May 1, 2024
Jan 7, 2024
Sep 10, 2024
Jan 7, 2024
Mar 9, 2024

Repository files navigation

image

GitHub Workflow Status (with event) GitHub Workflow Status (with event)

Requisitos Generales

antes de empezar tienes que instalar estos programas

Requisitos Windows >= 10

  • BusyBox
    • try: scoop install busybox
    • try: choco install busybox

Desarrollo

Note

necesitas fetch git submodules para clonar los assets externos para el desarrollo

git submodule update --init --recursive

Now you can run:

rustup toolchain install nightly
rustup default nightly
rustup target add wasm32-unknown-unknown
npm install
cargo install cargo-make
cargo make serve

For do a commit:

cargo install rusty-hook
cargo install leptosfmt --version 0.1.13

Configura tu VSCode

Agrega esto en tu settings.json

{
  "emmet.includeLanguages": {
    "rust": "html",
    "*.rs": "html"
  },
  "tailwindCSS.includeLanguages": {
      "rust": "html",
      "*.rs": "html"
  },
  "files.associations": {
      "*.rs": "rust"
  },
  "editor.quickSuggestions": {
    "other": "on",
    "comments": "on",
    "strings": true
  },
  "css.validate": false
}

Summary

This project uses a custom branch of Leptos to be able to directly serve the output directory as a static website.

cargo make serve serves the div directory with watch mode and hot-reload enabled. cargo make build builds the project in release. The output will be in the dist directory and the command will not serve it, but quit instead. cargo make fmt formats with rustfmt and leptosfmt.