Packages don't really exist as a concept at all. Supposedly `rustpkg` deals with "packages" but in reality, it just deals with crates.
And they're certainly not part of the module system. On Fri, Dec 13, 2013 at 8:14 PM, Liigo Zhuang <[email protected]> wrote: > What is the distinction of package and crate in Rust? > > > 2013/12/14 Patrick Walton <[email protected]> >> >> On 12/13/13 4:56 PM, Liigo Zhuang wrote: >>> >>> "package" and "module", we only need one. Most other language only have >>> one. The more, the more complicate. >>> >>> libstd.so: What we call it? "library" "package" "crate"?? other language >>> usually call it "library". >>> std::io::fs: We call it "module", other language usually call it >>> "package" or "module". >>> >>> So, whatever we call it, package and module, we only need ONE of them, >>> and let another gone. >> >> >> .NET has a two-level distinction: assembly and namespace. >> >> C++ has a three-level distinction in practice—namespace, >> library/executable, and translation unit—although C++'s is somewhat >> different. >> >> OCaml has a two-level distinction: library and module. >> >> D has a two-level distinction as far as I can tell: library and module. >> >> Racket has a two-level distinction as far as I can tell: package and >> module. >> >> Patrick >> >> _______________________________________________ >> Rust-dev mailing list >> [email protected] >> https://mail.mozilla.org/listinfo/rust-dev > > > > > -- > by Liigo, http://blog.csdn.net/liigo/ > Google+ https://plus.google.com/105597640837742873343/ > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev > _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
