diff --git a/.media/icon-128x128_round.png b/.media/icon-128x128_round.png index 5088463..60bea46 100644 Binary files a/.media/icon-128x128_round.png and b/.media/icon-128x128_round.png differ diff --git a/.media/icon-512x512.png b/.media/icon-512x512.png new file mode 100644 index 0000000..5090c69 Binary files /dev/null and b/.media/icon-512x512.png differ diff --git a/.media/icon.svg b/.media/icon.svg new file mode 100644 index 0000000..800232c --- /dev/null +++ b/.media/icon.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micronfig/src/lib.rs b/micronfig/src/lib.rs index 19118bc..a1f92b1 100644 --- a/micronfig/src/lib.rs +++ b/micronfig/src/lib.rs @@ -94,11 +94,13 @@ //! The syntax for conversion is as follows: //! //! ``` +//! use std::net::SocketAddr; +//! //! micronfig::config! { //! // use FromStr to parse the String as an isize //! REQUIRED_SIGNED: String > isize, //! // use FromStr to parse the String as a SocketAddr -//! REQUIRED_SOCKETADDR: String > std::net::SocketAddr, +//! REQUIRED_SOCKETADDR: String > SocketAddr, //! // use From to convert the String to... another String //! REQUIRED_STRING: String -> String, //! // use TryFrom to convert the String to another String @@ -109,10 +111,6 @@ //! } //! ``` //! -//! > ***Warning*** -//! > -//! > Types should always be fully qualified, or the macro won't work properly! -//! //! Custom types can be used as well: //! //! ``` @@ -131,7 +129,7 @@ //! } //! //! micronfig::config! { -//! MY_CUSTOM_TYPE: String -> crate::Duplicator, +//! MY_CUSTOM_TYPE: String -> Duplicator, //! } //! //! # fn main() {} @@ -150,7 +148,7 @@ //! //! micronfig::config! { //! // First parse the string as an u64 with FromStr, then convert it to a ChatId with From. -//! RESPOND_TO_MESSAGES_IN: String > u64 -> crate::ChatId, +//! RESPOND_TO_MESSAGES_IN: String > u64 -> ChatId, //! } //! //! # fn main() {}