Skip to main content

package

Macro package 

Source
package!() { /* proc-macro */ }
Expand description

Declares the package: pub fn package() building it and, unless main: false, the program’s main serving it.

ⓘ
package! {
    name: "hello",
    description: "Says hello.",
    functions: [greet, tools::farewell],
}