Skip to content

Commit 09cdb0c

Browse files
authored
feat: location rendering and improvements (#8)
The project updates focus on enhancing code quality, expanding functionality, refining data structures and drawing on Canvas functionality. Notable changes include integrating new benchmarking capabilities, refining geographic data handling, and updating API endpoints to reflect these changes. The adjustments in serialization and error handling across various modules aim to improve performance and maintainability. Finally, this update draws each oblast's borders & prints icons using Context in Map component
1 parent 7777f99 commit 09cdb0c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2251
-1242
lines changed

.coverage/.gitkeep

Whitespace-only changes.

.github/workflows/build.yml

-74
This file was deleted.

.github/workflows/coverage.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
coverage:
10+
name: Evaluate code coverage
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
16+
17+
- name: Setup rust toolchain, cache and cargo-codspeed binary
18+
uses: moonrepo/setup-rust@v0
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
channel: nightly
23+
components: clippy, llvm-tools-preview
24+
bins: cargo-codspeed, cargo-sonar, cargo-llvm-cov
25+
26+
- name: Run Clippy
27+
run: |
28+
cargo clippy --message-format json > clippy-report.json
29+
cargo sonar --clippy --clippy-path clippy-report.json
30+
31+
- name: Generate code coverage
32+
run: cargo llvm-cov --all-features --workspace --lcov --output-path .coverage/lcov.info
33+
34+
- name: Coveralls
35+
if: ${{ success() }}
36+
uses: coverallsapp/github-action@master
37+
with:
38+
github-token: ${{ secrets.GITHUB_TOKEN }}
39+
path-to-lcov: .coverage/lcov.info
40+
41+
- name: SonarCloud Scan
42+
uses: SonarSource/sonarcloud-github-action@master
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
45+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
46+
with:
47+
args: >
48+
-Dsonar.externalIssuesReportPaths=sonar-issues.json
49+
-Dcommunity.rust.lcov.reportPaths=.coverage/lcov.info
50+
51+
- name: Build the benchmark target(s)
52+
run: cargo codspeed build
53+
54+
- name: Run the benchmarks
55+
uses: CodSpeedHQ/action@v2
56+
with:
57+
run: cargo codspeed run
58+
token: ${{ secrets.CODSPEED_TOKEN }}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ rust-project.json
4646

4747
### Local
4848
tmp/
49-
assets/*.sqlite
49+
.coverage/
5050

5151
# End of https://www.toptal.com/developers/gitignore/api/rust,rust-analyzer,visualstudiocode,dotenv

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- id: check-case-conflict
1212
- id: detect-private-key
1313
- repo: https://github.com/doublify/pre-commit-rust
14-
rev: master
14+
rev: v1.0
1515
hooks:
1616
- id: fmt
1717
- id: cargo-check

.vscode/settings.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
"./Cargo.toml",
44
],
55
"rust-analyzer.showUnlinkedFileNotification": false,
6+
// "rust-analyzer.cargo.autoreload": false,
7+
// "rust-analyzer.numThreads": 2,
8+
// "rust-analyzer.debug.engine": "vadimcn.vscode-lldb",
69
"lldb.displayFormat": "auto",
710
"lldb.showDisassembly": "auto",
811
"lldb.dereferencePointers": true,
9-
"lldb.consoleMode": "evaluate"
12+
"lldb.consoleMode": "evaluate",
1013
}

0 commit comments

Comments
 (0)