Skip to content

RustLangES/RustLangES.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f9ab8e3 · Feb 18, 2024
Feb 13, 2024
Aug 24, 2023
Feb 18, 2024
Jan 7, 2024
Jan 28, 2024
Feb 18, 2024
Feb 18, 2024
Jan 8, 2024
Sep 3, 2023
Jan 7, 2024
Feb 18, 2024
Feb 18, 2024
Aug 23, 2023
Jan 7, 2024
Jan 7, 2024
Feb 18, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Feb 18, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Jan 7, 2024
Sep 1, 2023
Jan 7, 2024
Feb 18, 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
trunk build
trunk serve --open
# Or more verbose
trunk --config Trunk.toml serve --verbose --open

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.