added MIT licence

This commit is contained in:
Ritesh Chitlangi 2021-07-27 01:51:28 +08:00
parent 252d8676c1
commit 402b0da353
2 changed files with 31 additions and 40 deletions

22
LICENSE Normal file
View File

@ -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.

View File

@ -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);
// }
// }