From 2d373d1ba7855d4e2729661045bc73a11639b6e1 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 16 Jan 2024 10:38:45 +0100 Subject: [PATCH] make some types/fields public --- mers/Cargo.toml | 4 ++-- mers_lib/Cargo.toml | 2 +- mers_lib/src/program/configs/with_iters.rs | 4 ++-- mers_lib/src/program/configs/with_list.rs | 4 ++-- mers_lib/src/program/configs/with_multithreading.rs | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mers/Cargo.toml b/mers/Cargo.toml index 94d1045..6c86d46 100755 --- a/mers/Cargo.toml +++ b/mers/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mers" -version = "0.3.1" +version = "0.3.2" edition = "2021" license = "MIT OR Apache-2.0" description = "dynamically typed but type-checked programming language" @@ -11,6 +11,6 @@ repository = "https://github.com/Dummi26/mers" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -mers_lib = "0.3.1" +mers_lib = "0.3.2" # mers_lib = { path = "../mers_lib", features = ["parse"] } clap = { version = "4.3.19", features = ["derive"] } diff --git a/mers_lib/Cargo.toml b/mers_lib/Cargo.toml index e263576..85c2906 100755 --- a/mers_lib/Cargo.toml +++ b/mers_lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mers_lib" -version = "0.3.1" +version = "0.3.2" edition = "2021" license = "MIT OR Apache-2.0" description = "library to use the mers language in other projects" diff --git a/mers_lib/src/program/configs/with_iters.rs b/mers_lib/src/program/configs/with_iters.rs index 80b705b..601772a 100755 --- a/mers_lib/src/program/configs/with_iters.rs +++ b/mers_lib/src/program/configs/with_iters.rs @@ -228,9 +228,9 @@ pub enum ItersT { Enumerate, } #[derive(Clone, Debug)] -pub struct Iter(Iters, Data); +pub struct Iter(pub Iters, pub Data); #[derive(Clone, Debug)] -pub struct IterT(ItersT, Type, Type); +pub struct IterT(pub ItersT, pub Type, pub Type); impl MersData for Iter { fn is_eq(&self, _other: &dyn MersData) -> bool { false diff --git a/mers_lib/src/program/configs/with_list.rs b/mers_lib/src/program/configs/with_list.rs index d0c3793..4f47cc2 100755 --- a/mers_lib/src/program/configs/with_list.rs +++ b/mers_lib/src/program/configs/with_list.rs @@ -235,9 +235,9 @@ impl Config { } #[derive(Clone, Debug)] -pub struct List(Vec>>); +pub struct List(pub Vec>>); #[derive(Debug)] -pub struct ListT(Type); +pub struct ListT(pub Type); impl MersData for List { fn is_eq(&self, other: &dyn MersData) -> bool { if let Some(other) = other.as_any().downcast_ref::() { diff --git a/mers_lib/src/program/configs/with_multithreading.rs b/mers_lib/src/program/configs/with_multithreading.rs index 381388e..29403c1 100755 --- a/mers_lib/src/program/configs/with_multithreading.rs +++ b/mers_lib/src/program/configs/with_multithreading.rs @@ -114,9 +114,9 @@ impl Config { } #[derive(Clone)] -pub struct Thread(Arc, Data>>>); +pub struct Thread(pub Arc, Data>>>); #[derive(Debug, Clone)] -pub struct ThreadT(Type); +pub struct ThreadT(pub Type); impl MersData for Thread { fn is_eq(&self, _other: &dyn MersData) -> bool {