Skip to content

Commit e6ee3ef

Browse files
committed
release version
0 parents  commit e6ee3ef

Some content is hidden

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

100 files changed

+11643
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
fail_fast: false
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.6.0
5+
hooks:
6+
- id: check-byte-order-marker
7+
- id: check-case-conflict
8+
- id: check-merge-conflict
9+
- id: check-symlinks
10+
- id: check-yaml
11+
- id: end-of-file-fixer
12+
- id: mixed-line-ending
13+
- id: trailing-whitespace
14+
- repo: https://github.com/commitizen-tools/commitizen
15+
rev: v3.28.0
16+
hooks:
17+
- id: commitizen
18+
- repo: https://github.com/psf/black
19+
rev: 24.8.0
20+
hooks:
21+
- id: black
22+
- repo: local
23+
hooks:
24+
- id: cargo-fmt
25+
name: cargo fmt
26+
description: Format files with rustfmt.
27+
entry: bash -c 'cargo fmt -- --check'
28+
language: rust
29+
files: \.rs$
30+
args: []
31+
- id: cargo-deny
32+
name: cargo deny check
33+
description: Check cargo dependencies
34+
entry: bash -c 'cargo deny check -d'
35+
language: rust
36+
files: \.rs$
37+
args: []
38+
- id: typos
39+
name: typos
40+
description: check typo
41+
entry: bash -c 'typos'
42+
language: rust
43+
files: \.*$
44+
pass_filenames: false
45+
- id: cargo-check
46+
name: cargo check
47+
description: Check the package for errors.
48+
entry: bash -c 'cargo check --all'
49+
language: rust
50+
files: \.rs$
51+
pass_filenames: false
52+
- id: cargo-clippy
53+
name: cargo clippy
54+
description: Lint rust sources
55+
entry: bash -c 'cargo clippy --all-targets --all-features --tests --benches -- -D warnings'
56+
language: rust
57+
files: \.rs$
58+
pass_filenames: false
59+
- id: cargo-test
60+
name: cargo test
61+
description: unit test for the project
62+
entry: bash -c 'cargo nextest run --all-features'
63+
language: rust
64+
files: \.rs$
65+
pass_filenames: false

.github/workflows/rust.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Rust
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+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Build
20+
run: cargo build --verbose
21+
- name: Run tests
22+
run: cargo test --verbose

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
target
2+
src/cmd/target
3+
build
4+
.vscode
5+
./log
6+
.DS_Store
7+
log/*
8+
src/rlog/log/server.log
9+
.idea/.gitignore
10+
.idea/modules.xml
11+
.idea/robustmq.iml
12+
.idea/vcs.xml
13+
logs

0 commit comments

Comments
 (0)