-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split code to multi-project workspace (geo, http, models li… (
#5) * refactor: split code to multi-project workspace (geo, http, models libraries) ### Key Changes - **Geographical Data Handling (`ralertsinua-geo`)**: Introduction of modules for mapping in Ukraine, handling geometric data, and structures for map bounds. - **HTTP Client Functionality (`ralertsinua-http`)**: Refactoring of `AlertsInUaClient` to simplify configuration handling by accepting `base_url` and `token` directly in its constructor. - **Data Models (`ralertsinua-models`)**: New data structures for representing geographical regions and encapsulation of models in a new module for accessibility. - **General Refactoring**: Updates to import statements and configurations to align with the new project structure. These changes aim to enhance modularity, maintainability, and scalability of the codebase by segregating different functionalities into distinct libraries.
- Loading branch information
Showing
59 changed files
with
2,270 additions
and
1,990 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
end_of_line = lf | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export {{crate_name | shouty_snake_case}}_CONFIG=`pwd`/.config | ||
export {{crate_name | shouty_snake_case}}_DATA=`pwd`/.data | ||
export {{crate_name | shouty_snake_case}}_LOG_LEVEL=debug | ||
export {{crate_name | shouty_snake_case}}_LOG_LEVEL=debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Set the default behavior for all files. | ||
* text=auto eol=lf | ||
|
||
# Normalized and converts to native line endings on checkout. | ||
*.rs text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-merge-conflict | ||
- id: check-case-conflict | ||
- id: detect-private-key | ||
- repo: https://github.com/doublify/pre-commit-rust | ||
rev: master | ||
hooks: | ||
- id: fmt | ||
- id: cargo-check | ||
- id: clippy | ||
exclude: '.vscode' | ||
default_stages: | ||
- 'pre-commit' | ||
- 'pre-push' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
"lldb.showDisassembly": "auto", | ||
"lldb.dereferencePointers": true, | ||
"lldb.consoleMode": "evaluate" | ||
} | ||
} |
Oops, something went wrong.