Skip to content

Commit

Permalink
feat: Add: 1.app module.
Browse files Browse the repository at this point in the history
Signed-off-by: photowey <[email protected]>
  • Loading branch information
photowey committed Jul 14, 2024
1 parent ace45c2 commit 9748a0f
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 15 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resolver = "2"

# @formatter:off
members = [
"crates/app",
"crates/bean",
"crates/core",
"crates/ctx",
Expand Down
8 changes: 8 additions & 0 deletions crates/app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "omigaapp"
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"

[dependencies]
omigacore = { path = "../core" }
5 changes: 2 additions & 3 deletions crates/web/src/app.rs → crates/app/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
* limitations under the License.
*/

// omigaweb/app
// omigaapp/app

// ----------------------------------------------------------------

use omigacore::constants::{COMMA, SIGMA_CORE_PROFILE_ACTIVES_DEFAULT};

use crate::core::kv::Kv;
use omigacore::model::kv::Kv;

// ----------------------------------------------------------------

Expand Down
21 changes: 21 additions & 0 deletions crates/app/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright © 2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// lib

// ----------------------------------------------------------------

pub mod app;
6 changes: 5 additions & 1 deletion crates/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
// ----------------------------------------------------------------

pub mod constants;
mod error;
pub mod error;

// ----------------------------------------------------------------

pub mod model;
2 changes: 1 addition & 1 deletion crates/web/src/core.rs → crates/core/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

// core
// model

// ----------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion crates/web/src/core/kv.rs → crates/core/src/model/kv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

// core/kv
// model/kv

// ----------------------------------------------------------------

Expand Down
7 changes: 4 additions & 3 deletions crates/tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ license = "Apache-2.0"
publish = false

[dependencies]
macroattr = { path = "../macroattr" }
omigacore = { path = "../core" }
macrofn = { path = "../macrofn" }
omigaapp = { path = "../app" }
omigabean = { path = "../bean" }
omigacore = { path = "../core" }
omigactx = { path = "../ctx" }
omigaenv = { path = "../env" }
macroattr = { path = "../macroattr" }
macrofn = { path = "../macrofn" }
omigatesting = { path = "../testing" }
omigaweb = { path = "../web" }
2 changes: 1 addition & 1 deletion crates/tests/src/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

// ----------------------------------------------------------------

use omigaapp::app::{Application, OmigaApplication};
use omigacore::constants::SIGMA_CORE_PROFILE_ACTIVES_DEFAULT;
use omigaweb::app::{Application, OmigaApplication};

// ----------------------------------------------------------------

Expand Down
2 changes: 0 additions & 2 deletions crates/web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ edition = "2021"
license = "Apache-2.0"

[dependencies]
macrofn = { path = "../macrofn" }
omigacore = { path = "../core" }
3 changes: 0 additions & 3 deletions crates/web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@
// omigaweb

// ----------------------------------------------------------------

pub mod app;
pub mod core;

0 comments on commit 9748a0f

Please sign in to comment.