New syntax for def_package.
This commit is contained in:
@@ -8,11 +8,14 @@ use std::{any::TypeId, mem};
|
||||
|
||||
use super::string_basic::{print_with_func, FUNC_TO_STRING};
|
||||
|
||||
def_package!(crate:MoreStringPackage:"Additional string utilities, including string building.", lib, {
|
||||
lib.standard = true;
|
||||
def_package! {
|
||||
/// Package of additional string utilities over [`BasicStringPackage`][super::BasicStringPackage]
|
||||
crate::MoreStringPackage => |lib| {
|
||||
lib.standard = true;
|
||||
|
||||
combine_with_exported_module!(lib, "string", string_functions);
|
||||
});
|
||||
combine_with_exported_module!(lib, "string", string_functions);
|
||||
}
|
||||
}
|
||||
|
||||
#[export_module]
|
||||
mod string_functions {
|
||||
|
Reference in New Issue
Block a user