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

[fix] #2150: Use rustfmt instead of cargo fmt in client/build.rs #2187

Merged

Conversation

Arjentix
Copy link
Contributor

@Arjentix Arjentix commented May 9, 2022

Signed-off-by: Daniil Polyakov arjentix@gmail.com

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 <arjentix@gmail.com>
@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