commit ed47f9eb1cda75c28c94b46d82e9ccbf1f546f32 Author: Jimmy Cuadra Date: Tue Jul 23 00:36:26 2019 -0700 ruma-federation-api diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..fa8d85ac --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +Cargo.lock +target diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..a9eb5899 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: "rust" +before_script: + - "rustup component add rustfmt" + - "rustup component add clippy" +script: + - "cargo fmt --all -- --check" + - "cargo clippy --all-targets --all-features -- -D warnings" + - "cargo build --verbose" + - "cargo test --verbose" +notifications: + email: false + irc: + channels: + - secure: "QCqLuvSHYRxTj28ze9lu5K4mgyAQBfBQA105GlVJLcG4x2rfkUXJR538qXuIt5IUBwXePgu8RzXRLjKd3Ev0bFnCDGzK2OTXIBg2517vuLmmhbJ97yVtLk6F0nfQ8IPMJq67EkfB5ecZYgNHmmzv1/+F4M7xU0BC4QwkpJparYTwJLrsC8B/pPQds45aZFmkfbe5Mh5nNcFlx7ueP/FQLrOxPWthgpKBZreS8PX7l/6uQYZdu0HmX8xP6HZk8GAdLj8oL8H2WcJ0PrmiQ7JdCJ+V50WgiB7beiqaRieag75XWmIxNpEF2s12dZD8FEUC2aDPyysGT/SUU8gAqsI6DUDwySeCEoad7dpr+CfmOu621X9Yw2ukOkQXH2EbHq/gKcr5GOaIteh0ZD56iZmzAxmo/4UOgJ1qaP14o936ry5+Vz4QP7Iphg9y0owVRB7BZPszN8PS9g70NDkd7Pvwe8V7OypckSHcIGRhAI0iKV8i4FhNNBJbKVcyjGUQpq2YsAQcBGB07JrkrfDfwkiuy2Eh6dzkv9U5VsMKSZtSLpKNAr/ZSGOn74iHVxlRrC4LKmGO2CqmPCW/7g2cBqH7cogWVJS+v/FRuec40ueKiarh8daacAmBggKuCsAqMJbhm3AF7Q8NWom+44Q+VO1upwTu9hT9laQq08HMXOT/uP8=" + use_notice: true diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 00000000..ca29e539 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,15 @@ +[package] +authors = ["Jimmy Cuadra "] +categories = ["api-bindings", "web-programming"] +description = "Types for the endpoints in the Matrix server-server API." +documentation = "https://docs.rs/ruma-federation-api" +edition = "2018" +homepage = "https://github.com/ruma/ruma-federation-api" +keywords = ["matrix", "chat", "messaging", "ruma"] +license = "MIT" +name = "ruma-federation-api" +readme = "README.md" +repository = "https://github.com/ruma/ruma-federation-api" +version = "0.1.0" + +[dependencies] diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..1ea21301 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2019 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/README.md b/README.md new file mode 100644 index 00000000..1a84a6ec --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# ruma-federation-api + +[![Build Status](https://travis-ci.org/ruma/ruma-federation-api.svg?branch=master)](https://travis-ci.org/ruma/ruma-federation-api) + +**ruma-federation-api** contains serializable types for the requests and responses for each endpoint in the [Matrix](https://matrix.org/) federation API specification. +These types can be shared by client and server code. + +## Minimum Rust version + +ruma-federation-api requires Rust 1.34 or later. + +## License + +[MIT](http://opensource.org/licenses/MIT) diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 00000000..e69de29b