chore: add cargo & readme

This commit is contained in:
Jesús Pérez Lorenzo 2021-09-01 20:27:39 +01:00
parent 40f13df795
commit a7f10ba503
2 changed files with 97 additions and 0 deletions

38
Cargo.toml Normal file
View File

@ -0,0 +1,38 @@
[package]
name = "tkdr"
version = "0.1.0"
authors = ["JesusPerez <jpl@jesusperez.pro>"]
edition = "2018"
publish = false
[profile.dev]
opt-level = 0
[profile.release]
opt-level = 3
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0.38"
blake3 = "0.3.7"
base64 = "0.13.0"
chrono = "0.4"
dotenv = "0.15.0"
enc_file ="0.3.17"
envmnt = "0.8.4"
failure = "0.1.8"
futures = "0.3.12"
futures-cpupool = "0.1.8"
json = "0.12.4"
rand = "0.8.3"
regex = "1.4.3"
reqwest = "0.11.0"
serde = { version = "1.0", features = ["derive"] }
serde_derive = "1.0"
serde_json = "1.0"
serde_yaml = "0.8.16"
tera = "1.6.1"
toml = "0.5"
uuid = { version = "0.8", features = ["serde", "v5"] }
#

59
README.md Normal file
View File

@ -0,0 +1,59 @@
# Tkdr Library
## Rust Tkdr Library for **applications**
Part of the following developments:
- [CloudMandala](https://rlung.librecloud.online/LibreCloud/CloudMandala#cloudmandala)
- [Zteron](https://rlung.librecloud.online/LibreCloud/CloudMandala#cloudmandala)
Includes applications definitions and functions for following areas:
- Encrypt Data
- Decrypt Data
- Templating
- UIDs
- Randomkeys
### Criteria
In a basic application scenario this group or library collections are included together.
Updating packages or dependencies shoud be keep in sync among <u>Cargo.toml</u> declarations.
### How to use
1 - Clone or download this lib in a path, better outside of target development
2 - Get current version from <u>Cargo.toml</u>
3 - <u>For each member of</u> of **Macros Library** one line like the one below should be included in <u>target development Cargo.toml</u> (adjust version & path) and **use** whatever is need.
```toml
tkdr = { path = "../lib/tkdr" }
```
### Structure
Tkdr for applications
<pre>
.
├── Cargo.toml
├── LICENSE
├── README.md
└── src
├── crypt_lib.rs
├── lib.rs
├── randomkey.rs
├── tera_lib.rs
└── utils.rs
</pre>
## Author
- [Jesús Pérez](https://info.jesusperez.pro).
## License
MIT