Wrap Webservices (wrap) Filters Library
Go to file
2021-09-01 19:42:06 +01:00
app_auth_filters chore: add app_auth_filters 2021-09-01 19:02:55 +01:00
app_file_filters chore: add app_file_filters 2021-09-01 19:03:16 +01:00
reject_filters chore: add reject_filters 2021-09-01 19:03:39 +01:00
.gitignore init repo 2021-09-01 19:02:22 +01:00
LICENSE init repo 2021-09-01 19:02:22 +01:00
README.md chore: fix how to 2021-09-01 19:42:06 +01:00

Webservices (wrap) Filters Library

Rust Libraries Collections for webservices (warp) filters and routes configuration

Part of the following developments:

Includes applications definitions and functions for following areas:

  • Authorization access to webservices routes
  • Access to file webservices routes
  • Reject access to webservices routes

Criteria

In a basic application scenario this group or library collections are included together.

Updating packages or dependencies shoud be keep in sync among Cargo.toml declarations.

How to use

1 - Clone or download this lib in a path, better outside of target development

2 - Get current version from Cargo.toml

3 - For each member of of Filters Library one line like the one below should be included in target development Cargo.toml (adjust version & path) and use whatever is need.

app_auth_filters = { version = "0.1.0", path = "../lib/filters/app_auth_filters" }

To include all libraries:

app_auth_filters = { version = "0.1.0", path = "../lib/filters/app_auth_filters" }
app_file_filters = { version = "0.1.0", path = "../lib/filters/app_file_filters" }
reject_filters = { version = "0.1.0", path = "../lib/filters/reject_filters" }

Structure

Each directory contains a Library dedicated to applications common needs: Inside of each directory README.md and TODO.md files has more details.

app_auth_filters

An authorization library based in Casbin Rust library

app_auth_filters
├── Cargo.toml
├── README.md
├── TODO.md
└── src
    └── lib.rs

app_file_filters

Dedicated to load configuration, enviroment settings, profiles, collections, etc.

app_file_filters/
├── Cargo.toml
├── README.md
├── TODO.md
└── src
    └── lib.rs

reject_filters

Define common applications errors

reject_filters
├── Cargo.toml
├── README.md
├── TODO.md
└── src
    └── lib.rs

Author

License

MIT