What is the module of a rust file?

后端 未结 0 1811
逝去的感伤
逝去的感伤 2020-12-19 09:14

Given a rust file in a cargo package, how do I get its absolute module name?

So, if I have a directory structure as follows:

Cargo.toml
/src/lib.rs
/sr         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题