app_auth | ||
app_env | ||
app_errors | ||
app_file | ||
kloud | ||
.gitignore | ||
LICENSE | ||
README.md |
Defs Library
Rust Libraries Collections to declare and define applications
Part of the following developments:
Includes applications definitions and functions for following areas:
- Authorization access
- Configuration and enviroment
- Error handling
- File & basic storages
- Klouds definitions
Criteria
In a basic application scenario this group or library collections are included together. app_env is used even inside other libraries.
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 Defs 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 = { version = "0.1.0", path = "../lib/defs/app_auth" }
To include all libraries:
app_auth = { version = "0.1.0", path = "../lib/defs/app_auth" }
app_env = { version = "0.1.0", path = "../lib/defs/app_env" }
app_errors = { version = "0.1.0", path = "../lib/defs/app_errors" }
app_file = { version = "0.1.0", path = "../lib/defs/app_file" }
kloud = { version = "0.1.0", path = "../lib/defs/kloud" }
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
An authorization library based in Casbin Rust library
app_auth/ ├── Cargo.toml ├── README.md ├── TODO.md └── src └── lib.rs
app_env
Dedicated to load configuration, enviroment settings, profiles, collections, etc.
app_env/ ├── Cargo.toml ├── README.md ├── TODO.md └── src ├── appdata.rs ├── appenv.rs ├── appinfo.rs ├── config.rs ├── lib.rs ├── module.rs └── profile.rs
app_errors
Define common applications errors
app_errors/ ├── Cargo.toml ├── README.md ├── TODO.md └── src └── lib.rs
app_file
To handle common application files and storages.
app_file/ ├── Cargo.toml ├── README.md ├── TODO.md └── src └── lib.rs
kloud
Basic definitions and utilities
kloud ├── Cargo.toml ├── README.md ├── TODO.md ├── src │ ├── datacontext.rs │ ├── defs.rs │ ├── kloud.rs │ ├── lang.rs │ ├── lib.rs │ └── utils.rs
Author
License
MIT