Rust By Example 和訳リポジトリ教程

Rust By Example 和訳リポジトリ教程

rust-by-example-ja rust-by-exampleの和訳リポジトリ rust-by-example-ja 项目地址: https://gitcode.com/gh_mirrors/ru/rust-by-example-ja

1. 项目的目录结构及介绍

rust-by-example-ja/
├── .circleci/
│   └── config.yml
├── docs/
├── examples-en/
├── patches/
├── src-old/
├── src/
│   ├── hello/
│   ├── primitives/
│   ├── custom_types/
│   ├── variable_bindings/
│   ├── types/
│   ├── conversion/
│   ├── expressions/
│   ├── flow_control/
│   ├── functions/
│   ├── modules/
│   ├── crates/
│   ├── cargo/
│   ├── attributes/
│   ├── generics/
│   ├── scoping_rules/
│   ├── traits/
│   ├── macro_rules/
│   ├── error_handling/
│   ├── std/
│   ├── std_misc/
│   ├── testing/
│   ├── unsafe/
│   ├── compatibility/
│   └── meta/
├── tools/
│   └── circleci/
├── .gitattributes
├── .gitignore
├── .gitmodules
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING-en.md
├── CONTRIBUTING.md
├── LICENSE-APACHE
├── LICENSE-MIT
├── README-en.md
├── README.md
├── TranslationTable.md
├── book.toml
└── transcheck.toml

目录结构介绍

  • .circleci/: CircleCI 配置文件目录。
  • docs/: 文档目录,包含项目的文档文件。
  • examples-en/: 英文示例代码目录。
  • patches/: 补丁文件目录。
  • src-old/: 旧版本的源代码目录。
  • src/: 主要源代码目录,包含各种 Rust 示例代码。
  • tools/circleci/: CircleCI 工具目录。
  • .gitattributes: Git 属性配置文件。
  • .gitignore: Git 忽略文件配置。
  • .gitmodules: Git 子模块配置文件。
  • CODE_OF_CONDUCT.md: 行为准则文件。
  • CONTRIBUTING-en.md: 英文贡献指南文件。
  • CONTRIBUTING.md: 贡献指南文件。
  • LICENSE-APACHE: Apache 许可证文件。
  • LICENSE-MIT: MIT 许可证文件。
  • README-en.md: 英文 README 文件。
  • README.md: 项目介绍文件。
  • TranslationTable.md: 翻译对照表文件。
  • book.toml: mdBook 配置文件。
  • transcheck.toml: 翻译检查配置文件。

2. 项目的启动文件介绍

项目的启动文件主要是 src/ 目录下的各个示例代码文件。每个子目录代表一个 Rust 主题,例如 hello/ 目录包含基本的 "Hello, World!" 示例,primitives/ 目录包含 Rust 基本数据类型的示例。

3. 项目的配置文件介绍

book.toml

book.toml 是 mdBook 的配置文件,用于配置书籍的构建和渲染选项。以下是 book.toml 的部分内容示例:

[book]
title = "Rust By Example 和訳"
author = "rust-lang-ja"
description = "Rust by Example 的日文翻译版本"
src = "src"

[output.html]
theme = "rust"

transcheck.toml

transcheck.toml 是翻译检查工具的配置文件,用于配置翻译检查的选项。以下是 transcheck.toml 的部分内容示例:

[transcheck]
source = "src-en"
target = "src"

通过这些配置文件,可以定制项目的构建和翻译检查过程,确保项目的正确性和一致性。

rust-by-example-ja rust-by-exampleの和訳リポジトリ rust-by-example-ja 项目地址: https://gitcode.com/gh_mirrors/ru/rust-by-example-ja

猜你喜欢

转载自blog.csdn.net/gitblog_00083/article/details/142801039