From df4dd79642bc2ddd15944f5e01e54a0baa84ee69 Mon Sep 17 00:00:00 2001 From: Violet Hansen Date: Mon, 19 May 2025 20:57:38 +0300 Subject: [PATCH 1/5] Update Cargo.toml Updated the Cargo.toml with: 1. Added license, the same as the repository. 2. Added repository URL. 3. Added incremental to the release profile to improve re-compile times. 4. Enabled overflow-checks for the release profile. 5. Added minimum required Rust version just like the global.json for .NET builds. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 05872fc405a6..e06d54893257 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,9 @@ name = "edit" version = "1.0.0" edition = "2024" +rust-version = "1.87" # Enforces minimum required installed Rust version, equivalent of global.json for .NET environments. +repository = "https://github.com/microsoft/edit" +license = "MIT" [[bench]] name = "lib" @@ -22,6 +25,8 @@ opt-level = "s" # reduces binary size by ~25% panic = "abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort split-debuginfo = "packed" # generates a seperate *.dwp/*.dSYM so the binary can get stripped strip = "symbols" # See split-debuginfo - allows us to drop the size by ~65% +overflow-checks = true # Disabled by default in Release +incremental = true # Improves re-compile times [profile.bench] codegen-units = 16 # Make compiling criterion faster (16 is the default, but profile.release sets it to 1) From 65005737352bcb843d7bec381e203a6ab126a0d1 Mon Sep 17 00:00:00 2001 From: Violet Hansen Date: Mon, 19 May 2025 21:25:33 +0300 Subject: [PATCH 2/5] Update Cargo.toml Added Homepage URL, Documentation URL and Description. --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e06d54893257..082086db69a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,9 @@ version = "1.0.0" edition = "2024" rust-version = "1.87" # Enforces minimum required installed Rust version, equivalent of global.json for .NET environments. repository = "https://github.com/microsoft/edit" +homepage = "https://github.com/microsoft/edit" +documentation = "https://devblogs.microsoft.com/commandline/edit-is-now-open-source" +description = "Edit is a command-line text editor in Windows." license = "MIT" [[bench]] From 7d3b8a3223232ab7391933617a75213327a3e619 Mon Sep 17 00:00:00 2001 From: Violet Hansen Date: Mon, 19 May 2025 21:28:15 +0300 Subject: [PATCH 3/5] Update Cargo.toml --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 082086db69a9..5cca6bb24cdd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ rust-version = "1.87" # Enforces minimum required installed Rust version, equiva repository = "https://github.com/microsoft/edit" homepage = "https://github.com/microsoft/edit" documentation = "https://devblogs.microsoft.com/commandline/edit-is-now-open-source" -description = "Edit is a command-line text editor in Windows." +description = "Edit is a multi-platform command-line text editor." license = "MIT" [[bench]] From 28f291ba57f5760523fbea546551db79bf5a5aae Mon Sep 17 00:00:00 2001 From: Violet Hansen Date: Mon, 19 May 2025 21:57:03 +0300 Subject: [PATCH 4/5] Update Cargo.toml --- Cargo.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5cca6bb24cdd..af5613cf15cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,11 +2,9 @@ name = "edit" version = "1.0.0" edition = "2024" -rust-version = "1.87" # Enforces minimum required installed Rust version, equivalent of global.json for .NET environments. +rust-version = "1.87" repository = "https://github.com/microsoft/edit" homepage = "https://github.com/microsoft/edit" -documentation = "https://devblogs.microsoft.com/commandline/edit-is-now-open-source" -description = "Edit is a multi-platform command-line text editor." license = "MIT" [[bench]] From 0ad91d5ffacf7c06a31d64d2109f8ab08fc5a06c Mon Sep 17 00:00:00 2001 From: Violet Hansen Date: Tue, 20 May 2025 08:10:36 +0300 Subject: [PATCH 5/5] Update Cargo.toml --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index af5613cf15cc..2cefce25751e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,6 @@ opt-level = "s" # reduces binary size by ~25% panic = "abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort split-debuginfo = "packed" # generates a seperate *.dwp/*.dSYM so the binary can get stripped strip = "symbols" # See split-debuginfo - allows us to drop the size by ~65% -overflow-checks = true # Disabled by default in Release incremental = true # Improves re-compile times [profile.bench]