Skip to content

Commit 0850425

Browse files
doc: add code explanation
1 parent e17568c commit 0850425

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler-cli/src/publish.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ fn do_build_hex_tarball(paths: &ProjectPaths, config: &mut PackageConfig) -> Res
382382
});
383383
}
384384

385+
// empty_modules is a list of modules that contain no public definitions
386+
// it is used to refuse to publish packages that are not yet finished.
385387
let empty_modules: Vec<_> = built
386388
.root_package
387389
.modules

0 commit comments

Comments
 (0)