Skip to content

Commit

Permalink
Merge pull request #159 from huitseeker/updates
Browse files Browse the repository at this point in the history
Chore: update to Rust edition 2021 & v1.57
  • Loading branch information
huitseeker authored Jan 13, 2022
2 parents e438a5e + aca7454 commit 48ad627
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ env:

jobs:
release-check:
name: Rust compilation ${{matrix.toolchain}} on ${{matrix.os}}
name: Rust release-mode compilation ${{matrix.toolchain}} on ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion fastpay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "fastpay"
version = "0.1.0"
authors = ["Libra <oncall+libra@xmail.facebook.com>"]
publish = false
edition = "2018"
edition = "2021"

[dependencies]
anyhow = "1.0.52"
Expand Down
2 changes: 1 addition & 1 deletion fastpay_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "fastpay_core"
version = "0.1.0"
authors = ["Libra <oncall+libra@xmail.facebook.com>"]
publish = false
edition = "2018"
edition = "2021"

[dependencies]
rocksdb = "0.17.0"
Expand Down
2 changes: 1 addition & 1 deletion fastx_programmability/adapter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Mysten Labs <eng@mystenlabs.com>"]
description = "Adapter and accompanying CLI for local fastX development"
license = "Apache-2.0"
publish = false
edition = "2018"
edition = "2021"

[dependencies]
anyhow = "1.0.52"
Expand Down
2 changes: 1 addition & 1 deletion fastx_programmability/framework/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "fastx-framework"
version = "0.1.0"
edition = "2018"
edition = "2021"
authors = ["Mysten Labs <eng@mystenlabs.com>"]
description = "Move framework for fastX platform"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion fastx_programmability/verifier/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "fastx-verifier"
version = "0.1.0"
edition = "2018"
edition = "2021"
authors = ["Mysten Labs <eng@mystenlabs.com>"]
description = "Move framework for fastX platform"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion fastx_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "fastx-types"
version = "0.1.0"
authors = ["Mysten Labs <build@mystenlabs.com>"]
publish = false
edition = "2018"
edition = "2021"

[dependencies]
anyhow = "1.0.52"
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.56.0
1.57.0
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
edition = "2018"
edition = "2021"
use_field_init_shorthand = true

1 comment on commit 48ad627

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bench results

�[0m�[0m�[1m�[32m Finished�[0m release [optimized + debuginfo] target(s) in 3.37s
�[0m�[0m�[1m�[32m Running�[0m target/release/bench
[2022-01-13T15:13:34Z INFO bench] Starting benchmark: OrdersAndCerts
[2022-01-13T15:13:34Z INFO bench] Preparing accounts.
[2022-01-13T15:13:39Z INFO bench] Preparing transactions.
[2022-01-13T15:13:49Z INFO fastpay::network] Listening to Tcp traffic on 127.0.0.1:9555
[2022-01-13T15:13:50Z INFO bench] Set max_in_flight to 500
[2022-01-13T15:13:50Z INFO bench] Sending requests.
[2022-01-13T15:13:50Z INFO fastpay::network] Sending Tcp requests to 127.0.0.1:9555
[2022-01-13T15:13:52Z INFO fastpay::network] 127.0.0.1:9555 has processed 5000 packets
[2022-01-13T15:13:53Z INFO fastpay::network] In flight 500 Remaining 35000
[2022-01-13T15:13:53Z INFO fastpay::network] 127.0.0.1:9555 has processed 10000 packets
[2022-01-13T15:13:54Z INFO fastpay::network] 127.0.0.1:9555 has processed 15000 packets
[2022-01-13T15:13:55Z INFO fastpay::network] In flight 500 Remaining 30000
[2022-01-13T15:13:56Z INFO fastpay::network] 127.0.0.1:9555 has processed 20000 packets
[2022-01-13T15:13:56Z INFO fastpay::network] In flight 500 Remaining 30000
[2022-01-13T15:13:57Z INFO fastpay::network] 127.0.0.1:9555 has processed 25000 packets
[2022-01-13T15:13:58Z INFO fastpay::network] In flight 500 Remaining 25000
[2022-01-13T15:13:59Z INFO fastpay::network] 127.0.0.1:9555 has processed 30000 packets
[2022-01-13T15:13:59Z INFO fastpay::network] In flight 500 Remaining 25000
[2022-01-13T15:14:01Z INFO fastpay::network] 127.0.0.1:9555 has processed 35000 packets
[2022-01-13T15:14:01Z INFO fastpay::network] In flight 500 Remaining 20000
[2022-01-13T15:14:02Z INFO fastpay::network] 127.0.0.1:9555 has processed 40000 packets
[2022-01-13T15:14:02Z INFO fastpay::network] In flight 500 Remaining 20000
[2022-01-13T15:14:04Z INFO fastpay::network] 127.0.0.1:9555 has processed 45000 packets
[2022-01-13T15:14:05Z INFO fastpay::network] In flight 500 Remaining 15000
[2022-01-13T15:14:05Z INFO fastpay::network] 127.0.0.1:9555 has processed 50000 packets
[2022-01-13T15:14:06Z INFO fastpay::network] 127.0.0.1:9555 has processed 55000 packets
[2022-01-13T15:14:07Z INFO fastpay::network] In flight 500 Remaining 10000
[2022-01-13T15:14:08Z INFO fastpay::network] 127.0.0.1:9555 has processed 60000 packets
[2022-01-13T15:14:08Z INFO fastpay::network] In flight 500 Remaining 10000
[2022-01-13T15:14:09Z INFO fastpay::network] 127.0.0.1:9555 has processed 65000 packets
[2022-01-13T15:14:09Z INFO fastpay::network] In flight 500 Remaining 5000
[2022-01-13T15:14:10Z INFO fastpay::network] 127.0.0.1:9555 has processed 70000 packets
[2022-01-13T15:14:10Z INFO fastpay::network] In flight 500 Remaining 5000
[2022-01-13T15:14:11Z INFO fastpay::network] 127.0.0.1:9555 has processed 75000 packets
[2022-01-13T15:14:11Z INFO fastpay::network] Done sending Tcp requests to 127.0.0.1:9555
[2022-01-13T15:14:12Z INFO fastpay::network] 127.0.0.1:9555 has processed 80000 packets
[2022-01-13T15:14:12Z INFO fastpay::network] Done sending Tcp requests to 127.0.0.1:9555
[2022-01-13T15:14:12Z INFO bench] Received 80000 responses.
[2022-01-13T15:14:12Z WARN bench] Completed benchmark for OrdersAndCerts
Total time: 21553789us, items: 40000, tx/sec: 1855.8221944178817

Please sign in to comment.