-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit bf13638 Author: Colin Roberts <colin@primitive.xyz> Date: Wed Feb 21 09:28:39 2024 -0700 feat: DFMM kit Rust crate (#5) * feat: dfmm kit * feat: `Pool` struct and impls * feat: README.md * fix: the swap_data --------- Co-authored-by: Waylon Jepsen <57912727+0xJepsen@users.noreply.github.com>
- Loading branch information
1 parent
565b3ca
commit 236a526
Showing
66 changed files
with
53,932 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: rust | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
test: | ||
name: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: install rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
- name: test | ||
run: cargo test --workspace --all-features | ||
|
||
clippy: | ||
name: clippy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: install rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.75.0 | ||
components: clippy | ||
- name: cargo clippy | ||
run: cargo clippy --workspace --all-features -- -D warnings | ||
|
||
udeps: | ||
name: udeps | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: install rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
- name: install udeps | ||
run: cargo install --git https://github.com/est31/cargo-udeps --locked | ||
- name: cargo udeps | ||
run: cargo +nightly udeps | ||
|
||
fmt: | ||
name: fmt | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: install rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
components: rustfmt | ||
- name: cargo fmt | ||
run: cargo +nightly fmt --all -- --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,11 @@ | |
cache | ||
out | ||
optimized-out | ||
.env | ||
|
||
# Rust | ||
kit/target | ||
target | ||
|
||
# VSCode | ||
.vscode | ||
.env |
Oops, something went wrong.