Lucien Cartier-Tilet
9cc1a52e5a
Better debug messages and logging handling
2020-07-11 17:51:38 +02:00
Lucien Cartier-Tilet
3c960eaa35
Move some tests to lib.rs
2020-07-11 17:35:57 +02:00
Lucien Cartier-Tilet
de45ffc15c
Update dependencies, remove unneeded keywords and declarations
...
Also declaration of a lazy_static element was moved in a better spot
2020-07-11 17:34:01 +02:00
Lucien Cartier-Tilet
042fd066f0
Split `Rule::update` in several functions
...
Also optimization with a static Regex
2020-04-05 15:51:23 +02:00
Lucien Cartier-Tilet
071c8b0728
Made mod `utils` public
2020-04-05 15:48:41 +02:00
Lucien Cartier-Tilet
5f30c6d636
Reorganized modules, made rules a separate struct
...
Rules are now a separate struct, and the `rules` member of
`settings::Settings` is now a `Vec<settings::rule::Rule`.
Several elements were made private, now can be accessed through
dedicated methods
2020-04-04 22:44:08 +02:00
Lucien Cartier-Tilet
ef8c02fc97
Good progress with applying rules, room for improvement
...
Rules are applied, however some bugs remain:
- The HashMap for rules should be replaced by a Vec so they can be
stored in order and not randomly
- For some reasons, the `%` is not removed from some rules in the
private function `update_rules` in the `Settings` struct.
- Make it so replacements between square brackets work correctly
2020-04-04 15:46:29 +02:00
Lucien Cartier-Tilet
c418323b5c
Removed unused `use`s
2020-03-29 03:06:46 +02:00
Lucien Cartier-Tilet
c6baa46aca
Removed `import_input`
...
This should be left to the client crate, `settings::utils::read_file`
is already here for that
2020-03-28 22:38:28 +01:00
Lucien Cartier-Tilet
e9a161f526
Updated `import_input` signature, documentation
2020-03-28 21:58:27 +01:00
Lucien Cartier-Tilet
488ceba1bb
Added some doc and tests
2020-03-27 19:08:47 +01:00
Lucien Cartier-Tilet
2e0c16e97c
Added functions to import and export settings and refactoring
2020-03-27 18:25:20 +01:00
Lucien Cartier-Tilet
ff95cb05eb
Added some basic code
...
Added basic settings representation and a way to load them from either
a YAML or Json file.
2020-03-26 20:10:07 +01:00
Lucien Cartier-Tilet
47100b3476
initial commit
2020-03-26 17:04:23 +01:00