comprehensive-rust

(★ 33,320)

이 과정은 Google의 Android 팀에서 사용하는 Rust 코스입니다. Rust를 빠르게 가르칠 수 있는 자료를 제공합니다.

파일 탐색기

  • .bazelrc
  • .bazelversion
  • .gitattributes
  • .gitignore
  • book.toml
  • BUILD.bazel
  • Cargo.lock
  • Cargo.toml
  • CONTRIBUTING.md
  • dprint.json
  • GEMINI.md
  • LICENSE
  • LICENSE-CC-BY
  • MODULE.bazel
  • MODULE.bazel.lock
  • README.md
  • REPO.bazel
  • rustfmt.toml
  • STYLE.md
  • TRANSLATIONS.md

# 설치 가이드

rust
사전 준비물

설치 및 실행 절차

git clone https://github.com/google/comprehensive-rust/

저장소를 클론합니다.

cd comprehensive-rust

프로젝트 디렉토리로 이동합니다.

cargo xtask install-tools

프로젝트에 필요한 도구들을 설치합니다.

관련 영상 가이드

Rust Training at Scale | Rust Global @ RustConf 2024

핵심 명령어

cargo xtask install-tools

프로젝트가 의존하는 모든 도구를 설치합니다.

cargo xtask serve

과정 내용을 확인할 수 있는 웹 서버를 시작합니다.

cargo xtask rust-tests

포함된 Rust 코드 스니펫을 테스트합니다.

cargo xtask build

book/ 디렉토리에 정적 버전의 과정을 생성합니다.

Windows 환경에서는 symlinks를 활성화하고 개발자 모드를 켜야 합니다.

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

cargo

설명 보기 ▼

Rust 프로젝트 및 모듈 종속성(크레이트)을 관리.
`build`와 같은 일부 하위 명령에는 자체 사용 설명서가 있습니다.
더 많은 정보: <https://doc.rust-lang.org/stable/cargo/>.

cargo search {{search_string}}

크레이트 검색:

cargo install {{crate_name}}

바이너리 크레이트 설치:

cargo install --list

설치된 바이너리 크레이트 나열:

🔍

git clone

설명 보기 ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

git config

설명 보기 ▼

Manage custom configuration options for Git repositories.
These configurations can be local (for the current repository) or global (for the current user).

git config --global {{user.name|user.email}} "{{Your Name|[email protected]}}"

Globally set your name or email (this information is required to commit to a repository and will be included in all commits):

git config --{{local|global|system}} {{[-l|--list]}} --show-origin

List local, global, or system configuration entries and show their file location:

git config --global {{alias.unstage}} "reset HEAD --"

Set the global value of a given configuration entry (in this case an alias):

# 프로젝트 배지

// repository documentation