首页 > 其他 > 详细

servo-reading-2

时间:2015-09-26 20:03:28      阅读:269      评论:0      收藏:0      [点我收藏+]

crate 比 module大。

Modules allow you to partition your code within the crate itself.

 Rust has two distinct terms that relate to the module system: ‘crate’ and ‘module’. A crate is synonymous with a ‘library’ or ‘package’ in other languages. Hence “Cargo” as the name of Rust’s package management tool: you ship your crates to others with Cargo. Crates can produce an executable or a library, depending on the project.


http://doc.rust-lang.org/book/crates-and-modules.html

.
├── chinese
│   ├── farewells.rs
│   ├── greeting.rs
│   └── mod.rs
├── english
│   ├── farewells.rs
│   ├── greeting.rs
│   └── mod.rs
├── lib.rs
└── main.rs


http://www.ieyebrain.com:8080/rs/project/phrases/src/


http://www.ieyebrain.com:8080/servo/components/servo/



servo-reading-2

原文:http://my.oschina.net/u/612750/blog/511524

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!