Skip to content

Commit 47ca21a

Browse files
authored
feat: add the code (#2)
* Init * add example and README.md & add ci * chore(docs): add LICENSE header & update README.md * chore: bump to version 1.0.0 & update package metadata
1 parent 7f503fd commit 47ca21a

File tree

9 files changed

+1766
-2
lines changed

9 files changed

+1766
-2
lines changed

.github/workflows/ci.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
name: Auto Build CI
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macOS-latest]
16+
rust: [stable]
17+
18+
steps:
19+
- name: Checkout Repository
20+
uses: actions/checkout@master
21+
22+
- name: Install Rust toolchain
23+
uses: actions-rs/toolchain@v1
24+
with:
25+
profile: minimal
26+
toolchain: ${{ matrix.rust }}
27+
components: rustfmt, clippy
28+
override: true
29+
30+
- name: Cargo Test For runtime-async-std
31+
uses: actions-rs/cargo@v1
32+
with:
33+
command: test
34+
args: --no-default-features --features runtime-async-std
35+
36+
- name: Cargo Test For runtime-tokio
37+
uses: actions-rs/cargo@v1
38+
with:
39+
command: test
40+
args: --no-default-features --features runtime-tokio
41+
42+
- name: Cargo Clippy
43+
uses: actions-rs/cargo@v1
44+
with:
45+
command: clippy
46+
args: -- -D warnings
47+
48+
- name: Cargo Fmt Check
49+
uses: actions-rs/cargo@v1
50+
with:
51+
command: fmt
52+
args: --all -- --check

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ Cargo.lock
1818
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
1919
# and can be added to the global gitignore or merged into this file. For a more nuclear
2020
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
21-
#.idea/
21+
#.idea/
22+
23+
# vscode
24+
.vscode

0 commit comments

Comments
 (0)