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

Update rust 1.73 #302

Merged
merged 5 commits into from
May 14, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ on:
workflow_dispatch: # allow manual trigger

env:
RUST: 1.68
RUST: 1.73
GHC: 9.6.4

jobs:
Expand Down
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Update GHC version to 9.6.4 (lts-22.9).
- Update Rust version to 1.73.
- Support protocol version 7.

## 6.2.1
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ To build the tool from source, you need the following prerequisites:
- Unix: `curl -sSL https://get.haskellstack.org/ | sh`
- Windows: [Follow the Stack install guide](https://docs.haskellstack.org/en/stable/install_and_upgrade/).

- Install Rust version 1.68+:
- Install Rust version 1.73+:
- Unix: `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`
- Windows: [Follow the Rust install
guide](https://www.rust-lang.org/tools/install)
- Use the `x86_64-pc-windows-gnu` toolchain by choosing it during
installation or by running `rustup toolchain default
stable-x86_64-pc-windows-gnu`.
- *Recommended after installing: Set the default Rust version to 1.68 by running `rustup default 1.68`*.
- *Recommended after installing: Set the default Rust version to 1.73 by running `rustup default 1.73`*.

- Install the [protoc](https://github.com/google/proto-lens/blob/master/docs/installing-protoc.md) tool for generating protobuf files:
- MacOS: `brew install protobuf`
Expand Down
2 changes: 1 addition & 1 deletion concordium-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cabal-version: 1.24
-- see: https://github.com/sol/hpack

name: concordium-client
version: 6.3.0
version: 6.2.1
description: Please see the README on GitHub at <https://github.com/Concordium/concordium-client#readme>
homepage: https://github.com/Concordium/concordium-client#readme
bug-reports: https://github.com/Concordium/concordium-client/issues
Expand Down
2 changes: 1 addition & 1 deletion deps/concordium-base
Submodule concordium-base updated 69 files
+1 −1 .github/workflows/build-test-contracts-common.yaml
+1 −1 .github/workflows/build-test-smart-contracts.yaml
+5 −4 .github/workflows/build-test-sources.yaml
+2 −2 README.md
+21 −2 Setup.hs
+10 −0 haskell-src/Concordium/Cost.hs
+5 −1 haskell-src/Concordium/MerkleProofs.hs
+0 −63 haskell-src/Concordium/Types/Accounts.hs
+0 −42 haskell-src/Concordium/Types/Migration.hs
+14 −0 haskell-src/Concordium/Types/ProtocolVersion.hs
+5 −0 haskell-src/Concordium/Wasm.hs
+18 −15 haskell-tests/ConcordiumTests/MerkleProofs.hs
+73 −16 identity-provider-service/Cargo.lock
+2 −2 identity-provider-service/Cargo.toml
+71 −14 idiss/Cargo.lock
+2 −2 idiss/Cargo.toml
+1 −1 idiss/README.md
+72 −27 mobile_wallet/Cargo.lock
+3 −3 mobile_wallet/Cargo.toml
+63 −6 rust-bins/Cargo.lock
+2 −3 rust-bins/src/bin/trace_account.rs
+223 −69 rust-src/Cargo.lock
+12 −0 rust-src/concordium_base/CHANGELOG.md
+4 −4 rust-src/concordium_base/Cargo.toml
+1 −1 rust-src/concordium_base/benches/bulletproofs.rs
+1 −5 rust-src/concordium_base/benches/elgamal_benchmarks.rs
+1 −4 rust-src/concordium_base/src/aggregate_sig/ffi.rs
+3 −3 rust-src/concordium_base/src/aggregate_sig/mod.rs
+28 −14 rust-src/concordium_base/src/base.rs
+18 −32 rust-src/concordium_base/src/cis2_types.rs
+13 −13 rust-src/concordium_base/src/cis4_types.rs
+1 −2 rust-src/concordium_base/src/common/impls.rs
+3 −0 rust-src/concordium_base/src/ffi_helpers/ffi_macros.rs
+1 −2 rust-src/concordium_base/src/id/ffi.rs
+13 −13 rust-src/concordium_base/src/id/id_proof_types.rs
+2 −2 rust-src/concordium_base/src/transactions.rs
+8 −8 rust-src/concordium_base/src/web3id/mod.rs
+9 −2 rust-src/wallet_library/CHANGELOG.md
+5 −2 rust-src/wallet_library/Cargo.toml
+1 −0 rust-src/wallet_library/resources/web3_id_request.json
+85 −0 rust-src/wallet_library/src/default_wallet_config.rs
+3 −0 rust-src/wallet_library/src/lib.rs
+73 −0 rust-src/wallet_library/src/proofs.rs
+403 −0 rust-src/wallet_library/src/statement.rs
+8 −0 rust-src/wallet_library/src/test_helpers.rs
+8 −0 smart-contracts/contracts-common/concordium-contracts-common-derive/CHANGELOG.md
+2 −2 smart-contracts/contracts-common/concordium-contracts-common-derive/Cargo.toml
+20 −6 smart-contracts/contracts-common/concordium-contracts-common-derive/src/attribute.rs
+3 −1 smart-contracts/contracts-common/concordium-contracts-common-derive/src/derive.rs
+8 −0 smart-contracts/contracts-common/concordium-contracts-common/CHANGELOG.md
+4 −4 smart-contracts/contracts-common/concordium-contracts-common/Cargo.toml
+2 −2 smart-contracts/contracts-common/concordium-contracts-common/src/hashes.rs
+3 −12 smart-contracts/contracts-common/concordium-contracts-common/src/impls.rs
+1 −1 smart-contracts/contracts-common/concordium-contracts-common/src/schema.rs
+195 −24 smart-contracts/contracts-common/concordium-contracts-common/src/types.rs
+ smart-contracts/testdata/contracts/v1/queries-contract-inspection.wasm
+157 −0 smart-contracts/testdata/contracts/v1/queries-contract-inspection.wat
+ smart-contracts/testdata/contracts/v1/upgrading-inspect-module0.wasm
+199 −0 smart-contracts/testdata/contracts/v1/upgrading-inspect-module0.wat
+ smart-contracts/testdata/contracts/v1/upgrading-inspect-module1.wasm
+201 −0 smart-contracts/testdata/contracts/v1/upgrading-inspect-module1.wat
+12 −1 smart-contracts/wasm-chain-integration/CHANGELOG.md
+15 −72 smart-contracts/wasm-chain-integration/Cargo.lock
+1 −1 smart-contracts/wasm-chain-integration/Cargo.toml
+10 −25 smart-contracts/wasm-chain-integration/benches/wasm.rs
+91 −43 smart-contracts/wasm-chain-integration/src/utils.rs
+12 −2 smart-contracts/wasm-chain-integration/src/v1/ffi.rs
+124 −37 smart-contracts/wasm-chain-integration/src/v1/mod.rs
+70 −13 smart-contracts/wasm-test/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY . /build

RUN apk add perl g++ make protoc ncurses ncurses-dev zlib zlib-static zlib-dev git wget postgresql-dev gmp-dev gmp xz

ARG RUST_VERSION=1.68
ARG RUST_VERSION=1.73
RUN wget -qO - https://sh.rustup.rs | sh -s -- --profile minimal --default-toolchain ${RUST_VERSION} -y

ARG GHC_VERSION=9.6.4
Expand Down
2 changes: 1 addition & 1 deletion scripts/distributables/macos-concordium-client.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pipeline {
agent { label 'jenkins-worker' }
environment {
GHC_VERSION = '9.6.4'
RUST_VERSION = '1.68'
RUST_VERSION = '1.73'
VERSION = sh(
returnStdout: true,
script: '''\
Expand Down
13 changes: 7 additions & 6 deletions scripts/distributables/windows-concordium-client.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pipeline {

# Extract version number from package.yaml, if not set as parameter
[ -z "$VERSION" ] && VERSION=$(awk '/version: / { print $2; exit }' package.yaml)
OUTFILE="${BASE_OUTFILE}_${VERSION}.exe"
OUTFILE="${BASE_OUTFILE}_${VERSION}.zip"

# Fail if file already exists
totalFoundObjects=$(aws s3 ls ${OUTFILE} --summarize | grep "Total Objects: " | sed 's/[^0-9]*//g')
Expand All @@ -22,18 +22,19 @@ pipeline {
fi

# Ensure correct rust env
rustup default 1.68-x86_64-pc-windows-gnu
rustup default 1.73-x86_64-pc-windows-gnu

# Build project
stack build --force-dirty

# Zip the binaries
mkdir out

# Find executable
cp $(find $PWD/.stack-work/install -type f -name "concordium-client.exe") out/
binDir=$(stack path --local-install-root)/bin
(cd $binDir && powershell -Command "Compress-Archive -Path concordium-client.exe,concordium_base.dll,sha_2.dll -DestinationPath concordium-client.zip")
mv -f $binDir/concordium-client.zip out/concordium-client.zip

# Push to s3
aws s3 cp out/concordium-client.exe ${OUTFILE} --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
aws s3 cp out/concordium-client.zip ${OUTFILE} --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
'''.stripIndent()
}
}
Expand Down
Loading