From 402b0da3539adc64337ef18b899f62315f3e132f Mon Sep 17 00:00:00 2001 From: Ritesh Chitlangi Date: Tue, 27 Jul 2021 01:51:28 +0800 Subject: [PATCH] added MIT licence --- LICENSE | 22 ++++++++++++++++ epp-client-macros/src/lib.rs | 49 +++++++----------------------------- 2 files changed, 31 insertions(+), 40 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2aa104f --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2021 Ritesh Chitlangi + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/epp-client-macros/src/lib.rs b/epp-client-macros/src/lib.rs index c6359ab..aab8768 100644 --- a/epp-client-macros/src/lib.rs +++ b/epp-client-macros/src/lib.rs @@ -1,3 +1,12 @@ +//! Macros for the EPP Client Library for the Extensible Provisioning Protocol (EPP). +//! +//! ## Description +//! +//! epp-client is a client library for Internet domain registration and management for domain registrars. +//! This macro crate contains a fe macros to simplify serialization of generic types used in some places +//! in the `epp-client` library +//! + extern crate proc_macro; use proc_macro::TokenStream; @@ -44,43 +53,3 @@ pub fn element_name_derive(input: TokenStream) -> TokenStream { element_name_macro(&ast) } - -// #[proc_macro_attribute] -// pub fn epp_client_command_response(_metadat: TokenStream, input: TokenStream) -> TokenStream { -// let mut ast = parse_macro_input!(input as DeriveInput); - -// match &mut ast.data { -// syn::Data::Struct(ref mut data) => { -// match &mut data.fields { -// syn::Fields::Named(fields) => { -// fields.named.push( -// syn::Field::parse_named -// .parse2(quote! { -// pub result: EppResult -// }) -// .unwrap() -// ); -// fields.named.push( -// syn::Field::parse_named -// .parse2(quote! { -// pub tr_ids: ResponseTRID -// }) -// .unwrap() -// ); -// } -// _ => (), -// } - -// return quote! { #ast }.into(); -// } -// _ => panic!("Failed to parse CommandResponse macro input"), -// } -// } - -// #[cfg(test)] -// mod tests { -// #[test] -// fn it_works() { -// assert_eq!(2 + 2, 4); -// } -// }