Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
# src: https://github.com/marketplace/actions/build-and-push-docker-images#keep-up-to-date-with-github-dependabot
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

# Maintain dependencies for Rust/Cargo
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "quarterly"
open-pull-requests-limit: 10
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --verbose

fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --all -- --check

lint:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Run clippy
run: cargo clippy -- -D warnings
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*.json
*.json.gz

# Rust / cargo
/target
43 changes: 43 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# EVMap OSM Loader

This program downloads all charging stations from OpenStreetMap via Overpass
API, preprocesses and aggregates them and exports them as compressed JSON file.

Please see the `README.md` file for more information.

## Build & Commands

- Run typechecking: `cargo check`
- Build binary: `cargo build`
- Run tests: `cargo test`
- Format code: `cargo fmt`
- Run linting: `cargo clippy`

## Code Style

- Follow Rust coding conventions
- Apply Rust code style using `cargo fmt`
- Use crate import groups separated by an empty line: std, 3rd party, 1st party
- Use merged imports: One `use` per crate
- Avoid deeply nested logic by using early returns for error cases
- Write clean, high-quality code with concise comments and clear variable names

## Security

- Never commit secrets or API keys to repository

## Decisions

Whenever there is a situation where you need to choose between two or more
approaches, don't just pick one. Instead, ask.

This includes:

- Choosing between two possible architectural approaches
- Choosing between two libraries to use
...and similar situations.

## Conversational Style

Don't summarize changes at the end of a prompt that you make as a direct result
to instructions.
Loading