From bc5dbf1817be61f9c3bbf0b5e497d175dda53576 Mon Sep 17 00:00:00 2001 From: Aaron Ross Date: Wed, 16 Mar 2022 23:31:25 -0700 Subject: [PATCH 1/2] set `readme` in `boa_engine/Cargo.toml` --- boa_engine/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/boa_engine/Cargo.toml b/boa_engine/Cargo.toml index bedc89aec0b..af292bf5e69 100644 --- a/boa_engine/Cargo.toml +++ b/boa_engine/Cargo.toml @@ -9,6 +9,7 @@ repository = "https://github.com/boa-dev/boa" keywords = ["javascript", "js", "compiler", "lexer", "parser"] categories = ["parser-implementations", "compilers"] license = "Unlicense/MIT" +readme = "../README.md" exclude = [ "../.vscode/*", "../.editorconfig", From eb771b5c684b91580c83b36b84cabfeec7c7e7c3 Mon Sep 17 00:00:00 2001 From: Aaron Ross Date: Wed, 16 Mar 2022 23:32:40 -0700 Subject: [PATCH 2/2] remove unnecessary `exclude` field from `Cargo.toml` The default behaviour of `cargo package` if neither `exclude` or `include` is specified is to include all files from the package root, excluding - dotfiles - .gitignore'd files - subpackages (any subdirectory with a `Cargo.toml` file) - the `/target` directory You can read more [here](https://doc.rust-lang.org/cargo/reference/manifest.html#the-exclude-and-include-fields). --- boa_cli/Cargo.toml | 18 ------------------ boa_engine/Cargo.toml | 18 ------------------ boa_gc/Cargo.toml | 18 ------------------ boa_interner/Cargo.toml | 18 ------------------ boa_profiler/Cargo.toml | 20 +------------------- boa_tester/Cargo.toml | 18 ------------------ boa_unicode/Cargo.toml | 18 ------------------ boa_wasm/Cargo.toml | 18 ------------------ 8 files changed, 1 insertion(+), 145 deletions(-) diff --git a/boa_cli/Cargo.toml b/boa_cli/Cargo.toml index a12a7ffaf8f..61a4c576a39 100644 --- a/boa_cli/Cargo.toml +++ b/boa_cli/Cargo.toml @@ -10,24 +10,6 @@ keywords = ["javascript", "compiler", "lexer", "parser", "js", "cli"] categories = ["command-line-utilities"] license = "Unlicense/MIT" default-run = "boa" -exclude = [ - "../.vscode/*", - "../.editorconfig", - "../test262/*", - "../node_modules/*", - "../target/*", - "../dist/*", - "../.github/*", - "../assets/*", - "../docs/*", - "../*.js", - "../test_ignore.txt", - "../yarn.lock", - "../package.json", - "../index.html", - "../tests/*", - "../.github/*", -] [dependencies] boa_engine = { path = "../boa_engine", features = ["deser", "console"], version = "0.14.0" } diff --git a/boa_engine/Cargo.toml b/boa_engine/Cargo.toml index af292bf5e69..8e7ad1aaeea 100644 --- a/boa_engine/Cargo.toml +++ b/boa_engine/Cargo.toml @@ -10,24 +10,6 @@ keywords = ["javascript", "js", "compiler", "lexer", "parser"] categories = ["parser-implementations", "compilers"] license = "Unlicense/MIT" readme = "../README.md" -exclude = [ - "../.vscode/*", - "../.editorconfig", - "../test262/*", - "../node_modules/*", - "../target/*", - "../dist/*", - "../.github/*", - "../assets/*", - "../docs/*", - "../*.js", - "../test_ignore.txt", - "../yarn.lock", - "../package.json", - "../index.html", - "../tests/*", - "../.github/*", -] [features] profiler = ["boa_profiler/profiler"] diff --git a/boa_gc/Cargo.toml b/boa_gc/Cargo.toml index 6a745939886..c055eda66d6 100644 --- a/boa_gc/Cargo.toml +++ b/boa_gc/Cargo.toml @@ -9,24 +9,6 @@ repository = "https://github.com/boa-dev/boa" keywords = ["javascript", "js", "garbage", "memory"] categories = ["command-line-utilities"] license = "Unlicense/MIT" -exclude = [ - "../.vscode/*", - "../.editorconfig", - "../test262/*", - "../node_modules/*", - "../target/*", - "../dist/*", - "../.github/*", - "../assets/*", - "../docs/*", - "../*.js", - "../test_ignore.txt", - "../yarn.lock", - "../package.json", - "../index.html", - "../tests/*", - "../.github/*", -] [dependencies] gc = { version = "0.4.1", features = ["derive"] } diff --git a/boa_interner/Cargo.toml b/boa_interner/Cargo.toml index 0ce22a2f93a..4793cdfe5ea 100644 --- a/boa_interner/Cargo.toml +++ b/boa_interner/Cargo.toml @@ -9,24 +9,6 @@ repository = "https://github.com/boa-dev/boa" keywords = ["javascript", "js", "string", "interner"] categories = ["data-structures"] license = "Unlicense/MIT" -exclude = [ - "../.vscode/*", - "../.editorconfig", - "../test262/*", - "../node_modules/*", - "../target/*", - "../dist/*", - "../.github/*", - "../assets/*", - "../docs/*", - "../*.js", - "../test_ignore.txt", - "../yarn.lock", - "../package.json", - "../index.html", - "../tests/*", - "../.github/*", -] [dependencies] string-interner = "0.14.0" diff --git a/boa_profiler/Cargo.toml b/boa_profiler/Cargo.toml index ebcc40ddac9..9207ffaa4a8 100644 --- a/boa_profiler/Cargo.toml +++ b/boa_profiler/Cargo.toml @@ -9,28 +9,10 @@ repository = "https://github.com/boa-dev/boa" keywords = ["javascript", "js", "compiler", "profiler"] categories = ["development-tools::profiling"] license = "Unlicense/MIT" -exclude = [ - "../.vscode/*", - "../.editorconfig", - "../test262/*", - "../node_modules/*", - "../target/*", - "../dist/*", - "../.github/*", - "../assets/*", - "../docs/*", - "../*.js", - "../test_ignore.txt", - "../yarn.lock", - "../package.json", - "../index.html", - "../tests/*", - "../.github/*", -] [features] profiler = ["measureme", "once_cell"] [dependencies] measureme = { version = "10.0.0", optional = true } -once_cell = { version = "1.10.0", optional = true } \ No newline at end of file +once_cell = { version = "1.10.0", optional = true } diff --git a/boa_tester/Cargo.toml b/boa_tester/Cargo.toml index e535b7b5b19..f148ffe6597 100644 --- a/boa_tester/Cargo.toml +++ b/boa_tester/Cargo.toml @@ -9,24 +9,6 @@ repository = "https://github.com/boa-dev/boa" keywords = ["javascript", "ECMASCript", "compiler", "test262", "tester"] categories = ["command-line-utilites"] license = "Unlicense/MIT" -exclude = [ - "../.vscode/*", - "../.editorconfig", - "../test262/*", - "../node_modules/*", - "../target/*", - "../dist/*", - "../.github/*", - "../assets/*", - "../docs/*", - "../*.js", - "../test_ignore.txt", - "../yarn.lock", - "../package.json", - "../index.html", - "../tests/*", - "../.github/*", -] [dependencies] boa_engine = { path = "../boa_engine", version = "0.14.0" } diff --git a/boa_unicode/Cargo.toml b/boa_unicode/Cargo.toml index 1052514f1ac..9127836216d 100644 --- a/boa_unicode/Cargo.toml +++ b/boa_unicode/Cargo.toml @@ -9,24 +9,6 @@ repository = "https://github.com/boa-dev/boa" keywords = ["javascript", "compiler", "lexer", "parser", "unicode"] categories = ["parsing"] license = "Unlicense/MIT" -exclude = [ - "../.vscode/*", - "../.editorconfig", - "../test262/*", - "../node_modules/*", - "../target/*", - "../dist/*", - "../.github/*", - "../assets/*", - "../docs/*", - "../*.js", - "../test_ignore.txt", - "../yarn.lock", - "../package.json", - "../index.html", - "../tests/*", - "../.github/*", -] [dependencies] unicode-general-category = "0.5.1" diff --git a/boa_wasm/Cargo.toml b/boa_wasm/Cargo.toml index d7b2bf35dde..65e7f40ea73 100644 --- a/boa_wasm/Cargo.toml +++ b/boa_wasm/Cargo.toml @@ -9,24 +9,6 @@ repository = "https://github.com/boa-dev/boa" keywords = ["javascript", "compiler", "lexer", "parser", "js"] categories = ["parser-implementations", "wasm", "compilers"] license = "Unlicense/MIT" -exclude = [ - "../.vscode/*", - "../.editorconfig", - "../test262/*", - "../node_modules/*", - "../target/*", - "../dist/*", - "../.github/*", - "../assets/*", - "../docs/*", - "../*.js", - "../test_ignore.txt", - "../yarn.lock", - "../package.json", - "../index.html", - "../tests/*", - "../.github/*", -] [dependencies] boa_engine = { path = "../boa_engine", features = ["console"], version = "0.14.0" }