Skip to content

Commit

Permalink
Modernize name of Cargo configuration files (.cargo/config -> .cargo/…
Browse files Browse the repository at this point in the history
…config.toml)

Summary: `.cargo/config.toml` is the modern, editor-friendly name preferred since Rust 1.39. See https://doc.rust-lang.org/1.71.0/cargo/reference/config.html.

Reviewed By: shayne-fletcher

Differential Revision: D48341886

fbshipit-source-id: dc4390f2b6a974e113e1d4e01d3a3b287a05e785
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Aug 15, 2023
1 parent 7668ab8 commit 2ca05dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/fbcode_builder/getdeps/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"build_doc": OPTIONAL,
"workspace_dir": OPTIONAL,
"manifests_to_build": OPTIONAL,
# Where to write cargo config (defaults to build_dir/.cargo/config)
# Where to write cargo config (defaults to build_dir/.cargo/config.toml)
"cargo_config_file": OPTIONAL,
},
},
Expand Down
2 changes: 1 addition & 1 deletion build/fbcode_builder/manifests/fb303
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ shipit_fbcode_builder = true
repo_url = https://github.com/facebook/fb303.git

[cargo]
cargo_config_file = source/fb303/thrift/.cargo/config
cargo_config_file = source/fb303/thrift/.cargo/config.toml

[crate.pathmap]
fb303_core = fb303/thrift
Expand Down
2 changes: 1 addition & 1 deletion build/fbcode_builder/manifests/fbthrift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ shipit_fbcode_builder = true
repo_url = https://github.com/facebook/fbthrift.git

[cargo]
cargo_config_file = source/thrift/lib/rust/.cargo/config
cargo_config_file = source/thrift/lib/rust/.cargo/config.toml

[crate.pathmap]
fbthrift = thrift/lib/rust
Expand Down

0 comments on commit 2ca05dd

Please sign in to comment.