Skip to content
This repository was archived by the owner on Jul 4, 2026. It is now read-only.

Commit 8e4eabc

Browse files
authored
feat: rewrite project from Python to Rust log analyzer
Merge feat/rewrite-rust-log-analyzer into main.
2 parents 78d7f56 + 0ca72b0 commit 8e4eabc

32 files changed

Lines changed: 3070 additions & 157 deletions

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# These are supported funding model platforms
22

3-
github: [n4vrl0s3] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
3+
github: [sha-wrks]
44
patreon: # Replace with a single Patreon username
55
open_collective: # Replace with a single Open Collective username
6-
ko_fi: yanshaaa # Replace with a single Ko-fi username
6+
ko_fi: # Replace with a single Ko-fi username
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
99
liberapay: # Replace with a single Liberapay username

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test:
14+
name: Test
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install Rust stable
20+
uses: dtolnay/rust-toolchain@stable
21+
22+
- name: Cache dependencies
23+
uses: Swatinem/rust-cache@v2
24+
25+
- name: Build
26+
run: cargo build --verbose
27+
28+
- name: Run tests
29+
run: cargo test --verbose
30+
31+
lint:
32+
name: Lint
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- name: Install Rust stable
38+
uses: dtolnay/rust-toolchain@stable
39+
with:
40+
components: rustfmt, clippy
41+
42+
- name: Cache dependencies
43+
uses: Swatinem/rust-cache@v2
44+
45+
- name: Check formatting
46+
run: cargo fmt --check
47+
48+
- name: Clippy
49+
run: cargo clippy -- -D warnings

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Rust build output
2+
/target/
3+
4+
# Cargo lock file (keep for binaries, remove this line if publishing as a library)
5+
# Cargo.lock
6+
7+
# Editor and IDE
8+
.vscode/settings.json
9+
.vscode/launch.json
10+
.vscode/tasks.json
11+
.idea/
12+
*.iml
13+
14+
# OS generated
15+
.DS_Store
16+
.DS_Store?
17+
._*
18+
.Spotlight-V8
19+
.Trashes
20+
ehthumbs.db
21+
Thumbs.db
22+
desktop.ini
23+
24+
# Environment and secrets
25+
.env
26+
.env.local
27+
.env.*.local
28+
*.pem
29+
*.key
30+
31+
# Logs
32+
*.log
33+
!tests/fixtures/*.log
34+
35+
# Benchmark results
36+
criterion/

CODE_OF_CONDUCT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
n4vrl0s3@gmail.com.
64-
All complaints will be reviewed and investigated promptly and fairly.
63+
yansha@yansha.dev. All complaints will be reviewed and investigated promptly and fairly.
6564

6665
All community leaders are obligated to respect the privacy and security of the
6766
reporter of any incident.
@@ -126,3 +125,4 @@ enforcement ladder](https://github.com/mozilla/diversity).
126125
For answers to common questions about this code of conduct, see the FAQ at
127126
https://www.contributor-covenant.org/faq. Translations are available at
128127
https://www.contributor-covenant.org/translations.
128+

CONTRIBUTING.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Contribution Guide
2+
3+
Thank you for your interest in contributing to this project! Your contributions can help make this project better. Here are some guidelines to help you get started.
4+
5+
## How to Contribute
6+
7+
1. Fork this repository:
8+
- Click the `Fork` button at the top of this repository page.
9+
2. Clone the forked repository to your local machine.
10+
```bash
11+
git clone https://github.com/username/Log-Rift.git
12+
```
13+
- Replace `username` with your GitHub username.
14+
3. Create a new branch
15+
- Create a new branch for the feature or fix you want to add.
16+
```
17+
cd Log-Rift
18+
git checkout -b your-branch-name
19+
```
20+
- Use a descriptive branch name that reflects the feature or fix you are working on.
21+
4. Make the necessary changes:
22+
- Add or modify your code.
23+
5. Commit your changes:
24+
- Make sure to write a clear and descriptive commit message.
25+
```
26+
git add .
27+
git commit -m "Brief description of the changes you made"
28+
```
29+
6. Push to your repository:
30+
- Push your branch to your GitHub repository.
31+
```
32+
git push origin your-branch-name
33+
```
34+
7. Create a Pull Request (PR):
35+
- Go to the original repository page and create a pull request from your branch.
36+
- Provide a clear description of what you added or fixed in your pull request.
37+
38+
## Coding Guidelines
39+
40+
- Follow a consistent coding standard: Ensure your code is consistent with the existing code style in this project.
41+
- Write clear documentation: Add necessary comments and documentation to help others understand your code.
42+
- Write tests: If possible, add tests for the features or fixes you are adding.
43+
44+
## Reporting Issues
45+
46+
If you find any bugs or have suggestions for improvements, please create a new issue on the Issues page.
47+
48+
## Communication
49+
50+
If you want to discuss something related to your contribution or the project in general, feel free to reach out to us via [Discussions](https://github.com/sha-wrks/Log-Rift/discussions).
51+
52+
<br>
53+
Thank you for your contribution!

0 commit comments

Comments
 (0)