rust-cookbook-zh icon indicating copy to clipboard operation
rust-cookbook-zh copied to clipboard

🇨🇳翻译: <rust-cookbook> Rust 生态系统 crate包的良好实践合集 ❤️ 校对 ✅

rust-lang-nursery/rust-cookbook translate-svg

「 这个Rust Cookbook是一个简单的rust生态系统的 crate 包集合, 展示完成常见编程任务的良好实践的示例.」

中文 | english


校对 ✅

翻译的原文 与日期 最新更新 更多
commit ⏰ 2019-04-16 last 中文翻译
  • [x] [readme]

  • [x] src/SUMMARY.md

  • [x] 目录表

  • [x] 关于

  • [x] 算法

    • [x] 生成随机值
      • [x] randomness/rand.zh.md
      • [x] randomness/rand-range.zh.md
      • [x] randomness/rand-dist.zh.md
      • [x] randomness/rand-custom.zh.md
      • [x] randomness/rand-passwd.zh.md
      • [x] randomness/rand-choose.zh.md
    • [x] 排序向量
      • [x] sorting/sort.zh.md
      • [x] sorting/sort_float.zh.md
      • [x] sorting/sort_struct.zh.md
  • [x] 命令行

    • [x] 参数解析
      • [x] clap 入门
    • [x] ANSI 终端
      • [x] ANSI 终端
  • [x] 压缩

    • [x] 与 Tarballs 合作
      • [x] 解压缩
      • [x] 压缩
      • [x] 去前缀
  • [x] 并发性

    • [x] 显式线程
      • [x] thread/crossbeam-spawn.zh.md
      • [x] thread/global-mut-state.zh.md
      • [x] thread/threadpool-walk.zh.md
      • [x] thread/threadpool-fractal.zh.md
    • [x] 数据并行性
      • [x] parallel/rayon-iter-mut.zh.md
      • [x] parallel/rayon-any-all.zh.md
      • [x] parallel/rayon-parallel-search.zh.md
      • [x] parallel/rayon-parallel-sort.zh.md
      • [x] parallel/rayon-map-reduce.zh.md
      • [x] parallel/rayon-thumbnails.zh.md
  • [x] 密码学

    • [x] 哈希
      • [x] hashing/sha-digest.md
      • [x] hashing/hmac.md
    • [x] 加密
      • [x] encryption/pbkdf2.zh.md
  • [x] 数据结构

    • [x] 位字段
      • [x] bitfield/bitfield.zh.md
  • [x] 数据库

    • [x] SQLite
      • [x] sqlite/initialization.zh.md}}
      • [x] sqlite/insert_select.zh.md}}
      • [x] sqlite/transactions.zh.md}}
    • [x] Postgres
      • [x] postgres/create_tables.md
      • [x] postgres/insert_query_data.md
      • [x] postgres/aggregate_data.md
  • [x] 日期和时间

    • [x] 持续时间和计算
      • [x] duration/profile.md
      • [x] duration/checked.md
      • [x] duration/timezone.md
    • [x] 解析与显示
      • [x] parse/current.md
      • [x] parse/timestamp.md
      • [x] parse/format.md
      • [x] parse/string.md
  • [x] 开发工具

    • [x] 调试
      • [x] 日志消息
        • [x] log/log-debug.md
        • [x] log/log-error.md
        • [x] log/log-stdout.md
        • [x] log/log-custom-logger.md
        • [x] log/log-syslog.md
      • [x] 配置日志记录
        • [x] config_log/log-mod.zh.md
        • [x] config_log/log-env-variable.zh.md
        • [x] config_log/log-timestamp.zh.md
        • [x] config_log/log-custom.zh.md
    • [x] 版本控制 - [ ]versioning/semver-increment.md
      • [x] versioning/semver-complex.md
      • [x] versioning/semver-prerelease.md
      • [x] versioning/semver-latest.md
      • [x] versioning/semver-command.md
    • [x] 建立时间工具
      • [x] build_tools/cc-bundled-static.md 编译,并静态链接到捆绑的 C 库
      • [x] build_tools/cc-bundled-cpp.md 编译,并静态链接到捆绑的 C++ 库
      • [x] build_tools/cc-defines.md
  • [x] 编码

    • [x] 字符集
      • [x] string/percent-encode.md
      • [x] string/url-encode.md
      • [x] string/hex.md
      • [x] string/base64.md
    • [x] CSV 处理
      • [x] csv/read.md
      • [x] csv/delimiter.md
      • [x] csv/filter.md
      • [x] csv/invalid.md
      • [x] csv/serialize.md
      • [x] csv/serde-serialize.md
      • [x] csv/transform.md
    • [x] 结构化数据
      • [x] complex/json.md
      • [x] complex/toml.md
      • [x] complex/endian-byte.md
  • [x] 错误处理

    • [x] 处理错误变量
      • [x] handle/main.md
      • [x] handle/retain.md
      • [x] handle/backtrace.md
  • [x] 文件系统

    • [x] 读写
      • [x] read-write/read-file.md
      • [x] read-write/same-file.md
      • [x] read-write/memmap.md
    • [x] 目录穿梭
      • [x] dir/modified.md
      • [x] dir/loops.md
      • [x] dir/duplicate-name.md
      • [x] dir/find-file.md
      • [x] dir/skip-dot.md
      • [x] dir/sizes.md
      • [x] dir/png.md
      • [x] dir/ignore-case.md
  • [x] 硬件支持

    • [x] 处理器
      • [x] processor/cpu-count.md
  • [x] 内存管理

    • [x] 全局静态
      • [x] global_static/lazy-constant.md
  • [x] 网络

    • [x] 服务器
      • [x] server/listen-unused.md
  • [x] 操作系统

    • [x] 外部命令
      • [x] external/process-output.md
      • [x] external/send-input.md
      • [x] external/piped.md
      • [x] external/error-file.md
      • [x] external/continuous.md
  • [x] 科学类

    • [x] 数学
      • [x] 线性代数
        • [x] linear_algebra/vector-sum.md
        • [x] linear_algebra/vector-norm.md
        • [x] linear_algebra/add-matrices.md
        • [x] linear_algebra/multiply-matrices.md
        • [x] linear_algebra/multiply-scalar-vector-matrix.md
        • [x] linear_algebra/invert-matrix.md
      • [x] 三角法
        • [x] trigonometry/side-length.md
        • [x] trigonometry/tan-sin-cos.md
        • [x] trigonometry/latitude-longitude.md
      • [x] 复数
        • [x] complex_numbers/create-complex.md
        • [x] complex_numbers/add-complex.md
        • [x] complex_numbers/mathematical-functions.md
      • [x] 统计
        • [x] statistics/central-tendency.md
        • [x] statistics/standard-deviation.md
      • [x] 杂项
        • [x] miscellaneous/big-integers.md
  • [x] 文本处理

    • [x] 正则表达式
      • [x] regex/email.md
      • [x] regex/hashtags.md
      • [x] regex/phone.md
      • [x] regex/filter-log.md
      • [x] regex/replace.md
    • [x] 字符串解析
      • [x] string_parsing/graphemes.zh.md
      • [x] string_parsing/from_str.zh.md
  • [x] 网页编程

    • [x] 提取链接
      • [x] scraping/extract-links.md
      • [x] scraping/broken.md
      • [x] scraping/unique.md
    • [x] 统一资源定位地址:URL
      • [x] url/parse.md
      • [x] url/base.md
      • [x] url/new.md
      • [x] url/origin.md
      • [x] url/fragment.md
    • [x] 媒体类型
      • [x] mime/string.md
      • [x] mime/filename.md
      • [x] mime/request.md
    • [x] 客户端
      • [x] 提出请求
        • [x] requests/get.md
      • [x] 调用 Web API
        • [x] api/rest-get.md
        • [x] api/rest-head.md
        • [x] api/rest-post.md
        • [x] api/paginated.md
      • [x] 下载
        • [x] download/basic.md
        • [x] download/post-file.md
        • [x] download/partial.md

贡献

欢迎 👏 勘误/校对/更新贡献 😊 具体贡献请看

生活

If help, buy me coffee —— 营养跟不上了,给我来瓶营养快线吧! 💰


Rust Cookbook  Build Status travis Build Status appveyor

read it here.

这个Rust Cookbook是一个简单的rust生态系统的 crate 包集合, 展示完成常见编程任务的良好实践的示例.

这些例子是完整的,适合直接复制到新的 Cargo 项目中.它们经过测试并保证可以正常工作.

离线阅读

如果您想在本地阅读:

$ git clone https://github.com/rust-lang-nursery/rust-cookbook
$ cd rust-cookbook
$ cargo install mdbook --vers "0.1.8"
$ mdbook serve --open

这会输出在book子目录.可以从打开 Web 浏览器

$ xdg-open ./book/index.html # linux
$ start .\book\index.html    # windows
$ open ./book/index.html     # mac

贡献

这个项目旨在让新的 rust 程序员更容易做出贡献,并且是参与 Rust 社区的简单方法.它需要并欢迎帮助.详情见贡献..

  • [ ] [ ] 详情在 GitHub 上的CONTRIBUTING.zh.md.

执照cc0-badge

Rust Cookbook 根据 Creative Commons Zero v1.0 Universal License 获得(许可证 CC0要么https://creativecommons.org/publicdomain/zero/1.0/legalcode)

除非您另有明确说明,否则您按照 CC0-1.0 许可证的规定有意提交包含在 Rust Cookbook 中的任何贡献, 应为致力于公共领域上所述的,并没有任何附加条款或条件.