make some types/fields public

This commit is contained in:
Mark 2024-01-16 10:38:45 +01:00
parent 8c235a98aa
commit 2d373d1ba7
5 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "mers" name = "mers"
version = "0.3.1" version = "0.3.2"
edition = "2021" edition = "2021"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
description = "dynamically typed but type-checked programming language" 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 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
mers_lib = "0.3.1" mers_lib = "0.3.2"
# mers_lib = { path = "../mers_lib", features = ["parse"] } # mers_lib = { path = "../mers_lib", features = ["parse"] }
clap = { version = "4.3.19", features = ["derive"] } clap = { version = "4.3.19", features = ["derive"] }

View File

@ -1,6 +1,6 @@
[package] [package]
name = "mers_lib" name = "mers_lib"
version = "0.3.1" version = "0.3.2"
edition = "2021" edition = "2021"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
description = "library to use the mers language in other projects" description = "library to use the mers language in other projects"

View File

@ -228,9 +228,9 @@ pub enum ItersT {
Enumerate, Enumerate,
} }
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
pub struct Iter(Iters, Data); pub struct Iter(pub Iters, pub Data);
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
pub struct IterT(ItersT, Type, Type); pub struct IterT(pub ItersT, pub Type, pub Type);
impl MersData for Iter { impl MersData for Iter {
fn is_eq(&self, _other: &dyn MersData) -> bool { fn is_eq(&self, _other: &dyn MersData) -> bool {
false false

View File

@ -235,9 +235,9 @@ impl Config {
} }
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
pub struct List(Vec<Arc<RwLock<Data>>>); pub struct List(pub Vec<Arc<RwLock<Data>>>);
#[derive(Debug)] #[derive(Debug)]
pub struct ListT(Type); pub struct ListT(pub Type);
impl MersData for List { impl MersData for List {
fn is_eq(&self, other: &dyn MersData) -> bool { fn is_eq(&self, other: &dyn MersData) -> bool {
if let Some(other) = other.as_any().downcast_ref::<Self>() { if let Some(other) = other.as_any().downcast_ref::<Self>() {

View File

@ -114,9 +114,9 @@ impl Config {
} }
#[derive(Clone)] #[derive(Clone)]
pub struct Thread(Arc<Mutex<Result<JoinHandle<Data>, Data>>>); pub struct Thread(pub Arc<Mutex<Result<JoinHandle<Data>, Data>>>);
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct ThreadT(Type); pub struct ThreadT(pub Type);
impl MersData for Thread { impl MersData for Thread {
fn is_eq(&self, _other: &dyn MersData) -> bool { fn is_eq(&self, _other: &dyn MersData) -> bool {