Skip to content

Conversation

@Arjentix
Copy link
Contributor

@Arjentix Arjentix commented May 9, 2022

Signed-off-by: Daniil Polyakov [email protected]

Description of the Change

cargo fmt usage was replaced by rustfmt directly. This is a more clean way to avoid cargo recursion problem (instead of just removing CARGO_RECURSION env-variable)

Issue

Benefits

More legal way to solve cargo recursion problem for formatting smartcontract

Possible Drawbacks

Maybe non-trivial for multi-files smartcontracts

Signed-off-by: Daniil Polyakov <[email protected]>
@Arjentix Arjentix added iroha2-dev The re-implementation of a BFT hyperledger in RUST build labels May 9, 2022
.args(&[smartcontract_path
.join("src/lib.rs")
.to_str()
.expect("Can't convert smartcontract path to str")])
Copy link
Contributor

Choose a reason for hiding this comment

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

I would maybe recommend to use check mode with --check.

@mversic mversic self-assigned this May 10, 2022
@appetrosyan appetrosyan merged commit e3977db into hyperledger-iroha:iroha2-dev May 10, 2022
@Arjentix Arjentix deleted the rustfmt_in_build_script branch May 10, 2022 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build iroha2-dev The re-implementation of a BFT hyperledger in RUST

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants