crate-module/crate #335
Replies: 7 comments 4 replies
-
完成一个 Package 同时拥有 src/main.rs 和 src/lib.rs ,要怎么cargo new 呢? |
Beta Was this translation helpful? Give feedback.
1 reply
-
还是不太明白。 我们可以用cargo new 简单地新建一个 package,里面会有一个默认的main.rs,也就是同名的crate。 但是package里面可以包含若干个 crate,那么我如何通过 cargo在这个package里面新建新的 crate 呢? |
Beta Was this translation helpful? Give feedback.
3 replies
-
mark finished |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
crate-module/crate
Learning Rust By Practice, narrowing the gap between beginner and skilled-dev with challenging examples, exercises and projects.
https://zh.practice.rs/crate-module/crate.html
Beta Was this translation helpful? Give feedback.
All reactions