From 4436bbfe5dbffd0638b09388948b4b4b6264ca78 Mon Sep 17 00:00:00 2001 From: Jimmy Cuadra Date: Fri, 2 Aug 2019 17:47:56 -0700 Subject: [PATCH] Update ruma-api-macros README and remove redundant files. --- ruma-api-macros/.gitignore | 2 -- ruma-api-macros/.travis.yml | 19 ------------------- ruma-api-macros/LICENSE | 19 ------------------- ruma-api-macros/README.md | 13 +------------ 4 files changed, 1 insertion(+), 52 deletions(-) delete mode 100644 ruma-api-macros/.gitignore delete mode 100644 ruma-api-macros/.travis.yml delete mode 100644 ruma-api-macros/LICENSE diff --git a/ruma-api-macros/.gitignore b/ruma-api-macros/.gitignore deleted file mode 100644 index 96ef6c0b..00000000 --- a/ruma-api-macros/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -Cargo.lock diff --git a/ruma-api-macros/.travis.yml b/ruma-api-macros/.travis.yml deleted file mode 100644 index 26a1fc4f..00000000 --- a/ruma-api-macros/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: "rust" -cache: "cargo" -before_script: - - "rustup component add rustfmt" - - "rustup component add clippy" - - "cargo install --force cargo-audit" - - "cargo generate-lockfile" -script: - - "cargo audit" - - "cargo fmt --all -- --check" - - "cargo clippy --all-targets --all-features -- -D warnings" - - "cargo build --verbose" - - "cargo test --verbose" -notifications: - email: false - irc: - channels: - - secure: "FiHwNDkLqlzn+fZnn42uZ+GWm59S9OJreUIz9r7+nXrxUBeBcthQlqamJUiuYryVohzqLydBVv6xmT5wgS/LxRnj4f363eBpKejuSktglnf2rl8JjuSXZVgrPMDmrfgkBdC+aMCPzdw2fIHSWmvQMr/t9kGW9cHl0VlLxPAhnAsry+E1Kxrrz4IuOJmyb43VqPf/GO6VCDzTpHiKHKe5Rp7i2IkbGus2GiSD/UMrgUTWmMOFoejl7fWX7SH9kvSrN/SCYldVOYA4nazeZfaHv7mCX6G8U3GGXTHwjAVAluXyYgUCYpsYKC5KGkUJFcLhjaBu5qpmlI0EZd/rsgscOBzqfJ0D/WkahWiKtlQEKZ7UEAhA3SaAhcrSh2kSQFf2GW1T8kfzqlnBtjpqSvCFuOpY5XQcSYEEX7qxT1aiK2UBi9iAKgMnG1SDEfeFERekw0KJPKbwJDMV7NhCg9kYVBHG1hxvFeYqMmnFrjLlRDQQrbDHrP9Avdtg0FScolsFVmT+uatBuRXDcqunssolfnWguyrQ0Z9KGauv0iqkwFwO7jQSA9f87wgsuzqlzstHRxoGGlPtGt4J/+MhyA3lOEXwBa5eotjILI7iykK+ykJ33cOTGcqyXbkWoYRZ6+fS2guI+f2CxxsYWUOK2UgMyYKEwtraC3duVIGtQR+zuvc=" - use_notice: true diff --git a/ruma-api-macros/LICENSE b/ruma-api-macros/LICENSE deleted file mode 100644 index 8a75e6ee..00000000 --- a/ruma-api-macros/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2017 Jimmy Cuadra - -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/ruma-api-macros/README.md b/ruma-api-macros/README.md index 1024dfe7..5fe82430 100644 --- a/ruma-api-macros/README.md +++ b/ruma-api-macros/README.md @@ -1,6 +1,6 @@ # ruma-api-macros -[![Build Status](https://travis-ci.org/ruma/ruma-api-macros.svg?branch=master)](https://travis-ci.org/ruma/ruma-api-macros) +[![Build Status](https://travis-ci.org/ruma/ruma-api.svg?branch=master)](https://travis-ci.org/ruma/ruma-api) **ruma-api-macros** provides a procedural macro for easily generating [ruma-api](https://github.com/ruma/ruma-api)-compatible API endpoints. You define the endpoint's metadata, request fields, and response fields, and the macro generates all the necessary types and implements all the necessary traits. @@ -10,17 +10,6 @@ You define the endpoint's metadata, request fields, and response fields, and the Here is an example that shows most of the macro's functionality. ``` rust -#![feature(proc_macro, try_from)] - -extern crate http; -extern crate ruma_api; -extern crate ruma_api_macros; -extern crate serde; -#[macro_use] extern crate serde_derive; -extern crate serde_json; -extern crate serde_urlencoded; -extern crate url; - pub mod some_endpoint { use ruma_api_macros::ruma_api;