New syntax for package definition.

This commit is contained in:
Stephen Chung
2022-02-10 12:33:48 +08:00
parent 1c89c6be4f
commit d1a97be9e3
18 changed files with 60 additions and 22 deletions

View File

@@ -15,7 +15,7 @@ pub const FUNC_TO_DEBUG: &str = "to_debug";
def_package! {
/// Package of basic string utilities (e.g. printing)
crate::BasicStringPackage => |lib| {
pub BasicStringPackage(lib) {
lib.standard = true;
combine_with_exported_module!(lib, "print_debug", print_debug_functions);