0

I have a submodule which I would like to be used in two modules. Is it possible to use the one submodule in multiple modules and how to do that?

predi
  • 5,528
  • 32
  • 60
Rewa Kale
  • 41
  • 1
  • 3

1 Answers1

0

No. A submodule may only belong to one module and may be included only by its main module or a submodule that belongs to the same main module.

Submodules are partial modules that contribute definitions to a module. A module may include any number of submodules, but each submodule may belong to only one module.

RFC7950, Section 5.1, Modules and submodules

A submodule MUST only be included by either the module to which it belongs or another submodule that belongs to that module.

RFC7950, Section 7.2.2, The "belongs-to" statement

Community
  • 1
  • 1
predi
  • 5,528
  • 32
  • 60