Closed simonjiao closed 3 months ago
The update refines the configuration management in the setup script by directing output to .cargo/config.toml
, aligning with Rust's standard practices for configuration files. Additionally, similar adjustments are made across test files to ensure consistency in handling the configuration file path. These modifications uphold the existing logic while enhancing clarity and correctness in the codebase.
Files | Change Summary |
---|---|
scripts/dev_setup.sh | Changed output redirection from .cargo/config to .cargo/config.toml for Mold linker installation. |
genesis/tests/generated_files.rs, rpc/api/src/tests.rs, vm/stdlib/tests/generated_files.rs | Updated string replacement from "M .cargo/config" to "M .cargo/config.toml" in version control checks. |
In the burrow deep and bright,
A script now shines, oh what a sight!
Configs change with great delight,
Rusty paths, all set just right.
Hops of joy, the code will flow,
With every change, we learn and grow! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Silence warnings like below:
/home/ubuntu//.cargo/bin/cargo fmt -- --check
warning:
/home/ubuntu/actions-runner/_work/starcoin/starcoin/.cargo/config
is deprecated in favor ofconfig.toml
Warning: note: if you need to support cargo 1.38 or earlier, you can symlink
config
toconfig.toml
Silence warnings like below:
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
-
-
Other information
Summary by CodeRabbit
Summary by CodeRabbit
.cargo/config.toml
file, improving alignment with common Rust practices..cargo/config.toml
in version control checks, ensuring proper functionality in handling configuration file paths.