Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/.devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "BBS Rust Dev Container",
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
"workspaceFolder": "/workspaces/BBS_rust",
"customizations": {
"vscode": {
"extensions": [
"rust-lang.rust-analyzer",
"vadimcn.vscode-lldb",
"tamasfe.even-better-toml",
"serayuzgur.crates"
],
"settings": {
"rust-analyzer.check.command": "clippy",
"rust-analyzer.cargo.features": "all",
"rust-analyzer.linkedProjects": [
"/workspaces/BBS_rust/bbs/Cargo.toml"
],
"editor.formatOnSave": true,
"files.watcherExclude": {
"**/bbs/target/**": true
}
}
}
},
"postCreateCommand": "cd /workspaces/BBS_rust/bbs && rustup component add rustfmt clippy && cargo fetch",
"remoteUser": "vscode"
}
42 changes: 42 additions & 0 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Rust CI

"on":
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build-and-test:
name: Build and test signer
runs-on: ubuntu-latest
defaults:
run:
working-directory: bbs

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: Cache cargo registry and build artifacts
uses: Swatinem/rust-cache@v2
with:
workspaces: |
bbs -> target

- name: Check formatting
run: cargo fmt --all -- --check

- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose
28 changes: 14 additions & 14 deletions bbs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bbs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "signer"
name = "bbs"
version = "0.1.0"
edition = "2024"

Expand Down
Loading
Loading