Definitions Library collection of basic applications needs
Go to file
2021-10-16 00:29:52 +01:00
app_auth chore: change verbose to isize, only println if verbose > 0 (env WEB_SERVER_VERBOSE) 2021-09-17 17:07:26 +01:00
app_env chore: add policy and rol + checkinfo out formats 2021-10-16 00:29:52 +01:00
app_errors chore: fix README.md 2021-09-01 18:59:38 +01:00
app_file chore: add app_file 2021-09-01 18:59:13 +01:00
kloud chore: add Default to some structs 2021-10-10 17:43:57 +01:00
.gitignore init repo 2021-09-01 17:11:40 +01:00
LICENSE init repo 2021-09-01 17:11:40 +01:00
README.md chore: add app_file 2021-09-01 18:59:13 +01:00

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