Skip to content

Commit

Permalink
Feat/http state (#15)
Browse files Browse the repository at this point in the history
* chore: update dependencies

* feat: state management modification & adding http backend for state

* chore: adding license header for newly created files
  • Loading branch information
MatisseB committed Jun 29, 2024
1 parent f818133 commit 61bc493
Show file tree
Hide file tree
Showing 11 changed files with 519 additions and 113 deletions.
81 changes: 81 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion crates/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ serde_yaml_ng.workspace = true
url.workspace = true
tokio.workspace = true
tokio-util.workspace = true
reqwest = { workspace = true, features = ["stream"] }
reqwest.workspace = true
wasmtime.workspace = true
serde_json.workspace = true
inquire.workspace = true
Expand All @@ -40,6 +40,8 @@ async-trait = "0.1"
tempfile = "3.10"
uuid = "1.8"
similar = "2.5"
regex = "1.10"
serde_with = "3.8"

# Local dependencies
logcraft-runtime = { path = "../runtime" }
3 changes: 3 additions & 0 deletions crates/common/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub const LGC_CONFIG_PATH: &str = "lgc.yaml";
pub const LGC_RULES_DIR: &str = "rules";

use crate::plugins::Plugin;
use crate::state::backends::StateBackend;
use crate::utils::ensure_kebab_case;

/// ProjectConfiguration definition
Expand All @@ -36,6 +37,8 @@ use crate::utils::ensure_kebab_case;
/// Hash is calculated for the name field to provide unique objects.
#[derive(Serialize, Deserialize, Default, Clone)]
pub struct ProjectConfiguration {
#[serde(default)]
pub state: StateBackend,
pub plugins: BTreeMap<String, Plugin>,
pub environments: BTreeSet<Environment>,
pub services: BTreeSet<Service>,
Expand Down
99 changes: 0 additions & 99 deletions crates/common/src/state.rs

This file was deleted.

Loading

0 comments on commit 61bc493

Please sign in to comment.