You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
________________________________
发件人: WumaCoder ***@***.***>
发送时间: Thursday, August 11, 2022 10:04:44 AM
收件人: WumaCoder/rust-boom ***@***.***>
抄送: aiden ***@***.***>; Author ***@***.***>
主题: Re: [WumaCoder/rust-boom] rust初学者,关于包、crate和模块的问题求解答 (Issue #2)
crate:: 换成你的包名试试,我写了一个例子就在这个仓库里
―
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A2KMGSPENICDTJATZ6XKLMDVYRNTZANCNFSM56E7OFFA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
你好,我是rust 初学者,现在有个问题不知是否可以在这里请教下:
在两个crate 中,如何互相引用各自的mod,例如在lib.rs 中定义的mod 想要在main.rs 中使用。
尝试过使用
crate::
, 但是这个根只负责main.rs下,也尝试过将模块拆分成文件,但应该不是我想要的结果 ⬇️希望能得到解答,谢谢~
The text was updated successfully, but these errors were encountered: