Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个项目,其中包含许多设计时包(用于将组件安装到 IDE 中)。其中一些包有很长的requires子句,我想知道是否有办法删除那里列出的任何不是构建包的严格要求的包。
requires
为了清楚起见,我关心的是requires子句,而不是containsor (non-existent)uses子句。尽管这些是相关的,如果contains子句中的一个单元(或隐式导入)在另一个包中,则该包(或另一个需要它的包)需要在requires子句中。
contains
uses