We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd6db29 commit f3e5e88Copy full SHA for f3e5e88
top-crates/src/main.rs
@@ -111,5 +111,14 @@ fn main() {
111
112
fn write_manifest(manifest: TomlManifest, path: impl AsRef<Path>) {
113
let content = toml::to_string(&manifest).expect("Couldn't serialize TOML");
114
+
115
+ let disclaimer = "# This file is automatically @generated by the top-crates script.
116
+# Do not edit it manually. Any pull requests changing this file will likely be closed.
117
+# See https://github.com/rust-lang/rust-playground/blob/main/CRATE_POLICY.md for details.
118
+#
119
+";
120
121
+ let content = disclaimer.to_string() + &content;
122
123
fs::write(path, content).expect("Couldn't write Cargo.toml");
124
}
0 commit comments