Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,28 @@ on:
branches: [ "main" ]

jobs:
msrv:
name: msrv (1.82.0)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust MSRV
uses: dtolnay/rust-toolchain@1.82.0
with:
targets: wasm32v1-none
- name: Cache cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.lock') }}
- name: Build and Test MSRV
run: |
cargo build --target wasm32v1-none --release
cargo test

fmt:
name: fmt
runs-on: ubuntu-latest
Expand Down Expand Up @@ -75,6 +97,6 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-wasm-${{ hashFiles('**/Cargo.lock') }}
- name: Wasm build
key: ${{ runner.os }}-cargo-build-wasm-${{ hashFiles('**/Cargo.lock') }}
- name: Build WASM
run: cargo build --target wasm32v1-none --release
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ members = [
]
resolver = "2"

[workspace.package]
rust-version = "1.82.0"

[workspace.dependencies]
soroban-sdk = "27.0.4"

Expand Down
21 changes: 12 additions & 9 deletions contracts/receipt-anchor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@
name = "receipt-anchor"
version = "0.2.0"
edition = "2021"

[lints]
workspace = true


[lib]
crate-type = ["cdylib", "rlib"]
rust-version.workspace = true

[dependencies]
soroban-sdk = { workspace = true }
soroban-sdk.workspace = true

[dev-dependencies]
proptest = "1.4"
soroban-sdk = { workspace = true, features = ["testutils"] }
proptest.workspace = true

[lints]
workspace = true

[lib]
crate-type = ["lib"
,
"cdylib"
]
18 changes: 8 additions & 10 deletions contracts/refund-vault/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@
name = "refund-vault"
version = "0.2.0"
edition = "2021"

[lints]
workspace = true


[lib]
crate-type = ["cdylib", "rlib"]
rust-version.workspace = true

[dependencies]
soroban-sdk = { workspace = true }
soroban-sdk.workspace = true

[dev-dependencies]
proptest = "1.4"
soroban-sdk = { workspace = true, features = ["testutils"] }
receipt-anchor = { path = "../receipt-anchor" }

[lib]
crate-type = ["lib"
,
"cdylib"
]