diff --git a/Cargo.toml b/Cargo.toml index d463e2b..bbeed62 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [workspace] resolver = "2" members = [ - "crates/api-grub", "crates/config-delivery", "crates/preproc", + "crates/api-grub", "crates/config-delivery", "crates/integr-structs", "crates/preproc", ] [profile.dev] diff --git a/crates/api-grub/Cargo.toml b/crates/api-grub/Cargo.toml index 364c431..dab7e76 100644 --- a/crates/api-grub/Cargo.toml +++ b/crates/api-grub/Cargo.toml @@ -7,3 +7,6 @@ edition = "2021" serde = { version = "1.0.217", features = ["derive"] } serde_json = "1.0.135" tokio = { version = "1.43.0", features = ["full"] } +integr-structs = {path = "../integr-structs"} +env_logger = "0.11.6" +log = "0.4.25" diff --git a/crates/api-grub/src/config.rs b/crates/api-grub/src/config.rs new file mode 100644 index 0000000..a785a84 --- /dev/null +++ b/crates/api-grub/src/config.rs @@ -0,0 +1,2 @@ +// mod to communicate with api-grub config file +// 1) check changes in unix-socket \ No newline at end of file diff --git a/crates/integr-structs/Cargo.toml b/crates/integr-structs/Cargo.toml new file mode 100644 index 0000000..fdf9743 --- /dev/null +++ b/crates/integr-structs/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "integr-structs" +version = "0.1.0" +edition = "2021" + +[dependencies] +serde = { version = "1.0.217", features = ["derive"] } +serde_json = "1.0.135" diff --git a/crates/integr-structs/src/api.rs b/crates/integr-structs/src/api.rs new file mode 100644 index 0000000..e69de29 diff --git a/crates/integr-structs/src/lib.rs b/crates/integr-structs/src/lib.rs new file mode 100644 index 0000000..febf0cd --- /dev/null +++ b/crates/integr-structs/src/lib.rs @@ -0,0 +1,2 @@ +pub mod api; +pub mod preproc; \ No newline at end of file diff --git a/crates/integr-structs/src/preproc.rs b/crates/integr-structs/src/preproc.rs new file mode 100644 index 0000000..e69de29