Skip to content

Commit

Permalink
sarzak_single
Browse files Browse the repository at this point in the history
  • Loading branch information
uberFoo committed Nov 29, 2023
1 parent eeb696c commit 81db975
Show file tree
Hide file tree
Showing 37 changed files with 4,758 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sarzak"
version = "2.7.0"
version = "2.8.0"
edition = "2021"
authors = ["Keith T. Star <[email protected]>"]
categories = ["compilers", "memory-management"]
Expand Down Expand Up @@ -52,11 +52,13 @@ env_logger = "0.10.0"
pretty_env_logger = "0.5.0"

[features]
default = ["lu-dog-vec"]
default = ["lu-dog-vec", "sarzak_single"]
lu-dog-vec = []
lu-dog-vec-tracy = []
lu-dog-rwlock-vec = []
lu-dog-ndrwlock-vec = []
lu-dog-rc = []
lu-dog-rwlock = []
lu-dog-async-vec = []
sarzak_single = []
sarzak_rwlock = []
24 changes: 24 additions & 0 deletions sarzak.toml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,30 @@ persist_timestamps = true
uber_store = "StdRwLock"
target = "domain"

#
# Sarzak Single
#
[modules."v2/sarzak_single"]
model = "models/sarzak.json"

[[modules."v2/sarzak_single".compiler]]
always_process = true
compiler = "grace"
derive = ["Clone", "Debug", "Deserialize", "PartialEq", "Serialize"]
use_paths = ["serde::{Deserialize, Serialize}"]
tracy = false

[modules."v2/sarzak_single".compiler.target]
optimization_level = "None"
from_module = "v1::sarzak"
from_path = "models/sarzak.json"
is_meta_model = true
is_sarzak = true
persist = true
persist_timestamps = true
uber_store = "Single"
target = "domain"

#
# Woog
#
Expand Down
9 changes: 8 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@ pub const VERSION: &str = env!("CARGO_PKG_VERSION");

pub use v2::drawing;
pub use v2::merlin;
pub use v2::sarzak;
pub use v2::woog;

cfg_if::cfg_if! {
if #[cfg(feature = "sarzak_rwlock")] {
pub use v2::sarzak;
} else if #[cfg(feature = "sarzak_single")] {
pub use v2::sarzak_single as sarzak;
}
}

cfg_if::cfg_if! {
if #[cfg(feature = "lu-dog-rc")] {
pub use v2::lu_dog;
Expand Down
1 change: 1 addition & 0 deletions src/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ pub mod lu_dog_vec;
pub mod lu_dog_vec_tracy;
pub mod merlin;
pub mod sarzak;
pub mod sarzak_single;
pub mod woog;
16 changes: 16 additions & 0 deletions src/v2/sarzak_single.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//! Sarzak Domain
//!
use ::uuid::{uuid, Uuid};

pub mod from;
pub mod store;
pub mod types;

pub use store::ObjectStore;
pub use types::*;

// sarzak
pub const UUID_NS: Uuid = uuid!("daccabb9-eb3a-5cde-ba7c-19a3f22ab649");

pub const MODEL: &[u8] = include_bytes!("../../models/sarzak.bin");
// pub const MODEL: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "sarzak.bin"));
Loading

0 comments on commit 81db975

Please sign in to comment.