Skip to content

Commit d9f8f33

Browse files
authored
Merge pull request #1 from LetsVerify/dev
fin basic sign/verify process
2 parents ffc05da + 5c81e06 commit d9f8f33

14 files changed

Lines changed: 444 additions & 192 deletions

File tree

.github/.devcontainer.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "BBS Rust Dev Container",
3+
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
4+
"workspaceFolder": "/workspaces/BBS_rust",
5+
"customizations": {
6+
"vscode": {
7+
"extensions": [
8+
"rust-lang.rust-analyzer",
9+
"vadimcn.vscode-lldb",
10+
"tamasfe.even-better-toml",
11+
"serayuzgur.crates"
12+
],
13+
"settings": {
14+
"rust-analyzer.check.command": "clippy",
15+
"rust-analyzer.cargo.features": "all",
16+
"rust-analyzer.linkedProjects": [
17+
"/workspaces/BBS_rust/bbs/Cargo.toml"
18+
],
19+
"editor.formatOnSave": true,
20+
"files.watcherExclude": {
21+
"**/bbs/target/**": true
22+
}
23+
}
24+
}
25+
},
26+
"postCreateCommand": "cd /workspaces/BBS_rust/bbs && rustup component add rustfmt clippy && cargo fetch",
27+
"remoteUser": "vscode"
28+
}

.github/workflows/rust-test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Rust CI
2+
3+
"on":
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
build-and-test:
14+
name: Build and test signer
15+
runs-on: ubuntu-latest
16+
defaults:
17+
run:
18+
working-directory: bbs
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Install stable Rust
25+
uses: dtolnay/rust-toolchain@stable
26+
with:
27+
components: rustfmt, clippy
28+
29+
- name: Cache cargo registry and build artifacts
30+
uses: Swatinem/rust-cache@v2
31+
with:
32+
workspaces: |
33+
bbs -> target
34+
35+
- name: Check formatting
36+
run: cargo fmt --all -- --check
37+
38+
- name: Build
39+
run: cargo build --verbose
40+
41+
- name: Run tests
42+
run: cargo test --verbose

bbs/Cargo.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bbs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "signer"
2+
name = "bbs"
33
version = "0.1.0"
44
edition = "2024"
55

0 commit comments

Comments
 (0)