diff --git a/Todo.md b/Notes.md similarity index 59% rename from Todo.md rename to Notes.md index 7f60f7c..8643713 100644 --- a/Todo.md +++ b/Notes.md @@ -1,49 +1,4 @@ -# Current Tools -## TableGen - -# Workspaces - [~] Table - [~] Cleanup - [~] Config - [~] Cleanup - [x] Doc - [~] Stats - [~] Cleanup - [~] Make - [~] Cleanup - [ ] Graphs - [~] Cleanup - [ ] Cli Parser - [ ] Refactor - [ ] Cleanup - [ ] Doc - -# Todo -[ ] Auto path (by default) -[ ] Document -[ ] Remove most of the unneeded pub -[ ] Update the dependencies -[ ] Remove unneded dependencies -[ ] Switch from anyhow to thiserror - -## Tablegen -[ ] Dissociate path from feature -[ ] Force replace/ask -[ ] Have interactive mode ? -[ ] Dissociate Model from generation - -## StatGen -[ ] Get rid of cycle and have a struct that gives stats according to % and keeps tracks of % -[ ] Test VecDeque -[ ] Add testing -[ ] Add the swap algo (swap a bad fit creature with another) -[ ] Save/load states - -## Test Units - - - -# Futures tools +# Future tools [ ] Lexer/Checker ## Lexer diff --git a/cli_parser/src/lib.rs b/cli_parser/src/lib.rs index 4b543fa..adfaa4e 100644 --- a/cli_parser/src/lib.rs +++ b/cli_parser/src/lib.rs @@ -59,7 +59,6 @@ pub struct ConfigArgs { #[derive(Deserialize)] /// The config struct, holding all runtime information pub struct Config { - // TODO: Check this pub BS /// Config specific for the classes table generation pub classes: Classes, /// Config for all the tables @@ -69,7 +68,6 @@ pub struct Config { #[derive(Deserialize)] /// The classes config pub struct Classes { - // TODO: Check this pub BS /// The header string formatter pub header: String, /// The row string formatter diff --git a/config/src/graph.rs b/config/src/graph.rs index a2a7954..0b2db3b 100644 --- a/config/src/graph.rs +++ b/config/src/graph.rs @@ -39,7 +39,7 @@ static STR_TO_GRAPH_TARGET_TYPE: phf::Map<&'static str, GraphTargetType> = phf_m }; /// Help listing all the actions availables -pub static HELP_STR_TO_GRAPH: LazyLock = LazyLock::new(|| { +static HELP_STR_TO_GRAPH: LazyLock = LazyLock::new(|| { let targets = STR_TO_GRAPH_TARGET_TYPE .keys() .map(|v| v.to_string()) @@ -50,7 +50,6 @@ pub static HELP_STR_TO_GRAPH: LazyLock = LazyLock::new(|| { #[derive(Debug, Clone)] /// All target type pub enum GraphTargetType { - // TODO: Check this pub BS /// Make all graphs Generate, /// Clean all graphs diff --git a/config/src/tablegen.rs b/config/src/tablegen.rs index 4b923de..82e4b88 100644 --- a/config/src/tablegen.rs +++ b/config/src/tablegen.rs @@ -42,7 +42,7 @@ static STR_TO_TARGET: phf::Map<&'static str, TableGenerationTarget> = phf_map! { }; /// A help of all the table targets to be built -pub static HELP_STR_TO_TARGET_TABLES: LazyLock = LazyLock::new(|| { +static HELP_STR_TO_TARGET_TABLES: LazyLock = LazyLock::new(|| { let mut targets = STR_TO_TARGET .keys() .map(|v| v.to_string()) diff --git a/stats/src/stat_io.rs b/stats/src/stat_io.rs index b807c6e..793c8ba 100644 --- a/stats/src/stat_io.rs +++ b/stats/src/stat_io.rs @@ -512,7 +512,7 @@ impl CharacCharMatrix { } /// Load all the records in the csv -pub fn load_stat_records(filename: T, config: StatConfig) -> Result +pub(super) fn load_stat_records(filename: T, config: StatConfig) -> Result where T: AsRef, { diff --git a/tablegen/src/tablegen.rs b/tablegen/src/tablegen.rs index 467e4cf..b04ebb4 100644 --- a/tablegen/src/tablegen.rs +++ b/tablegen/src/tablegen.rs @@ -169,7 +169,7 @@ pub fn export_tsv( } /// Replace all instances of unrepresentable utf8 or non escaped characters with latex ones -pub fn make_latex_string(arg: &str) -> String { +pub(super) fn make_latex_string(arg: &str) -> String { let res = arg .replace('🩸', "\\blood{}") .replace('⚡', "\\gauge{}")