Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.11 beta 6 #247

Merged
merged 39 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
49beacb
vm: change PcCs to PcAs
dr-orlovsky Apr 15, 2024
6d2567d
vm: add PcIs operation for a sum of pedersen commitments from inputs
dr-orlovsky Apr 15, 2024
641a260
schema: add timestamp
dr-orlovsky Apr 15, 2024
2428304
schema: add reserved fields
dr-orlovsky Apr 16, 2024
1242c7e
schema: default to escape urn prefix in displaying SchemaId
dr-orlovsky Apr 17, 2024
64f7ed8
Merge branch 'schema-timestamp' into develop
dr-orlovsky Apr 18, 2024
177c908
Merge branch 'opcodes' into develop
dr-orlovsky Apr 18, 2024
19181e6
vm: update to AluVM with no byte_count method
dr-orlovsky Apr 19, 2024
5880c0c
Merge branch 'feat/rm-bytecount' into develop
dr-orlovsky Apr 19, 2024
3c2c651
vm: update macro assembly with new Pedersen opcodes
dr-orlovsky Apr 19, 2024
cd05f81
chore: change prelude exports
dr-orlovsky Apr 19, 2024
31ab25b
vm: make RGB assembly opcodes use constant state types and not literals
dr-orlovsky Apr 20, 2024
2ffacbd
vm: add ldm macro assembly command
dr-orlovsky Apr 20, 2024
d63d447
vm: require marco assembly codes to take constant state types, not ints
dr-orlovsky Apr 20, 2024
f23a3dd
vm: fix ldm macro asm args
dr-orlovsky Apr 20, 2024
648bb45
Merge branch 'opcodes' into develop
dr-orlovsky Apr 20, 2024
9b34f1b
fix serde serialization of id types
dr-orlovsky Apr 22, 2024
3d6b34b
chore: bump ascii-armor version
dr-orlovsky Apr 23, 2024
ba712f7
schema: fix commitment to timestamp
dr-orlovsky Apr 25, 2024
afc19b9
chore: updgrade ids from Baid58 to Baid64
dr-orlovsky Apr 25, 2024
26a3491
chore: rename library to rgbcore
dr-orlovsky Apr 25, 2024
0d7bbcc
improve Identity API: add support for anonymous identities
dr-orlovsky Apr 25, 2024
3fa35c1
chore: update ASCII armoring
dr-orlovsky Apr 28, 2024
27e85ce
chore: fix prelude::stl with feature gate
yanganto Apr 29, 2024
f046933
Merge pull request #246 from RGB-WG/dev-prelude-stl
dr-orlovsky Apr 29, 2024
b94bc06
ci: remove actions-rs use nix to check
yanganto Apr 8, 2024
991f237
ci: rename Build Check for ci flow
yanganto Apr 12, 2024
fd06222
ci: remove cache provided by unknown parties
yanganto Apr 22, 2024
ac6201a
ci: fix typo check on RGB address
yanganto Apr 22, 2024
6b2fdbc
ci: update coverage v3 -> v4
yanganto Apr 22, 2024
63719fc
ci: add dependency bot
yanganto Apr 22, 2024
8257db1
ci: upgrade checkout v2 -> v4
yanganto Apr 23, 2024
2e9182c
ci: update lint ci with nix
yanganto Apr 23, 2024
13f71f0
ci: update test ci with nix
yanganto Apr 23, 2024
91f5e21
ci: update feature check with nix
yanganto Apr 23, 2024
1b24525
ci: update codecov with nix
yanganto Apr 23, 2024
fcef235
ci: enable ci on develop and release branches
yanganto Apr 29, 2024
e5ed87a
chore: fix linter
yanganto Apr 30, 2024
b34b2c7
Merge pull request #235 from RGB-WG/v0.11-msrv
dr-orlovsky May 3, 2024
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
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
64 changes: 29 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: Build
name: Build Check

on:
push:
branches: [ master ]
branches:
- master
- develop
- 'v[0-9]+.[0-9]+'
pull_request:
branches: [ master ]
branches:
- master
- develop
- 'v[0-9]+.[0-9]+'

env:
CARGO_TERM_COLOR: always
Expand All @@ -13,13 +19,14 @@ jobs:
default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# NOTE: Dont use nix here everything should be based on the ubuntu-latest
- name: Install rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Default build
- name: Latest Ubuntu build check
uses: actions-rs/cargo@v1
with:
command: check
Expand All @@ -33,36 +40,28 @@ jobs:
- stl
- serde
steps:
- uses: actions/checkout@v2
- name: Install rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Feature ${{ matrix.feature }}
uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features --features=${{ matrix.feature }}
- name: Defaults + ${{ matrix.feature }}
uses: actions-rs/cargo@v1
with:
command: check
args: --features=${{ matrix.feature }}
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
- name: Check feature ${{ matrix.feature }} only
run: nix develop .#stable -c cargo check --no-default-features --features=${{ matrix.feature }}
- name: Check feature ${{ matrix.feature }} with defaults
run: nix develop .#stable -c cargo check --features=${{ matrix.feature }}
platforms:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, macos-12, macos-13, windows-2019, windows-2022 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# NOTE: Dont use nix in platform checks everything should based on the host system
- name: Install rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build with all features
- name: Build check with all features
uses: actions-rs/cargo@v1
with:
command: check
Expand All @@ -72,16 +71,11 @@ jobs:
strategy:
fail-fast: false
matrix:
toolchain: [ nightly, beta, stable, 1.75.0 ]
toolchain: [ nightly, beta, stable, msrv ]
steps:
- uses: actions/checkout@v2
- name: Install rust ${{ matrix.toolchain }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- name: All features
uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --all-targets --all-features
- name: checkout
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
- name: Check rgb-core
run: nix develop ".#${{ matrix.toolchain }}" -c cargo check --workspace --all-targets --all-features
50 changes: 20 additions & 30 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: Codecov

on:
push:
branches: [ master ]
branches:
- master
- develop
- 'v[0-9]+.[0-9]+'
pull_request:
branches: [ master ]
branches:
- master
- develop
- 'v[0-9]+.[0-9]+'

env:
CARGO_TERM_COLOR: always
Expand All @@ -14,38 +20,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, llvm-tools-preview
- name: Install Nix
uses: cachix/install-nix-action@v26
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
env:
CARGO_INCREMENTAL: "0"
RUSTFLAGS: "-Cinstrument-coverage"
RUSTDOCFLAGS: "-Cinstrument-coverage"
run: nix develop .#codecov -c cargo build --release
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast
env:
CARGO_INCREMENTAL: "0"
RUSTFLAGS: "-Cinstrument-coverage"
RUSTDOCFLAGS: "-Cinstrument-coverage"
run: nix develop .#codecov -c cargo test --all-features --no-fail-fast
- name: Install grcov
run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi
run: nix develop .#codecov -c cargo install grcov
- name: Generate coverage
run: grcov . --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
run: nix develop .#codecov -c grcov . --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
files: ./coverage.lcov
flags: rust
fail_ci_if_error: true
# TODO: set true when CODECOV_TOKEN is set
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
63 changes: 24 additions & 39 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: Lints

on:
push:
branches: [ master ]
branches:
- master
- develop
- 'v[0-9]+.[0-9]+'
pull_request:
branches: [ master ]
branches:
- master
- develop
- 'v[0-9]+.[0-9]+'

env:
CARGO_TERM_COLOR: always
Expand All @@ -13,50 +19,29 @@ jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rustc nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
name: Formatting
with:
command: fmt
args: --all -- --check
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
- name: Formatting
run: nix develop .#nightly -c cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rustc stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy
- uses: actions-rs/cargo@v1
name: Clippy
with:
command: clippy
args: --workspace --all-features --all-targets -- -D warnings
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
- name: Clippy
run: nix develop .#stable -c cargo clippy --workspace --all-features --all-targets -- -D warnings
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rustc nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rust-docs
- uses: actions-rs/cargo@v1
name: Doc
with:
command: doc
args: --workspace --all-features
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
- name: Doc
run: nix develop .#stable -c cargo doc --workspace --all-features
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: crate-ci/typos@master
39 changes: 16 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: Tests

on:
push:
branches: [ master ]
branches:
- master
- develop
- 'v[0-9]+.[0-9]+'
pull_request:
branches: [ master ]
branches:
- master
- develop
- 'v[0-9]+.[0-9]+'

env:
CARGO_TERM_COLOR: always
Expand All @@ -13,29 +19,16 @@ jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
- name: Build & test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-features --no-fail-fast
run: nix develop .#stable -c cargo test --workspace --all-features --no-fail-fast
wasm-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- uses: jetli/wasm-pack-action@v0.3.0
- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
- name: Test in headless Chrome
run: wasm-pack test --headless --chrome
run: nix develop .#wasm -c wasm-pack test --headless --chrome
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
*.swp

/dep_test
default*.profraw
Loading
Loading