Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
055fef7b16 | |||
3fb4125ddb | |||
133df507b4 | |||
1da3879586 |
31
Cargo.toml
31
Cargo.toml
@ -1,8 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cloudmandala"
|
name = "cloudmandala"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
authors = ["JesusPerez <jpl@jesusperez.pro>"]
|
authors = ["JesusPerez <jpl@jesusperez.pro>"]
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
@ -16,15 +17,15 @@ anyhow = "1.0.40"
|
|||||||
# argonautica = "0.2.0"
|
# argonautica = "0.2.0"
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
blake3 = "0.3.7"
|
blake3 = "1.3.0"
|
||||||
base64 = "0.13.0"
|
base64 = "0.13.0"
|
||||||
base64-stream = "1.2.5"
|
base64-stream = "1.2.5"
|
||||||
captcha = "0.0.8"
|
captcha = "0.0.8"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
dotenv = "0.15.0"
|
dotenv = "0.15.0"
|
||||||
debug_stub_derive = "0.3.0"
|
debug_stub_derive = "0.3.0"
|
||||||
env_logger = "0.8.2"
|
env_logger = "0.9.0"
|
||||||
envmnt = "0.9.0"
|
envmnt = "0.9.1"
|
||||||
error-chain = "0.12.4"
|
error-chain = "0.12.4"
|
||||||
failure = "0.1.8"
|
failure = "0.1.8"
|
||||||
futures = "0.3.12"
|
futures = "0.3.12"
|
||||||
@ -47,17 +48,17 @@ qstring = "0.7.2"
|
|||||||
rand = "0.8.3"
|
rand = "0.8.3"
|
||||||
#redis = { version = "0.19.0", features = [ "tokio-comp", "cluster"] }
|
#redis = { version = "0.19.0", features = [ "tokio-comp", "cluster"] }
|
||||||
regex = "1.5.4"
|
regex = "1.5.4"
|
||||||
reqwest = "0.11.3"
|
reqwest = "0.11.9"
|
||||||
rfm = "0.8.0"
|
rfm = "1.0.2"
|
||||||
sanitize-filename = "0.3.0"
|
sanitize-filename = "0.3.0"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
#serde_cbor = "0.11.1"
|
#serde_cbor = "0.11.1"
|
||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
serde_dhall = "0.10.0"
|
serde_dhall = "0.11.0"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
serde_yaml = "0.8.17"
|
serde_yaml = "0.8.23"
|
||||||
|
|
||||||
slab = "0.4.3"
|
slab = "0.4.5"
|
||||||
# sqlx = { version = "0.4.0-beta.1", default-features = false, features = [ "mysql", "macros", "runtime-actix" ] }
|
# sqlx = { version = "0.4.0-beta.1", default-features = false, features = [ "mysql", "macros", "runtime-actix" ] }
|
||||||
#sqlx = {version = "0.5.1", default-features = false, features = ["macros","runtime-tokio-rustls","sqlite", "mysql", "postgres", "decimal", "chrono"]}
|
#sqlx = {version = "0.5.1", default-features = false, features = ["macros","runtime-tokio-rustls","sqlite", "mysql", "postgres", "decimal", "chrono"]}
|
||||||
|
|
||||||
@ -79,10 +80,10 @@ toml = "0.5"
|
|||||||
uuid = { version = "0.8", features = ["serde", "v5"] }
|
uuid = { version = "0.8", features = ["serde", "v5"] }
|
||||||
pretty_env_logger = "0.4"
|
pretty_env_logger = "0.4"
|
||||||
|
|
||||||
tkdr = { path = "../lib/tkdr" }
|
tkdr = { path = "../rust_lib/tkdr" }
|
||||||
key_of_life = { path = "../lib/key_of_life" }
|
key_of_life = { path = "../rust_lib/key_of_life" }
|
||||||
|
|
||||||
clds = { path = "../lib/clds" }
|
clds = { path = "../rust_lib/clds" }
|
||||||
|
|
||||||
# https://nnethercote.github.io/perf-book/build-configuration.html
|
# https://nnethercote.github.io/perf-book/build-configuration.html
|
||||||
[profile.release]
|
[profile.release]
|
||||||
@ -92,9 +93,9 @@ codegen-units = 1
|
|||||||
opt-level = "z"
|
opt-level = "z"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tracing-subscriber = "0.2.18"
|
tracing-subscriber = "0.3.6"
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
envmnt = "0.9.0"
|
envmnt = "0.9.1"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
# Nothing by default
|
# Nothing by default
|
||||||
|
@ -4,15 +4,13 @@
|
|||||||
|
|
||||||
## Declarative command line interface, to create and maintain open, free and sustainable Clouds
|
## Declarative command line interface, to create and maintain open, free and sustainable Clouds
|
||||||
|
|
||||||
|
|
||||||
This was created to:
|
This was created to:
|
||||||
|
|
||||||
|
|
||||||
## Inspiration
|
## Inspiration
|
||||||
|
|
||||||
A [Mandala](https://en.wikipedia.org/wiki/Mandala) is a geometric configuration of symbols. In various spiritual traditions, [mandalas](https://en.wikipedia.org/wiki/Mandala) may be employed for <u>focusing attention of practitioners and adepts, as a spiritual guidance tool</u>, for establishing a sacred space and as an aid to meditation and trance induction.
|
A [Mandala](https://en.wikipedia.org/wiki/Mandala) is a geometric configuration of symbols. In various spiritual traditions, [mandalas](https://en.wikipedia.org/wiki/Mandala) may be employed for <u>focusing attention of practitioners and adepts, as a spiritual guidance tool</u>, for establishing a sacred space and as an aid to meditation and trance induction.
|
||||||
|
|
||||||
[Clouds](https://en.wikipedia.org/wiki/Cloud) sometime look like some kind of sacred or mystical spaces.
|
[Clouds](https://en.wikipedia.org/wiki/Cloud) sometime look like some kind of sacred or mystical spaces. A [Sea of Clouds](https://es.m.wikipedia.org/wiki/Archivo:Sea_of_Clouds_Ody.JPG) or [this Clouds view](https://images.rove.me/w_1920,q_85/qolqoyoa8loeqt6v9ihv/canary-islands-sea-of-clouds.jpg) by example.
|
||||||
|
|
||||||
## Requirements for build
|
## Requirements for build
|
||||||
|
|
||||||
@ -36,7 +34,7 @@ cargo build
|
|||||||
```bash
|
```bash
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Run examples
|
### Run examples
|
||||||
|
|
||||||
Use evironment variables like this:
|
Use evironment variables like this:
|
||||||
|
|
||||||
|
10
rel_env
Normal file
10
rel_env
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
export TARGET_REPO=LibreCloud/CloudMandala
|
||||||
|
export SOURCE_PATH="."
|
||||||
|
export SOURCE_NAME=$(yj -tj < "$SOURCE_PATH/Cargo.toml" | jq -r '.package.name')
|
||||||
|
export SOURCE_TITLE="CloudMandala"
|
||||||
|
export BUILD_SOURCE="$SOURCE_PATH/target/release/$SOURCE_NAME"
|
||||||
|
|
||||||
|
export TAG=$(yj -tj < "$SOURCE_PATH/Cargo.toml" | jq -r '.package.version')
|
||||||
|
export REV_TAG="master"
|
||||||
|
export DFLT_BUILD_ARGS="darwin amd64 MacOS"
|
@ -23,7 +23,7 @@ use crate::helpers::{BoilerplateOpts, HELP_TEMPLATE};
|
|||||||
// use crate::validators::path_readable_file;
|
// use crate::validators::path_readable_file;
|
||||||
use crate::clouds::{on_cloud};
|
use crate::clouds::{on_cloud};
|
||||||
use crate::defs::{BxDynResult};
|
use crate::defs::{BxDynResult};
|
||||||
use clds::clouds::on_clouds::clear_specs;
|
use clds::clouds::utils::clear_specs;
|
||||||
|
|
||||||
use tkdr::crypt_lib::{encrypt, decrypt};
|
use tkdr::crypt_lib::{encrypt, decrypt};
|
||||||
use tkdr::tera_lib::{hash_from_data, data_templated, hash_content};
|
use tkdr::tera_lib::{hash_from_data, data_templated, hash_content};
|
||||||
@ -64,7 +64,7 @@ pub const KEY_PATH: &str = ".k";
|
|||||||
/// the top-level help output's list of subcommands.
|
/// the top-level help output's list of subcommands.
|
||||||
#[derive(StructOpt, Debug)]
|
#[derive(StructOpt, Debug)]
|
||||||
#[structopt(template = HELP_TEMPLATE,
|
#[structopt(template = HELP_TEMPLATE,
|
||||||
about = "Coder is a command utility to manage keys (generation,encrypt,hash) and make content with Tera templates",
|
about = "CloudMandala Declarative command line interface, to create and maintain open, free and sustainable Clouds",
|
||||||
global_setting = structopt::clap::AppSettings::ColoredHelp)]
|
global_setting = structopt::clap::AppSettings::ColoredHelp)]
|
||||||
pub struct CliOpts {
|
pub struct CliOpts {
|
||||||
#[allow(clippy::missing_docs_in_private_items)] // StructOpt compile-time errors if we doc this
|
#[allow(clippy::missing_docs_in_private_items)] // StructOpt compile-time errors if we doc this
|
||||||
|
@ -23,7 +23,7 @@ use clds::clouds::defs::{
|
|||||||
TskSrvc,
|
TskSrvc,
|
||||||
MainResourcesConfig,
|
MainResourcesConfig,
|
||||||
};
|
};
|
||||||
use clds::clouds::on_clouds::env_cloud;
|
use clds::clouds::utils::env_cloud;
|
||||||
|
|
||||||
use clds::tsksrvcs::run_tsksrvcs_on_providers;
|
use clds::tsksrvcs::run_tsksrvcs_on_providers;
|
||||||
use crate::defs::{load_key};
|
use crate::defs::{load_key};
|
||||||
|
@ -14,16 +14,18 @@ pub const HELP_TEMPLATE: &str = "{bin} {version}
|
|||||||
|
|
||||||
{about}
|
{about}
|
||||||
|
|
||||||
TskSrvcs:
|
A Mandala is a geometric configuration of symbols.
|
||||||
- Create a Random Key
|
In various spiritual traditions, mandalas may be employed
|
||||||
- Hash content Blake3
|
for focusing attention of practitioners and adepts, as a spiritual guidance tool,
|
||||||
- Encrypt/Decrypt XChaCha20Poly1305 and random nonce
|
for establishing a sacred space and as an aid to meditation and trance induction.
|
||||||
- Tera template with json-data
|
|
||||||
|
Clouds sometime look like some kind of sacred or mystical spaces.
|
||||||
|
|
||||||
|
More info: cloudmandala.librecloud.online
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
{usage}
|
{usage}
|
||||||
|
|
||||||
|
|
||||||
{all-args}
|
{all-args}
|
||||||
";
|
";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user