chore: rename private macroses
This commit is contained in:
parent
1ab465680f
commit
d0f1d69d70
2 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "itconfig"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
authors = ["Dmitriy Pleshevskiy <dmitriy@ideascup.me>"]
|
||||
description = "Easy build a configs from environment variables and use it in globally."
|
||||
categories = ["config", "web-programming"]
|
||||
|
|
|
@ -261,7 +261,7 @@ macro_rules! __itconfig_parse_variables {
|
|||
tokens = [],
|
||||
$($args:tt)*
|
||||
) => {
|
||||
__config_impl!($($args)*);
|
||||
__itconfig_impl!($($args)*);
|
||||
};
|
||||
|
||||
// Invalid syntax
|
||||
|
@ -273,7 +273,7 @@ macro_rules! __itconfig_parse_variables {
|
|||
|
||||
#[macro_export]
|
||||
#[doc(hidden)]
|
||||
macro_rules! __config_impl {
|
||||
macro_rules! __itconfig_impl {
|
||||
(
|
||||
variables = [$({
|
||||
name = $name:ident,
|
||||
|
@ -292,7 +292,7 @@ macro_rules! __config_impl {
|
|||
$($name();)+
|
||||
}
|
||||
|
||||
$(__config_variable! {
|
||||
$(__itconfig_variable! {
|
||||
name = $name,
|
||||
$($variable)*
|
||||
})+
|
||||
|
@ -303,7 +303,7 @@ macro_rules! __config_impl {
|
|||
|
||||
#[macro_export]
|
||||
#[doc(hidden)]
|
||||
macro_rules! __config_variable {
|
||||
macro_rules! __itconfig_variable {
|
||||
// Add method with default value
|
||||
(
|
||||
name = $name:ident,
|
||||
|
|
Reference in a new issue