From 225c258811d68b2ee39b3a86bba353641c7a4363 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Sun, 21 Dec 2025 16:19:00 +0000 Subject: [PATCH] chore: use tombi --- .cargo/config.toml | 18 +- .github/{renovate.json => renovate.json5} | 4 +- .github/workflows/autofix.yml | 8 +- .github/workflows/main.yml | 7 +- CONTRIBUTING.md | 2 +- Cargo.toml | 490 +++++++++--------- clippy.toml | 1 - crates/biome_analyze/Cargo.toml | 16 +- crates/biome_aria/Cargo.toml | 12 +- crates/biome_aria_metadata/Cargo.toml | 13 +- crates/biome_cli/Cargo.toml | 46 +- crates/biome_configuration/Cargo.toml | 65 ++- crates/biome_console/Cargo.toml | 17 +- crates/biome_control_flow/Cargo.toml | 12 +- crates/biome_css_analyze/Cargo.toml | 27 +- crates/biome_css_factory/Cargo.toml | 12 +- crates/biome_css_formatter/Cargo.toml | 33 +- crates/biome_css_parser/Cargo.toml | 26 +- crates/biome_css_semantic/Cargo.toml | 12 +- crates/biome_css_syntax/Cargo.toml | 14 +- crates/biome_deserialize/Cargo.toml | 18 +- crates/biome_deserialize_macros/Cargo.toml | 12 +- crates/biome_diagnostics/Cargo.toml | 24 +- .../biome_diagnostics_categories/Cargo.toml | 12 +- crates/biome_diagnostics_macros/Cargo.toml | 12 +- crates/biome_flags/Cargo.toml | 13 +- crates/biome_formatter/Cargo.toml | 23 +- crates/biome_formatter_test/Cargo.toml | 12 +- crates/biome_fs/Cargo.toml | 15 +- crates/biome_glob/Cargo.toml | 18 +- crates/biome_graphql_analyze/Cargo.toml | 12 +- crates/biome_graphql_factory/Cargo.toml | 12 +- crates/biome_graphql_formatter/Cargo.toml | 33 +- crates/biome_graphql_parser/Cargo.toml | 27 +- crates/biome_graphql_semantic/Cargo.toml | 19 +- crates/biome_graphql_syntax/Cargo.toml | 14 +- crates/biome_grit_factory/Cargo.toml | 8 +- crates/biome_grit_formatter/Cargo.toml | 19 +- crates/biome_grit_parser/Cargo.toml | 22 +- crates/biome_grit_patterns/Cargo.toml | 16 +- crates/biome_grit_syntax/Cargo.toml | 15 +- crates/biome_html_analyze/Cargo.toml | 12 +- crates/biome_html_factory/Cargo.toml | 8 +- crates/biome_html_formatter/Cargo.toml | 26 +- crates/biome_html_parser/Cargo.toml | 29 +- crates/biome_html_syntax/Cargo.toml | 14 +- crates/biome_js_analyze/Cargo.toml | 39 +- crates/biome_js_factory/Cargo.toml | 8 +- crates/biome_js_formatter/Cargo.toml | 34 +- crates/biome_js_parser/Cargo.toml | 35 +- crates/biome_js_runtime/Cargo.toml | 12 +- crates/biome_js_semantic/Cargo.toml | 12 +- crates/biome_js_syntax/Cargo.toml | 14 +- crates/biome_js_transform/Cargo.toml | 14 +- crates/biome_js_type_info/Cargo.toml | 18 +- crates/biome_js_type_info_macros/Cargo.toml | 12 +- crates/biome_jsdoc_comment/Cargo.toml | 18 +- crates/biome_json_analyze/Cargo.toml | 35 +- crates/biome_json_factory/Cargo.toml | 12 +- crates/biome_json_formatter/Cargo.toml | 32 +- crates/biome_json_parser/Cargo.toml | 32 +- crates/biome_json_syntax/Cargo.toml | 12 +- crates/biome_json_value/Cargo.toml | 18 +- crates/biome_line_index/Cargo.toml | 12 +- crates/biome_lsp/Cargo.toml | 16 +- crates/biome_lsp_converters/Cargo.toml | 12 +- crates/biome_markdown_factory/Cargo.toml | 12 +- crates/biome_markdown_parser/Cargo.toml | 21 +- crates/biome_markdown_syntax/Cargo.toml | 12 +- crates/biome_markup/Cargo.toml | 13 +- crates/biome_migrate/Cargo.toml | 12 +- crates/biome_module_graph/Cargo.toml | 30 +- crates/biome_package/Cargo.toml | 43 +- crates/biome_parser/Cargo.toml | 12 +- crates/biome_plugin_loader/Cargo.toml | 33 +- crates/biome_project_layout/Cargo.toml | 19 +- crates/biome_resolver/Cargo.toml | 18 +- crates/biome_rowan/Cargo.toml | 22 +- crates/biome_rule_options/Cargo.toml | 19 +- crates/biome_ruledoc_utils/Cargo.toml | 12 +- crates/biome_service/Cargo.toml | 34 +- crates/biome_string_case/Cargo.toml | 12 +- crates/biome_suppression/Cargo.toml | 13 +- crates/biome_syntax_codegen/Cargo.toml | 18 +- crates/biome_tailwind_factory/Cargo.toml | 8 +- crates/biome_tailwind_parser/Cargo.toml | 29 +- crates/biome_tailwind_syntax/Cargo.toml | 19 +- crates/biome_test_utils/Cargo.toml | 13 +- crates/biome_text_edit/Cargo.toml | 16 +- crates/biome_text_size/Cargo.toml | 28 +- crates/biome_ungrammar/Cargo.toml | 12 +- crates/biome_unicode_table/Cargo.toml | 12 +- crates/biome_wasm/Cargo.toml | 37 +- crates/biome_yaml_factory/Cargo.toml | 12 +- crates/biome_yaml_parser/Cargo.toml | 19 +- crates/biome_yaml_syntax/Cargo.toml | 13 +- crates/tests_macros/Cargo.toml | 10 +- fuzz/Cargo.toml | 68 +-- justfile | 9 +- package.json | 4 +- pnpm-lock.yaml | 91 ++++ rustfmt.toml | 2 +- taplo.toml | 7 - tombi.toml | 6 + xtask/codegen/Cargo.toml | 71 ++- xtask/coverage/Cargo.toml | 4 +- xtask/glue/Cargo.toml | 4 +- xtask/rules_check/Cargo.toml | 7 +- 108 files changed, 1302 insertions(+), 1231 deletions(-) rename .github/{renovate.json => renovate.json5} (94%) delete mode 100644 taplo.toml create mode 100644 tombi.toml diff --git a/.cargo/config.toml b/.cargo/config.toml index 9e5dc878fcfa..67d7e48e3124 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -5,12 +5,12 @@ codegen = "run -p xtask_codegen --" codegen-bindings = "run -p xtask_codegen --features schema -- bindings" codegen-configuration = "run -p xtask_codegen --features configuration -- configuration" # updates a newly created crate -codegen-license = "run -p xtask_codegen --features license -- license" -codegen-migrate = "run -p xtask_codegen --features configuration -- migrate-eslint" -codegen-schema = "run -p xtask_codegen --features schema -- schema" -contributors = "run -p xtask_contributors --" -coverage = "run -p xtask_coverage --profile=release-with-debug --" -documentation = """ +codegen-license = "run -p xtask_codegen --features license -- license" +codegen-migrate = "run -p xtask_codegen --features configuration -- migrate-eslint" +codegen-schema = "run -p xtask_codegen --features schema -- schema" +contributors = "run -p xtask_contributors --" +coverage = "run -p xtask_coverage --profile=release-with-debug --" +documentation = """ doc \ -p biome_*formatter \ -p biome_control_flow \ @@ -32,9 +32,9 @@ documentation = """ -p biome_configuration \ --no-deps """ -format = "fmt --all --verbose" -lint = "clippy --workspace --all-features --all-targets -- --deny warnings" -new-crate = "run -p xtask_codegen -- new-crate" +format = "fmt --all --verbose" +lint = "clippy --workspace --all-features --all-targets -- --deny warnings" +new-crate = "run -p xtask_codegen -- new-crate" [profile.release] lto = true diff --git a/.github/renovate.json b/.github/renovate.json5 similarity index 94% rename from .github/renovate.json rename to .github/renovate.json5 index f1e69be1dbe3..6fc4898f33d9 100644 --- a/.github/renovate.json +++ b/.github/renovate.json5 @@ -43,7 +43,9 @@ "grit-pattern-matcher", "grit-util", "getrandom", - "rand" + "rand", + // Needs to be updated manually + "wasm-bindgen-cli" ] }, { diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 5c9e77b35a47..e3d07fdb19ad 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -29,7 +29,6 @@ jobs: uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2 with: components: rustfmt - bins: taplo-cli cache-base: main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -52,6 +51,11 @@ jobs: - name: Run format run: | cargo fmt --all - taplo format + + - uses: tombi-toml/setup-tombi@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Format TOML files + run: tombi format - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa6f684dae03..fa2981d3ac4c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,14 +29,17 @@ jobs: uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2 with: components: rustfmt - bins: taplo-cli cache-base: main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run rustfmt run: | cargo fmt --all --verbose -- --check - taplo format --check + - uses: tombi-toml/setup-tombi@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Format TOML files + run: tombi format --check lint: name: Lint Rust Files diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f38133ba17e0..a57db24f7f37 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -130,7 +130,7 @@ just install-tools This command will install: - `cargo-binstall`, to install binary extensions for `cargo`. - `cargo-insta`, a `cargo` extension to manage snapshot testing inside the repository. -- `taplo-cli`, a small tool for formatting TOML files. +- `tombi`, a small tool for formatting TOML files. - `wasm-bindgen-cli` and `wasm-opt` for managing the WASM build of Biome. You'll also need to have `pnpm` installed on your machine, and run `pnpm install` from the root of the repository. `pnpm` is needed to [create changesets](#create-a-changeset) diff --git a/Cargo.toml b/Cargo.toml index 5e7737de2803..ba09c78e6832 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,283 +1,277 @@ [workspace] +resolver = "2" # Use the newer version of the cargo resolver # https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions -members = ["crates/*", "xtask/glue", "xtask/codegen", "xtask/coverage", "xtask/rules_check"] -resolver = "2" +members = ["crates/*", "xtask/codegen", "xtask/coverage", "xtask/glue", "xtask/rules_check"] -[workspace.lints.rust] -# https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html -ambiguous-negative-literals = "warn" -dead_code = "warn" -explicit-outlives-requirements = "warn" -impl-trait-overcaptures = "warn" -impl-trait-redundant-captures = "warn" -missing-unsafe-on-extern = "warn" -redundant-lifetimes = "warn" -trivial_numeric_casts = "warn" -unit-bindings = "warn" -unsafe-attr-outside-unsafe = "warn" -unused_import_braces = "warn" -unused_lifetimes = "warn" -unused_macro_rules = "warn" +[workspace.package] +authors = ["Biome Developers and Contributors"] +edition = "2024" +homepage = "https://biomejs.dev/" +repository = "https://github.com/biomejs/biome" +license = "MIT OR Apache-2.0" +keywords = ["formatter", "linter", "parser"] +categories = ["development-tools", "web-programming"] -[workspace.lints.clippy] -allow_attributes = "deny" -cargo_common_metadata = "allow" -empty_docs = "allow" # there are some false positives inside biome_wasm -multiple_crate_versions = "allow" +[workspace.dependencies] +# Crates needed in the workspace +anyhow = "1.0.100" +# publish +biome_analyze = { path = "./crates/biome_analyze", version = "0.5.7" } +biome_aria = { path = "./crates/biome_aria", version = "0.5.7" } +biome_aria_metadata = { path = "./crates/biome_aria_metadata", version = "0.5.7" } +# not publish +biome_cli = { path = "./crates/biome_cli" } +biome_configuration = { path = "./crates/biome_configuration" } +biome_console = { path = "./crates/biome_console", version = "0.5.7" } +biome_control_flow = { path = "./crates/biome_control_flow", version = "0.5.7" } +biome_css_analyze = { path = "./crates/biome_css_analyze", version = "0.5.7" } +biome_css_factory = { path = "./crates/biome_css_factory", version = "0.5.7" } +biome_css_formatter = { path = "./crates/biome_css_formatter", version = "0.5.7" } +biome_css_parser = { path = "./crates/biome_css_parser", version = "0.5.7" } +biome_css_semantic = { path = "./crates/biome_css_semantic", version = "0.0.0" } +biome_css_syntax = { path = "./crates/biome_css_syntax", version = "0.5.7" } +biome_deserialize = { path = "./crates/biome_deserialize", version = "0.6.0" } +biome_deserialize_macros = { path = "./crates/biome_deserialize_macros", version = "0.6.0" } +biome_diagnostics = { path = "./crates/biome_diagnostics", version = "0.5.7" } +biome_diagnostics_categories = { path = "./crates/biome_diagnostics_categories", version = "0.5.7" } +biome_diagnostics_macros = { path = "./crates/biome_diagnostics_macros", version = "0.5.7" } +biome_flags = { path = "./crates/biome_flags" } +biome_formatter = { path = "./crates/biome_formatter", version = "0.5.7" } +biome_formatter_test = { path = "./crates/biome_formatter_test" } +biome_fs = { path = "./crates/biome_fs", version = "0.5.7" } +biome_glob = { path = "./crates/biome_glob", version = "0.1.0" } +biome_graphql_analyze = { path = "./crates/biome_graphql_analyze", version = "0.0.1" } +biome_graphql_factory = { path = "./crates/biome_graphql_factory", version = "0.1.0" } +biome_graphql_formatter = { path = "./crates/biome_graphql_formatter", version = "0.1.0" } +biome_graphql_parser = { path = "./crates/biome_graphql_parser", version = "0.1.0" } +biome_graphql_semantic = { path = "./crates/biome_graphql_semantic", version = "0.0.0" } +biome_graphql_syntax = { path = "./crates/biome_graphql_syntax", version = "0.1.0" } +biome_grit_factory = { path = "./crates/biome_grit_factory", version = "0.5.7" } +biome_grit_formatter = { path = "./crates/biome_grit_formatter", version = "0.0.0" } +biome_grit_parser = { path = "./crates/biome_grit_parser", version = "0.1.0" } +biome_grit_patterns = { path = "./crates/biome_grit_patterns", version = "0.0.1" } +biome_grit_syntax = { path = "./crates/biome_grit_syntax", version = "0.5.7" } +biome_html_analyze = { path = "./crates/biome_html_analyze", version = "0.5.7" } +biome_html_factory = { path = "./crates/biome_html_factory", version = "0.5.7" } +biome_html_formatter = { path = "./crates/biome_html_formatter", version = "0.0.0" } +biome_html_parser = { path = "./crates/biome_html_parser", version = "0.0.1" } +biome_html_syntax = { path = "./crates/biome_html_syntax", version = "0.5.7" } +biome_js_analyze = { path = "./crates/biome_js_analyze", version = "0.5.7" } +biome_js_factory = { path = "./crates/biome_js_factory", version = "0.5.7" } +biome_js_formatter = { path = "./crates/biome_js_formatter", version = "0.5.7" } +biome_js_parser = { path = "./crates/biome_js_parser", version = "0.5.7" } +biome_js_runtime = { path = "./crates/biome_js_runtime", version = "0.0.1" } +biome_js_semantic = { path = "./crates/biome_js_semantic", version = "0.5.7" } +biome_js_syntax = { path = "./crates/biome_js_syntax", version = "0.5.7" } +biome_js_type_info = { path = "./crates/biome_js_type_info", version = "0.0.1" } +biome_js_type_info_macros = { path = "./crates/biome_js_type_info_macros", version = "0.0.1" } +biome_jsdoc_comment = { path = "./crates/biome_jsdoc_comment", version = "0.0.1" } +biome_json_analyze = { path = "./crates/biome_json_analyze", version = "0.5.7" } +biome_json_factory = { path = "./crates/biome_json_factory", version = "0.5.7" } +biome_json_formatter = { path = "./crates/biome_json_formatter", version = "0.5.7" } +biome_json_parser = { path = "./crates/biome_json_parser", version = "0.5.7" } +biome_json_syntax = { path = "./crates/biome_json_syntax", version = "0.5.7" } +biome_json_value = { path = "./crates/biome_json_value", version = "0.1.0" } +biome_line_index = { path = "./crates/biome_line_index", version = "0.1.0" } +biome_lsp = { path = "./crates/biome_lsp" } +biome_lsp_converters = { path = "./crates/biome_lsp_converters", version = "0.1.0" } +biome_markdown_factory = { path = "./crates/biome_markdown_factory", version = "0.0.1" } +biome_markdown_parser = { path = "./crates/biome_markdown_parser", version = "0.0.1" } +biome_markdown_syntax = { path = "./crates/biome_markdown_syntax", version = "0.0.1" } +biome_markup = { path = "./crates/biome_markup", version = "0.5.7" } +biome_migrate = { path = "./crates/biome_migrate" } +biome_module_graph = { path = "./crates/biome_module_graph", version = "0.0.1" } +biome_package = { path = "./crates/biome_package", version = "0.5.7" } +biome_parser = { path = "./crates/biome_parser", version = "0.5.7" } +biome_plugin_loader = { path = "./crates/biome_plugin_loader", version = "0.0.1" } +biome_project_layout = { path = "./crates/biome_project_layout", version = "0.0.1" } +biome_resolver = { path = "./crates/biome_resolver", version = "0.1.0" } +biome_rowan = { path = "./crates/biome_rowan", version = "0.5.7" } +biome_rule_options = { path = "./crates/biome_rule_options", version = "0.0.1" } +biome_ruledoc_utils = { path = "./crates/biome_ruledoc_utils" } +biome_service = { path = "./crates/biome_service" } +biome_string_case = { path = "./crates/biome_string_case", version = "0.5.7", features = ["biome_rowan"] } +biome_suppression = { path = "./crates/biome_suppression", version = "0.5.7" } +biome_tailwind_factory = { path = "./crates/biome_tailwind_factory", version = "0.0.1" } +biome_tailwind_parser = { path = "./crates/biome_tailwind_parser", version = "0.0.1" } +biome_tailwind_syntax = { path = "./crates/biome_tailwind_syntax", version = "0.0.1" } +biome_test_utils = { path = "./crates/biome_test_utils" } +biome_text_edit = { path = "./crates/biome_text_edit", version = "0.5.7" } +biome_text_size = { path = "./crates/biome_text_size", version = "0.5.7" } +biome_ungrammar = { path = "./crates/biome_ungrammar", version = "0.3.1" } +biome_unicode_table = { path = "./crates/biome_unicode_table", version = "0.5.7" } +biome_yaml_factory = { path = "./crates/biome_yaml_factory", version = "0.0.1" } +biome_yaml_parser = { path = "./crates/biome_yaml_parser", version = "0.0.1" } +biome_yaml_syntax = { path = "./crates/biome_yaml_syntax", version = "0.0.1" } +boa_engine = "0.21.0" +boxcar = "0.2.14" +bpaf = { version = "0.9.20", features = ["derive"] } +camino = "1.2.2" +cfg-if = "1.0.4" +countme = "3.0.1" +crossbeam = "0.8.4" +dashmap = "6.1.0" +dirs = "6.0.0" +either = "1.15.0" +enumflags2 = "0.7.12" +getrandom = "0.2.15" +globset = "0.4.18" +grit-pattern-matcher = "0.5.1" +grit-util = "0.5.1" +hashbrown = { version = "0.15.5", default-features = false } +ignore = "0.4.25" +indexmap = { version = "2.12.1" } +insta = "1.43.2" +jiff = "0.2.16" +libc = "0.2.178" +mimalloc = "0.1.48" +papaya = "0.2.3" +path-absolutize = { version = "3.1.1", features = ["use_unix_paths_on_wasm"], optional = false } +proc-macro-error2 = { version = "2.0.1", default-features = false } +proc-macro2 = "1.0.103" +quickcheck = "1.0.3" +quickcheck_macros = "1.1.0" +quote = "1.0.42" +rayon = "1.11.0" +regex = "1.12.2" +rust-lapper = "1.2.0" +rustc-hash = "2.1.1" +schemars = { version = "1.1.0", features = ["indexmap2", "smallvec1"] } +serde = { version = "1.0.228", features = ["derive"] } +serde_json = "1.0.145" +similar = "2.7.0" +smallvec = { version = "1.15.1", features = ["const_new", "serde", "union"] } +static_assertions = "1.1" +syn = "1.0.109" +termcolor = "1.4.1" +terminal_size = "0.4.3" +tests_macros = { path = "./crates/tests_macros" } +tikv-jemallocator = "0.6.1" +tokio = "1.48.0" +tower = "0.5.2" +tower-lsp-server = "0.23.0" +tracing = { version = "0.1.41", default-features = false, features = ["attributes", "std"] } +tracing-subscriber = "0.3.20" +unicode-bom = "2.0.3" +unicode-width = "0.1.12" +ureq = "3.1.4" +url = "2.5.7" +walkdir = "2.5.0" +web-time = "1.1.0" +windows = "0.62.2" +xtask_codegen = { path = "xtask/codegen" } +xtask_coverage = { path = "xtask/coverage" } +xtask_glue = { path = "xtask/glue" } +[workspace.lints.clippy] +allow_attributes = "deny" # pedantic -assigning_clones = "warn" -checked_conversions = "warn" -cloned_instead_of_copied = "warn" -copy_iterator = "warn" -dbg_macro = "warn" -doc_link_with_quotes = "warn" -empty_enum = "warn" -expl_impl_clone_on_copy = "warn" -explicit_into_iter_loop = "warn" -filter_map_next = "warn" -flat_map_option = "warn" -fn_params_excessive_bools = "warn" -from_iter_instead_of_collect = "warn" -implicit_clone = "warn" -implicit_hasher = "warn" -index_refutable_slice = "warn" -inefficient_to_string = "warn" -invalid_upcast_comparisons = "warn" -iter_filter_is_ok = "warn" -iter_not_returning_iterator = "warn" -large_stack_arrays = "warn" -large_types_passed_by_value = "warn" -macro_use_imports = "warn" -manual_is_variant_and = "warn" -manual_ok_or = "warn" -manual_string_new = "warn" -map_flatten = "warn" -map_unwrap_or = "warn" -mismatching_type_param_order = "warn" -mut_mut = "warn" -naive_bytecount = "warn" -needless_bitwise_bool = "warn" -needless_continue = "warn" -needless_for_each = "warn" -no_effect_underscore_binding = "warn" -option_as_ref_cloned = "warn" -ref_binding_to_reference = "warn" -ref_option_ref = "warn" -single_char_pattern = "warn" -stable_sort_primitive = "warn" -str_split_at_newline = "warn" -unnecessary_box_returns = "warn" -unnecessary_join = "warn" -unnested_or_patterns = "warn" -unreadable_literal = "warn" -verbose_bit_mask = "warn" -zero_sized_map_values = "warn" - +assigning_clones = "warn" +cargo_common_metadata = "allow" # restriction cfg_not_test = "warn" +checked_conversions = "warn" +cloned_instead_of_copied = "warn" +copy_iterator = "warn" +dbg_macro = "warn" +doc_link_with_quotes = "warn" +empty_docs = "allow" # there are some false positives inside biome_wasm empty_drop = "warn" +empty_enum = "warn" empty_enum_variants_with_brackets = "warn" +expl_impl_clone_on_copy = "warn" +explicit_into_iter_loop = "warn" +filter_map_next = "warn" +flat_map_option = "warn" float_cmp_const = "warn" +fn_params_excessive_bools = "warn" +from_iter_instead_of_collect = "warn" get_unwrap = "warn" +implicit_clone = "warn" +implicit_hasher = "warn" +index_refutable_slice = "warn" +inefficient_to_string = "warn" infinite_loop = "warn" +invalid_upcast_comparisons = "warn" +iter_filter_is_ok = "warn" +iter_not_returning_iterator = "warn" +large_stack_arrays = "warn" +large_types_passed_by_value = "warn" lossy_float_literal = "warn" +macro_use_imports = "warn" +manual_is_variant_and = "warn" +manual_ok_or = "warn" +manual_string_new = "warn" +map_flatten = "warn" +map_unwrap_or = "warn" +mismatching_type_param_order = "warn" +multiple_crate_versions = "allow" +mut_mut = "warn" +naive_bytecount = "warn" +needless_bitwise_bool = "warn" +needless_continue = "warn" +needless_for_each = "warn" +no_effect_underscore_binding = "warn" +option_as_ref_cloned = "warn" rc_buffer = "warn" rc_mutex = "warn" +ref_binding_to_reference = "warn" +ref_option_ref = "warn" rest_pat_in_fully_bound_structs = "warn" +single_char_pattern = "warn" +stable_sort_primitive = "warn" +str_split_at_newline = "warn" string_lit_chars_any = "warn" +unnecessary_box_returns = "warn" +unnecessary_join = "warn" +unnested_or_patterns = "warn" +unreadable_literal = "warn" +verbose_bit_mask = "warn" verbose_file_reads = "warn" +zero_sized_map_values = "warn" # https://github.com/rustwasm/wasm-bindgen/issues/3944 -#mem_forget = "warn" - -[workspace.package] -authors = ["Biome Developers and Contributors"] -categories = ["development-tools", "web-programming"] -edition = "2024" -homepage = "https://biomejs.dev/" -keywords = ["parser", "linter", "formatter"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/biomejs/biome" - -[profile.release-with-debug] -debug = true -inherits = "release" - -[workspace.dependencies] -# publish -biome_analyze = { version = "0.5.7", path = "./crates/biome_analyze" } -biome_aria = { version = "0.5.7", path = "./crates/biome_aria" } -biome_aria_metadata = { version = "0.5.7", path = "./crates/biome_aria_metadata" } -biome_console = { version = "0.5.7", path = "./crates/biome_console" } -biome_control_flow = { version = "0.5.7", path = "./crates/biome_control_flow" } -biome_css_analyze = { version = "0.5.7", path = "./crates/biome_css_analyze" } -biome_css_factory = { version = "0.5.7", path = "./crates/biome_css_factory" } -biome_css_formatter = { version = "0.5.7", path = "./crates/biome_css_formatter" } -biome_css_parser = { version = "0.5.7", path = "./crates/biome_css_parser" } -biome_css_semantic = { version = "0.0.0", path = "./crates/biome_css_semantic" } -biome_css_syntax = { version = "0.5.7", path = "./crates/biome_css_syntax" } -biome_deserialize = { version = "0.6.0", path = "./crates/biome_deserialize" } -biome_deserialize_macros = { version = "0.6.0", path = "./crates/biome_deserialize_macros" } -biome_diagnostics = { version = "0.5.7", path = "./crates/biome_diagnostics" } -biome_diagnostics_categories = { version = "0.5.7", path = "./crates/biome_diagnostics_categories" } -biome_diagnostics_macros = { version = "0.5.7", path = "./crates/biome_diagnostics_macros" } -biome_formatter = { version = "0.5.7", path = "./crates/biome_formatter" } -biome_fs = { version = "0.5.7", path = "./crates/biome_fs" } -biome_glob = { version = "0.1.0", path = "./crates/biome_glob" } -biome_graphql_analyze = { version = "0.0.1", path = "./crates/biome_graphql_analyze" } -biome_graphql_factory = { version = "0.1.0", path = "./crates/biome_graphql_factory" } -biome_graphql_formatter = { version = "0.1.0", path = "./crates/biome_graphql_formatter" } -biome_graphql_parser = { version = "0.1.0", path = "./crates/biome_graphql_parser" } -biome_graphql_semantic = { version = "0.0.0", path = "./crates/biome_graphql_semantic" } -biome_graphql_syntax = { version = "0.1.0", path = "./crates/biome_graphql_syntax" } -biome_grit_factory = { version = "0.5.7", path = "./crates/biome_grit_factory" } -biome_grit_formatter = { version = "0.0.0", path = "./crates/biome_grit_formatter" } -biome_grit_parser = { version = "0.1.0", path = "./crates/biome_grit_parser" } -biome_grit_patterns = { version = "0.0.1", path = "./crates/biome_grit_patterns" } -biome_grit_syntax = { version = "0.5.7", path = "./crates/biome_grit_syntax" } -biome_html_analyze = { version = "0.5.7", path = "./crates/biome_html_analyze" } -biome_html_factory = { version = "0.5.7", path = "./crates/biome_html_factory" } -biome_html_formatter = { version = "0.0.0", path = "./crates/biome_html_formatter" } -biome_html_parser = { version = "0.0.1", path = "./crates/biome_html_parser" } -biome_html_syntax = { version = "0.5.7", path = "./crates/biome_html_syntax" } -biome_js_analyze = { version = "0.5.7", path = "./crates/biome_js_analyze" } -biome_js_factory = { version = "0.5.7", path = "./crates/biome_js_factory" } -biome_js_formatter = { version = "0.5.7", path = "./crates/biome_js_formatter" } -biome_js_parser = { version = "0.5.7", path = "./crates/biome_js_parser" } -biome_js_runtime = { version = "0.0.1", path = "./crates/biome_js_runtime" } -biome_js_semantic = { version = "0.5.7", path = "./crates/biome_js_semantic" } -biome_js_syntax = { version = "0.5.7", path = "./crates/biome_js_syntax" } -biome_js_type_info = { version = "0.0.1", path = "./crates/biome_js_type_info" } -biome_js_type_info_macros = { version = "0.0.1", path = "./crates/biome_js_type_info_macros" } -biome_jsdoc_comment = { version = "0.0.1", path = "./crates/biome_jsdoc_comment" } -biome_json_analyze = { version = "0.5.7", path = "./crates/biome_json_analyze" } -biome_json_factory = { version = "0.5.7", path = "./crates/biome_json_factory" } -biome_json_formatter = { version = "0.5.7", path = "./crates/biome_json_formatter" } -biome_json_parser = { version = "0.5.7", path = "./crates/biome_json_parser" } -biome_json_syntax = { version = "0.5.7", path = "./crates/biome_json_syntax" } -biome_json_value = { version = "0.1.0", path = "./crates/biome_json_value" } -biome_line_index = { version = "0.1.0", path = "./crates/biome_line_index" } -biome_lsp_converters = { version = "0.1.0", path = "./crates/biome_lsp_converters" } -biome_markdown_factory = { version = "0.0.1", path = "./crates/biome_markdown_factory" } -biome_markdown_parser = { version = "0.0.1", path = "./crates/biome_markdown_parser" } -biome_markdown_syntax = { version = "0.0.1", path = "./crates/biome_markdown_syntax" } -biome_module_graph = { version = "0.0.1", path = "./crates/biome_module_graph" } -biome_plugin_loader = { version = "0.0.1", path = "./crates/biome_plugin_loader" } -biome_project_layout = { version = "0.0.1", path = "./crates/biome_project_layout" } -biome_resolver = { version = "0.1.0", path = "./crates/biome_resolver" } -biome_rule_options = { version = "0.0.1", path = "./crates/biome_rule_options" } -biome_tailwind_factory = { version = "0.0.1", path = "./crates/biome_tailwind_factory" } -biome_tailwind_parser = { version = "0.0.1", path = "./crates/biome_tailwind_parser" } -biome_tailwind_syntax = { version = "0.0.1", path = "./crates/biome_tailwind_syntax" } -biome_ungrammar = { version = "0.3.1", path = "./crates/biome_ungrammar" } -biome_yaml_factory = { version = "0.0.1", path = "./crates/biome_yaml_factory" } -biome_yaml_parser = { version = "0.0.1", path = "./crates/biome_yaml_parser" } -biome_yaml_syntax = { version = "0.0.1", path = "./crates/biome_yaml_syntax" } +# mem_forget = "warn" -biome_markup = { version = "0.5.7", path = "./crates/biome_markup" } -biome_package = { version = "0.5.7", path = "./crates/biome_package" } -biome_parser = { version = "0.5.7", path = "./crates/biome_parser" } -biome_rowan = { version = "0.5.7", path = "./crates/biome_rowan" } -biome_string_case = { version = "0.5.7", path = "./crates/biome_string_case", features = ["biome_rowan"] } -biome_suppression = { version = "0.5.7", path = "./crates/biome_suppression" } -biome_text_edit = { version = "0.5.7", path = "./crates/biome_text_edit" } -biome_text_size = { version = "0.5.7", path = "./crates/biome_text_size" } -biome_unicode_table = { version = "0.5.7", path = "./crates/biome_unicode_table" } +[workspace.lints.rust] +# https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html +ambiguous-negative-literals = "warn" +dead_code = "warn" +explicit-outlives-requirements = "warn" +impl-trait-overcaptures = "warn" +impl-trait-redundant-captures = "warn" +missing-unsafe-on-extern = "warn" +redundant-lifetimes = "warn" +trivial_numeric_casts = "warn" +unit-bindings = "warn" +unsafe-attr-outside-unsafe = "warn" +unused_import_braces = "warn" +unused_lifetimes = "warn" +unused_macro_rules = "warn" -# not publish -biome_cli = { path = "./crates/biome_cli" } -biome_configuration = { path = "./crates/biome_configuration" } -biome_flags = { path = "./crates/biome_flags" } -biome_formatter_test = { path = "./crates/biome_formatter_test" } -biome_lsp = { path = "./crates/biome_lsp" } -biome_migrate = { path = "./crates/biome_migrate" } -biome_ruledoc_utils = { path = "./crates/biome_ruledoc_utils" } -biome_service = { path = "./crates/biome_service" } -biome_test_utils = { path = "./crates/biome_test_utils" } -tests_macros = { path = "./crates/tests_macros" } -xtask_codegen = { path = "xtask/codegen" } -xtask_coverage = { path = "xtask/coverage" } -xtask_glue = { path = "xtask/glue" } +# Dev optimisations +[profile.dev] +debug = "line-tables-only" -# Crates needed in the workspace -anyhow = "1.0.100" -boa_engine = "0.21.0" -boxcar = "0.2.14" -bpaf = { version = "0.9.20", features = ["derive"] } -camino = "1.2.2" -cfg-if = "1.0.4" -countme = "3.0.1" -crossbeam = "0.8.4" -dashmap = "6.1.0" -dirs = "6.0.0" -either = "1.15.0" -enumflags2 = "0.7.12" -getrandom = "0.2.15" -globset = "0.4.18" -grit-pattern-matcher = "0.5.1" -grit-util = "0.5.1" -hashbrown = { version = "0.15.5", default-features = false } -ignore = "0.4.25" -indexmap = { version = "2.12.1" } -insta = "1.43.2" -jiff = "0.2.16" -libc = "0.2.178" -mimalloc = "0.1.48" -papaya = "0.2.3" -path-absolutize = { version = "3.1.1", optional = false, features = ["use_unix_paths_on_wasm"] } -proc-macro-error2 = { version = "2.0.1", default-features = false } -proc-macro2 = "1.0.103" -quickcheck = "1.0.3" -quickcheck_macros = "1.1.0" -quote = "1.0.42" -rayon = "1.11.0" -regex = "1.12.2" -rust-lapper = "1.2.0" -rustc-hash = "2.1.1" -schemars = { version = "1.1.0", features = ["indexmap2", "smallvec1"] } -serde = { version = "1.0.228", features = ["derive"] } -serde_json = "1.0.145" -similar = "2.7.0" -smallvec = { version = "1.15.1", features = ["union", "const_new", "serde"] } -static_assertions = "1.1" -syn = "1.0.109" -termcolor = "1.4.1" -terminal_size = "0.4.3" -tikv-jemallocator = "0.6.1" -tokio = "1.48.0" -tower = "0.5.2" -tower-lsp-server = "0.23.0" -tracing = { version = "0.1.41", default-features = false, features = ["std", "attributes"] } -tracing-subscriber = "0.3.20" -unicode-bom = "2.0.3" -unicode-width = "0.1.12" -ureq = "3.1.4" -url = "2.5.7" -walkdir = "2.5.0" -web-time = "1.1.0" -windows = "0.62.2" +[profile.dev.package."*"] +debug = false [profile.dev.package.biome_wasm] -debug = true opt-level = "s" - -[profile.test.package.biome_wasm] debug = true -opt-level = "s" [profile.release.package.biome_wasm] -debug = false opt-level = 3 +debug = false - -# Dev optimisations -[profile.dev] -debug = "line-tables-only" - -[profile.dev.package."*"] -debug = false +[profile.test.package.biome_wasm] +opt-level = "s" +debug = true [profile.debugging] -debug = true inherits = "dev" +debug = true + +[profile.release-with-debug] +inherits = "release" +debug = true diff --git a/clippy.toml b/clippy.toml index 03754b0ac5c7..ae61a89ea328 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1,5 +1,4 @@ allow-dbg-in-tests = true - disallowed-methods = [ { path = "str::to_ascii_lowercase", reason = "Avoid memory allocation. Use `biome_string_case::StrOnlyExtension::to_ascii_lowercase_cow` instead." }, { path = "std::ffi::OsStr::to_ascii_lowercase", reason = "Avoid memory allocation. Use `biome_string_case::StrLikeExtension::to_ascii_lowercase_cow` instead." }, diff --git a/crates/biome_analyze/Cargo.toml b/crates/biome_analyze/Cargo.toml index 3f133aa3f30d..543d79722167 100644 --- a/crates/biome_analyze/Cargo.toml +++ b/crates/biome_analyze/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_analyze" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's analyzer shared infrastructure" edition.workspace = true +description = "Biome's analyzer shared infrastructure" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_analyze" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -29,8 +29,8 @@ schemars = { workspace = true, optional = true } serde = { workspace = true, features = ["derive"], optional = true } [features] -schema = ["dep:schemars", "biome_console/schema", "serde"] -serde = ["dep:serde", "dep:biome_deserialize", "dep:biome_deserialize_macros"] +schema = ["biome_console/schema", "dep:schemars", "serde"] +serde = ["dep:biome_deserialize", "dep:biome_deserialize_macros", "dep:serde"] [lints] workspace = true diff --git a/crates/biome_aria/Cargo.toml b/crates/biome_aria/Cargo.toml index 2c3001d771ec..81304003d0f5 100644 --- a/crates/biome_aria/Cargo.toml +++ b/crates/biome_aria/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_aria" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Utilities to create ARIA query for biome_js_analyze" edition.workspace = true +description = "Utilities to create ARIA query for biome_js_analyze" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_aria" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_aria_metadata/Cargo.toml b/crates/biome_aria_metadata/Cargo.toml index 9ad4bab97a75..71a30eda2d6f 100644 --- a/crates/biome_aria_metadata/Cargo.toml +++ b/crates/biome_aria_metadata/Cargo.toml @@ -1,21 +1,20 @@ [package] +name = "biome_aria_metadata" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Metadata about ARIA properties and ARIA roles" edition.workspace = true +description = "Metadata about ARIA properties and ARIA roles" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_aria_metadata" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] - [build-dependencies] biome_deserialize = { workspace = true } biome_deserialize_macros = { workspace = true } diff --git a/crates/biome_cli/Cargo.toml b/crates/biome_cli/Cargo.toml index 49b4e8d800fe..52c6514e84c2 100644 --- a/crates/biome_cli/Cargo.toml +++ b/crates/biome_cli/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_cli" +version = "0.0.0" authors.workspace = true -categories.workspace = true -description = "Biome's command line interface" edition.workspace = true +description = "Biome's command line interface" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_cli" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -26,7 +26,7 @@ biome_css_analyze = { workspace = true } biome_css_syntax = { workspace = true } biome_deserialize = { workspace = true } biome_deserialize_macros = { workspace = true } -biome_diagnostics = { workspace = true, features = ["std", "bpaf"] } +biome_diagnostics = { workspace = true, features = ["bpaf", "std"] } biome_flags = { workspace = true } biome_formatter = { workspace = true } biome_fs = { workspace = true } @@ -63,23 +63,21 @@ serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } smallvec = { workspace = true } terminal_size = { workspace = true } -tokio = { workspace = true, features = ["io-std", "io-util", "net", "time", "rt", "sync", "rt-multi-thread", "macros"] } +tokio = { workspace = true, features = [ + "io-std", + "io-util", + "macros", + "net", + "rt", + "rt-multi-thread", + "sync", + "time" +] } tracing = { workspace = true } tracing-appender = "0.2.3" tracing-subscriber = { workspace = true, features = ["env-filter", "json"] } tracing-tree = "0.4.1" - -[target.'cfg(unix)'.dependencies] -libc = "0.2.177" -tokio = { workspace = true, features = ["process"] } - -[target.'cfg(windows)'.dependencies] -mimalloc = { workspace = true } - -[target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dependencies] -tikv-jemallocator = { workspace = true } - [dev-dependencies] biome_css_formatter = { workspace = true } biome_js_formatter = { workspace = true } @@ -89,6 +87,16 @@ insta = { workspace = true } regex = { workspace = true } tokio = { workspace = true, features = ["io-util"] } +[target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dependencies] +tikv-jemallocator = { workspace = true } + +[target.'cfg(unix)'.dependencies] +libc = "0.2.177" +tokio = { workspace = true, features = ["process"] } + +[target.'cfg(windows)'.dependencies] +mimalloc = { workspace = true } + [features] docgen = ["bpaf/docgen"] js_plugin = ["biome_service/js_plugin"] diff --git a/crates/biome_configuration/Cargo.toml b/crates/biome_configuration/Cargo.toml index 3daf40a0db01..fe1cd1f2c990 100644 --- a/crates/biome_configuration/Cargo.toml +++ b/crates/biome_configuration/Cargo.toml @@ -1,22 +1,29 @@ [package] +name = "biome_configuration" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Biome Configuration" edition.workspace = true +description = "Biome Configuration" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_configuration" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -[dependencies] -biome_analyze = { workspace = true, features = ["serde"] } -biome_console = { workspace = true } +[package.metadata.cargo-udeps.ignore] +# currently technically not used, but needed in order to compile because of the `schema` feature +normal = ["biome_html_syntax"] +[[bench]] +harness = false +name = "biome_json" + +[dependencies] +biome_analyze = { workspace = true, features = ["serde"] } +biome_console = { workspace = true } biome_deserialize = { workspace = true } biome_deserialize_macros = { workspace = true } biome_diagnostics = { workspace = true } @@ -40,38 +47,30 @@ rustc-hash = { workspace = true } schemars = { workspace = true, optional = true } serde = { workspace = true, features = ["derive"] } -[features] -schema = [ - "dep:schemars", - "biome_formatter/schema", - "biome_json_syntax/schema", - "biome_html_formatter/schema", - "biome_html_syntax/schema", - "biome_analyze/schema", - "biome_json_formatter/schema", - "biome_js_formatter/schema", - "biome_rule_options/schema", - "biome_plugin_loader/schema", -] - [dev-dependencies] criterion = { package = "codspeed-criterion-compat", version = "=3.0.5" } insta = { workspace = true } tests_macros = { workspace = true } +[target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] +tikv-jemallocator = { workspace = true } + [target.'cfg(target_os = "windows")'.dev-dependencies] mimalloc = { workspace = true } -[target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] -tikv-jemallocator = { workspace = true } +[features] +schema = [ + "biome_analyze/schema", + "biome_formatter/schema", + "biome_html_formatter/schema", + "biome_html_syntax/schema", + "biome_js_formatter/schema", + "biome_json_formatter/schema", + "biome_json_syntax/schema", + "biome_plugin_loader/schema", + "biome_rule_options/schema", + "dep:schemars", +] [lints] workspace = true - -[package.metadata.cargo-udeps.ignore] -# currently technically not used, but needed in order to compile because of the `schema` feature -normal = ["biome_html_syntax"] - -[[bench]] -harness = false -name = "biome_json" diff --git a/crates/biome_console/Cargo.toml b/crates/biome_console/Cargo.toml index 6278200ab720..166e0ab7fc78 100644 --- a/crates/biome_console/Cargo.toml +++ b/crates/biome_console/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_console" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Utilities to print messages (formatted with biome_markup) and diagnostics" edition.workspace = true +description = "Utilities to print messages (formatted with biome_markup) and diagnostics" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_console" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -17,7 +17,7 @@ version = "0.5.7" biome_markup = { workspace = true } biome_text_size = { workspace = true } schemars = { workspace = true, optional = true } -serde = { workspace = true, optional = true, features = ["derive"] } +serde = { workspace = true, features = ["derive"], optional = true } termcolor = { workspace = true } unicode-segmentation = "1.12.0" unicode-width = { workspace = true } @@ -25,9 +25,8 @@ unicode-width = { workspace = true } [dev-dependencies] trybuild = "=1.0.114" - [features] -schema = ["dep:schemars", "serde", "biome_text_size/schema"] +schema = ["biome_text_size/schema", "dep:schemars", "serde"] serde = ["dep:serde"] [lints] diff --git a/crates/biome_control_flow/Cargo.toml b/crates/biome_control_flow/Cargo.toml index ed7718d5aed5..ad82538cf8cd 100644 --- a/crates/biome_control_flow/Cargo.toml +++ b/crates/biome_control_flow/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_control_flow" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Utilities to build control flow graph for biome_js_analyze" edition.workspace = true +description = "Utilities to build control flow graph for biome_js_analyze" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_control_flow" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_css_analyze/Cargo.toml b/crates/biome_css_analyze/Cargo.toml index 652205280218..7a84b24fff58 100644 --- a/crates/biome_css_analyze/Cargo.toml +++ b/crates/biome_css_analyze/Cargo.toml @@ -1,18 +1,22 @@ [package] +name = "biome_css_analyze" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's CSS linter" edition.workspace = true +description = "Biome's CSS linter" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_css_analyze" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[[bench]] +harness = false +name = "css_analyzer" + [dependencies] biome_analyze = { workspace = true } biome_console = { workspace = true } @@ -42,19 +46,14 @@ criterion = { package = "codspeed-criterion-compat", version = "=3.0.5 insta = { workspace = true, features = ["glob"] } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } + [features] schema = ["schemars"] [lints] workspace = true - - -[[bench]] -harness = false -name = "css_analyzer" diff --git a/crates/biome_css_factory/Cargo.toml b/crates/biome_css_factory/Cargo.toml index a915d6f367da..fe777edf621f 100644 --- a/crates/biome_css_factory/Cargo.toml +++ b/crates/biome_css_factory/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_css_factory" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Utilities to create CSS AST for biome_css_parser" edition.workspace = true +description = "Utilities to create CSS AST for biome_css_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_css_factory" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_css_formatter/Cargo.toml b/crates/biome_css_formatter/Cargo.toml index 965b470e5212..6fea9008fca9 100644 --- a/crates/biome_css_formatter/Cargo.toml +++ b/crates/biome_css_formatter/Cargo.toml @@ -1,18 +1,26 @@ [package] +name = "biome_css_formatter" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's CSS formatter" edition.workspace = true +description = "Biome's CSS formatter" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_css_formatter" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +# cargo-workspaces metadata +[package.metadata.workspaces] +independent = true + +[[bench]] +harness = false +name = "css_formatter" + [dependencies] biome_css_syntax = { workspace = true } biome_diagnostics = { workspace = true } @@ -37,20 +45,11 @@ serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } - -# cargo-workspaces metadata -[package.metadata.workspaces] -independent = true +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } [lints] workspace = true - -[[bench]] -harness = false -name = "css_formatter" diff --git a/crates/biome_css_parser/Cargo.toml b/crates/biome_css_parser/Cargo.toml index 017a2f885a69..600f7a2569cf 100644 --- a/crates/biome_css_parser/Cargo.toml +++ b/crates/biome_css_parser/Cargo.toml @@ -1,15 +1,19 @@ [package] +name = "biome_css_parser" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's CSS parser" edition.workspace = true +description = "Biome's CSS parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_css_parser" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" + +[[bench]] +harness = false +name = "css_parser" [dependencies] biome_console = { workspace = true } @@ -34,15 +38,11 @@ quickcheck = { workspace = true } quickcheck_macros = { workspace = true } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } + [lints] workspace = true - -[[bench]] -harness = false -name = "css_parser" diff --git a/crates/biome_css_semantic/Cargo.toml b/crates/biome_css_semantic/Cargo.toml index eed73eff8e83..f2eeac57672b 100644 --- a/crates/biome_css_semantic/Cargo.toml +++ b/crates/biome_css_semantic/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_css_semantic" +version = "0.0.0" authors.workspace = true -categories.workspace = true -description = "Biome's semantic model for CSS" edition.workspace = true +description = "Biome's semantic model for CSS" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_css_semantic" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.0" [dependencies] biome_css_syntax = { workspace = true } diff --git a/crates/biome_css_syntax/Cargo.toml b/crates/biome_css_syntax/Cargo.toml index b6d72dcafc35..289eef56461f 100644 --- a/crates/biome_css_syntax/Cargo.toml +++ b/crates/biome_css_syntax/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_css_syntax" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "SyntaxKind and common rowan definitions for biome_css_parser" edition.workspace = true +description = "SyntaxKind and common rowan definitions for biome_css_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_css_syntax" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -25,7 +25,7 @@ biome_css_factory = { path = "../biome_css_factory" } biome_css_parser = { path = "../biome_css_parser" } [features] -schema = ["schemars", "biome_rowan/serde"] +schema = ["biome_rowan/serde", "schemars"] [lints] workspace = true diff --git a/crates/biome_deserialize/Cargo.toml b/crates/biome_deserialize/Cargo.toml index 024c52b63c53..5923b80cbaeb 100644 --- a/crates/biome_deserialize/Cargo.toml +++ b/crates/biome_deserialize/Cargo.toml @@ -1,15 +1,18 @@ [package] +name = "biome_deserialize" +version = "0.6.0" authors.workspace = true -categories.workspace = true -description = "Utilities to deserialize values" edition.workspace = true +description = "Utilities to deserialize values" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_deserialize" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.6.0" + +[package.metadata.cargo-udeps.ignore] +development = ["biome_deserialize_macros"] [dependencies] biome_console = { workspace = true } @@ -33,8 +36,5 @@ indexmap = ["dep:indexmap"] serde = ["dep:serde", "dep:serde_json"] smallvec = ["dep:smallvec"] -[package.metadata.cargo-udeps.ignore] -development = ["biome_deserialize_macros"] - [lints] workspace = true diff --git a/crates/biome_deserialize_macros/Cargo.toml b/crates/biome_deserialize_macros/Cargo.toml index b84f66251eb9..dab663b4573a 100644 --- a/crates/biome_deserialize_macros/Cargo.toml +++ b/crates/biome_deserialize_macros/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_deserialize_macros" +version = "0.6.0" authors.workspace = true -categories.workspace = true -description = "Macros to help implement deserializable types in Biome" edition.workspace = true +description = "Macros to help implement deserializable types in Biome" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_deserialize_macros" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.6.0" [lib] proc-macro = true diff --git a/crates/biome_diagnostics/Cargo.toml b/crates/biome_diagnostics/Cargo.toml index 022941e94836..e925ee0c4f2e 100644 --- a/crates/biome_diagnostics/Cargo.toml +++ b/crates/biome_diagnostics/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_diagnostics" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's shared infrastructure to implement reporting pretty error and diagnostics" edition.workspace = true +description = "Biome's shared infrastructure to implement reporting pretty error and diagnostics" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_diagnostics" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" [[example]] name = "cli" @@ -45,16 +45,16 @@ termcolor = { workspace = true } terminal_size = { workspace = true } unicode-width = { workspace = true } -[features] -bpaf = ["dep:bpaf"] -camino = ["dep:camino"] -schema = ["dep:schemars", "biome_text_edit/schema", "biome_diagnostics_categories/schema", "biome_console/schema"] -std = [] - [dev-dependencies] insta = { workspace = true } serde_json = { workspace = true } trybuild = "=1.0.114" +[features] +bpaf = ["dep:bpaf"] +camino = ["dep:camino"] +schema = ["biome_console/schema", "biome_diagnostics_categories/schema", "biome_text_edit/schema", "dep:schemars"] +std = [] + [lints] workspace = true diff --git a/crates/biome_diagnostics_categories/Cargo.toml b/crates/biome_diagnostics_categories/Cargo.toml index e2a8d3c474d7..e9b5d8fa6923 100644 --- a/crates/biome_diagnostics_categories/Cargo.toml +++ b/crates/biome_diagnostics_categories/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_diagnostics_categories" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Diagnostic categories for biome_diagnostics" edition.workspace = true +description = "Diagnostic categories for biome_diagnostics" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_diagnostics_categories" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" [dependencies] schemars = { workspace = true, optional = true } diff --git a/crates/biome_diagnostics_macros/Cargo.toml b/crates/biome_diagnostics_macros/Cargo.toml index 9203a83eb3b1..b59238aa5492 100644 --- a/crates/biome_diagnostics_macros/Cargo.toml +++ b/crates/biome_diagnostics_macros/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_diagnostics_macros" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Macros to implement Biome's diagnostics" edition.workspace = true +description = "Macros to implement Biome's diagnostics" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_diagnostics_macros" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" [lib] proc-macro = true diff --git a/crates/biome_flags/Cargo.toml b/crates/biome_flags/Cargo.toml index 2bdf6f937060..798cef4658c1 100644 --- a/crates/biome_flags/Cargo.toml +++ b/crates/biome_flags/Cargo.toml @@ -1,16 +1,15 @@ [package] +name = "biome_flags" +version = "0.0.0" authors.workspace = true -categories.workspace = true -description = "Utilities to implement simple feature flags" edition.workspace = true +description = "Utilities to implement simple feature flags" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_flags" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.0" - # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_formatter/Cargo.toml b/crates/biome_formatter/Cargo.toml index 0a91d941f9f6..32299214e1c6 100644 --- a/crates/biome_formatter/Cargo.toml +++ b/crates/biome_formatter/Cargo.toml @@ -1,19 +1,22 @@ [package] +name = "biome_formatter" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's formatter shared infrastructure" edition.workspace = true +description = "Biome's formatter shared infrastructure" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_formatter" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" - # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +# cargo-workspaces metadata +[package.metadata.workspaces] +independent = true + [dependencies] biome_console = { workspace = true } biome_deserialize = { workspace = true } @@ -39,11 +42,7 @@ insta = { workspace = true } [features] countme = ["dep:countme"] schema = ["dep:schemars", "serde"] -serde = ["dep:serde", "biome_deserialize/serde", "biome_rowan/serde"] - -# cargo-workspaces metadata -[package.metadata.workspaces] -independent = true +serde = ["biome_deserialize/serde", "biome_rowan/serde", "dep:serde"] [lints] workspace = true diff --git a/crates/biome_formatter_test/Cargo.toml b/crates/biome_formatter_test/Cargo.toml index e8ec1c35c026..b1cf06c8a27c 100644 --- a/crates/biome_formatter_test/Cargo.toml +++ b/crates/biome_formatter_test/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_formatter_test" +version = "0.0.0" authors.workspace = true -categories.workspace = true -description = "Biome's formatter test shared infrastructure" edition.workspace = true +description = "Biome's formatter test shared infrastructure" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_formatter_test" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_fs/Cargo.toml b/crates/biome_fs/Cargo.toml index a5344369eaab..73b03b84973f 100644 --- a/crates/biome_fs/Cargo.toml +++ b/crates/biome_fs/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_fs" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "A small wrapper around std::path::PathBuf contains additional information and convenient methods" edition.workspace = true +description = "A small wrapper around std::path::PathBuf contains additional information and convenient methods" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_fs" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -32,9 +32,8 @@ tracing = { workspace = true } [dev-dependencies] serde_json = { workspace = true } - [features] -schema = ["dep:schemars", "serde", "biome_diagnostics/schema"] +schema = ["biome_diagnostics/schema", "dep:schemars", "serde"] serde = ["camino/serde1"] [lints] diff --git a/crates/biome_glob/Cargo.toml b/crates/biome_glob/Cargo.toml index bcfdd3371f12..fcad36ce075e 100644 --- a/crates/biome_glob/Cargo.toml +++ b/crates/biome_glob/Cargo.toml @@ -1,18 +1,15 @@ [package] +name = "biome_glob" +version = "0.1.0" authors.workspace = true -categories.workspace = true -description = "" edition.workspace = true +description = "" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_glob" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.1.0" - -[lints] -workspace = true [dependencies] biome_deserialize = { workspace = true, optional = true } @@ -26,3 +23,6 @@ serde = { workspace = true, optional = true } biome_deserialize = ["dep:biome_deserialize", "dep:biome_deserialize_macros", "dep:biome_text_size"] schema = ["dep:schemars", "serde"] serde = ["dep:serde"] + +[lints] +workspace = true diff --git a/crates/biome_graphql_analyze/Cargo.toml b/crates/biome_graphql_analyze/Cargo.toml index 8b1038f128f1..839077ee988f 100644 --- a/crates/biome_graphql_analyze/Cargo.toml +++ b/crates/biome_graphql_analyze/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_graphql_analyze" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Biome's GraphQL linter" edition.workspace = true +description = "Biome's GraphQL linter" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_graphql_analyze" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" [dependencies] biome_analyze = { workspace = true } diff --git a/crates/biome_graphql_factory/Cargo.toml b/crates/biome_graphql_factory/Cargo.toml index 357dd1689fb2..3b890a08c7dc 100644 --- a/crates/biome_graphql_factory/Cargo.toml +++ b/crates/biome_graphql_factory/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_graphql_factory" +version = "0.1.0" authors.workspace = true -categories.workspace = true -description = "Utilities to create GraphQL AST for biome_graphql_parser" edition.workspace = true +description = "Utilities to create GraphQL AST for biome_graphql_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_graphql_factory" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_graphql_formatter/Cargo.toml b/crates/biome_graphql_formatter/Cargo.toml index 996fda07a766..64c7f0de6f0c 100644 --- a/crates/biome_graphql_formatter/Cargo.toml +++ b/crates/biome_graphql_formatter/Cargo.toml @@ -1,18 +1,26 @@ [package] +name = "biome_graphql_formatter" +version = "0.1.0" authors.workspace = true -categories.workspace = true -description = "Biome's GraphQL formatter" edition.workspace = true +description = "Biome's GraphQL formatter" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_graphql_formatter" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +# cargo-workspaces metadata +[package.metadata.workspaces] +independent = true + +[[bench]] +harness = false +name = "graphql_formatter" + [dependencies] biome_diagnostics = { workspace = true } biome_formatter = { workspace = true } @@ -35,20 +43,11 @@ serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } -# cargo-workspaces metadata -[package.metadata.workspaces] -independent = true +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } [lints] workspace = true - - -[[bench]] -harness = false -name = "graphql_formatter" diff --git a/crates/biome_graphql_parser/Cargo.toml b/crates/biome_graphql_parser/Cargo.toml index 4b314afe8464..10b52c466d35 100644 --- a/crates/biome_graphql_parser/Cargo.toml +++ b/crates/biome_graphql_parser/Cargo.toml @@ -1,18 +1,22 @@ [package] +name = "biome_graphql_parser" +version = "0.1.0" authors.workspace = true -categories.workspace = true -description = "Biome's GraphQL parser" edition.workspace = true +description = "Biome's GraphQL parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_graphql_parser" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[[bench]] +harness = false +name = "graphql_parser" + [dependencies] biome_console = { workspace = true } biome_diagnostics = { workspace = true } @@ -32,16 +36,11 @@ quickcheck = { workspace = true } quickcheck_macros = { workspace = true } tests_macros = { workspace = true } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } + [lints] workspace = true - - -[[bench]] -harness = false -name = "graphql_parser" diff --git a/crates/biome_graphql_semantic/Cargo.toml b/crates/biome_graphql_semantic/Cargo.toml index 1d3a16ad07e0..dc719b79f3d3 100644 --- a/crates/biome_graphql_semantic/Cargo.toml +++ b/crates/biome_graphql_semantic/Cargo.toml @@ -1,19 +1,15 @@ - [package] +name = "biome_graphql_semantic" +version = "0.0.0" authors.workspace = true -categories.workspace = true -description = "Biome's semantic model for GraphQL" edition.workspace = true +description = "Biome's semantic model for GraphQL" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_graphql_semantic" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.0" - -[lints] -workspace = true [dependencies] biome_graphql_syntax = { workspace = true } @@ -22,3 +18,6 @@ rustc-hash = { workspace = true } [dev-dependencies] biome_graphql_parser = { path = "../biome_graphql_parser" } + +[lints] +workspace = true diff --git a/crates/biome_graphql_syntax/Cargo.toml b/crates/biome_graphql_syntax/Cargo.toml index 6e711c519f42..401eda30e025 100644 --- a/crates/biome_graphql_syntax/Cargo.toml +++ b/crates/biome_graphql_syntax/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_graphql_syntax" +version = "0.1.0" authors.workspace = true -categories.workspace = true -description = "SyntaxKind and common rowan definitions for biome_graphql_parser" edition.workspace = true +description = "SyntaxKind and common rowan definitions for biome_graphql_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_graphql_syntax" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -21,7 +21,7 @@ schemars = { workspace = true, optional = true } serde = { workspace = true, features = ["derive"] } [features] -schema = ["schemars", "biome_rowan/serde"] +schema = ["biome_rowan/serde", "schemars"] [lints] workspace = true diff --git a/crates/biome_grit_factory/Cargo.toml b/crates/biome_grit_factory/Cargo.toml index 8b40b12adc17..2dda97fd6aa0 100644 --- a/crates/biome_grit_factory/Cargo.toml +++ b/crates/biome_grit_factory/Cargo.toml @@ -1,13 +1,13 @@ [package] +name = "biome_grit_factory" +version = "0.5.7" authors.workspace = true +edition.workspace = true description = "Utilities to create GritQL AST for biome_grit_parser" documentation = "https://docs.rs/biome_grit_factory" -edition.workspace = true +repository.workspace = true license.workspace = true -name = "biome_grit_factory" publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_grit_formatter/Cargo.toml b/crates/biome_grit_formatter/Cargo.toml index d9a83f27137c..cd7a652666b4 100644 --- a/crates/biome_grit_formatter/Cargo.toml +++ b/crates/biome_grit_formatter/Cargo.toml @@ -1,18 +1,22 @@ [package] +name = "biome_grit_formatter" +version = "0.0.0" authors.workspace = true -categories.workspace = true -description = "Biome's GritQL formatter" edition.workspace = true +description = "Biome's GritQL formatter" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_grit_formatter" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +# cargo-workspaces metadata +[package.metadata.workspaces] +independent = true + [dependencies] biome_formatter = { workspace = true } biome_grit_syntax = { workspace = true } @@ -30,9 +34,6 @@ camino = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } tests_macros = { path = "../tests_macros" } -# cargo-workspaces metadata -[package.metadata.workspaces] -independent = true [lints] workspace = true diff --git a/crates/biome_grit_parser/Cargo.toml b/crates/biome_grit_parser/Cargo.toml index 731efe9e5927..4cc6d7e9767b 100644 --- a/crates/biome_grit_parser/Cargo.toml +++ b/crates/biome_grit_parser/Cargo.toml @@ -1,15 +1,19 @@ [package] +name = "biome_grit_parser" +version = "0.1.0" authors.workspace = true -categories.workspace = true -description = "Biome's GritQL parser" edition.workspace = true +description = "Biome's GritQL parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_grit_parser" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.1.0" + +# cargo-workspaces metadata +[package.metadata.workspaces] +independent = true [dependencies] biome_console = { workspace = true } @@ -33,11 +37,7 @@ quickcheck_macros = { workspace = true } tests_macros = { workspace = true } [features] -schemars = ["dep:schemars", "biome_grit_syntax/schema"] - -# cargo-workspaces metadata -[package.metadata.workspaces] -independent = true +schemars = ["biome_grit_syntax/schema", "dep:schemars"] [lints] workspace = true diff --git a/crates/biome_grit_patterns/Cargo.toml b/crates/biome_grit_patterns/Cargo.toml index 63deabd93449..b99186b64e43 100644 --- a/crates/biome_grit_patterns/Cargo.toml +++ b/crates/biome_grit_patterns/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_grit_patterns" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Biome implementation for Grit Patterns" edition.workspace = true +description = "Biome implementation for Grit Patterns" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_grit_patterns" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.1" [dependencies] biome_analyze = { workspace = true } @@ -27,7 +27,7 @@ biome_string_case = { workspace = true } camino = { workspace = true } grit-pattern-matcher = { workspace = true } grit-util = { workspace = true } -path-absolutize = { version = "3.1.1", optional = false, features = ["use_unix_paths_on_wasm"] } +path-absolutize = { version = "3.1.1", features = ["use_unix_paths_on_wasm"], optional = false } rand = { version = "=0.8.5" } regex = { workspace = true } rustc-hash = { workspace = true } @@ -41,7 +41,7 @@ insta = { workspace = true } tests_macros = { path = "../tests_macros" } [features] -schema = ["dep:schemars", "serde", "biome_js_parser/schema"] +schema = ["biome_js_parser/schema", "dep:schemars", "serde"] serde = ["dep:serde", "dep:serde_json"] [lints] diff --git a/crates/biome_grit_syntax/Cargo.toml b/crates/biome_grit_syntax/Cargo.toml index 445b9d185930..c11bcf712d84 100644 --- a/crates/biome_grit_syntax/Cargo.toml +++ b/crates/biome_grit_syntax/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_grit_syntax" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "SyntaxKind and common rowan definitions for biome_grit_parser" edition.workspace = true +description = "SyntaxKind and common rowan definitions for biome_grit_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_grit_syntax" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" [dependencies] biome_rowan = { workspace = true, features = ["serde"] } @@ -19,8 +19,7 @@ schemars = { workspace = true, optional = true } serde = { workspace = true, features = ["derive"] } [features] -schema = ["schemars", "biome_rowan/serde"] - +schema = ["biome_rowan/serde", "schemars"] [lints] workspace = true diff --git a/crates/biome_html_analyze/Cargo.toml b/crates/biome_html_analyze/Cargo.toml index 689964cdb6e4..cc979035aa4b 100644 --- a/crates/biome_html_analyze/Cargo.toml +++ b/crates/biome_html_analyze/Cargo.toml @@ -1,14 +1,14 @@ [package] +name = "biome_html_analyze" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's HTML linter" edition.workspace = true +description = "Biome's HTML linter" homepage.workspace = true -keywords.workspace = true -license.workspace = true -name = "biome_html_analyze" repository.workspace = true -version = "0.5.7" +license.workspace = true +keywords.workspace = true +categories.workspace = true [dependencies] biome_analyze = { workspace = true } diff --git a/crates/biome_html_factory/Cargo.toml b/crates/biome_html_factory/Cargo.toml index 796d647c13bc..9040876aa435 100644 --- a/crates/biome_html_factory/Cargo.toml +++ b/crates/biome_html_factory/Cargo.toml @@ -1,13 +1,13 @@ [package] +name = "biome_html_factory" +version = "0.5.7" authors.workspace = true +edition.workspace = true description = "Utilities to create HTML AST for biome_html_parser" documentation = "https://docs.rs/biome_html_factory" -edition.workspace = true +repository.workspace = true license.workspace = true -name = "biome_html_factory" publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_html_formatter/Cargo.toml b/crates/biome_html_formatter/Cargo.toml index e162391de997..d7b65879c80d 100644 --- a/crates/biome_html_formatter/Cargo.toml +++ b/crates/biome_html_formatter/Cargo.toml @@ -1,14 +1,18 @@ [package] +name = "biome_html_formatter" +version = "0.0.0" authors.workspace = true -categories.workspace = true edition.workspace = true homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_html_formatter" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.0" + +[[bench]] +harness = false +name = "html_formatter" [dependencies] biome_deserialize = { workspace = true } @@ -36,19 +40,15 @@ countme = { workspace = true, features = ["enable"] } criterion = { package = "codspeed-criterion-compat", version = "=3.0.5" } tests_macros = { workspace = true } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } + [features] schema = ["dep:schemars", "serde"] -serde = ["dep:serde", "biome_rowan/serde"] +serde = ["biome_rowan/serde", "dep:serde"] [lints] workspace = true - -[[bench]] -harness = false -name = "html_formatter" diff --git a/crates/biome_html_parser/Cargo.toml b/crates/biome_html_parser/Cargo.toml index 3753de14dda1..abda97fcc595 100644 --- a/crates/biome_html_parser/Cargo.toml +++ b/crates/biome_html_parser/Cargo.toml @@ -1,18 +1,19 @@ [package] +name = "biome_html_parser" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Biome's HTML/Astro/Svelte parser" edition.workspace = true +description = "Biome's HTML/Astro/Svelte parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_html_parser" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" -[lints] -workspace = true +[[bench]] +harness = false +name = "html_parser" [dependencies] biome_console = { workspace = true } @@ -24,7 +25,6 @@ biome_rowan = { workspace = true } biome_unicode_table = { workspace = true } tracing = { workspace = true } - [dev-dependencies] biome_test_utils = { workspace = true } camino = { workspace = true } @@ -34,12 +34,11 @@ quickcheck = { workspace = true } quickcheck_macros = { workspace = true } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } -[[bench]] -harness = false -name = "html_parser" +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } + +[lints] +workspace = true diff --git a/crates/biome_html_syntax/Cargo.toml b/crates/biome_html_syntax/Cargo.toml index 0de0afc55978..908085cfc493 100644 --- a/crates/biome_html_syntax/Cargo.toml +++ b/crates/biome_html_syntax/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_html_syntax" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "SyntaxKind and common rowan definitions for biome_html_parser" edition.workspace = true +description = "SyntaxKind and common rowan definitions for biome_html_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_html_syntax" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -25,7 +25,7 @@ biome_html_factory = { path = "../biome_html_factory" } biome_html_parser = { path = "../biome_html_parser" } [features] -schema = ["schemars", "biome_rowan/serde"] +schema = ["biome_rowan/serde", "schemars"] [lints] workspace = true diff --git a/crates/biome_js_analyze/Cargo.toml b/crates/biome_js_analyze/Cargo.toml index ac040ebc0ac8..e50e2a69bce5 100644 --- a/crates/biome_js_analyze/Cargo.toml +++ b/crates/biome_js_analyze/Cargo.toml @@ -1,15 +1,23 @@ [package] +name = "biome_js_analyze" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's JavaScript linter" edition.workspace = true +description = "Biome's JavaScript linter" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_js_analyze" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" + +[[bench]] +harness = false +name = "js_analyzer" + +[[bench]] +harness = false +name = "use_sorted_classes_parser" [dependencies] biome_analyze = { workspace = true } @@ -47,7 +55,6 @@ schemars = { workspace = true, optional = true } serde = { workspace = true, features = ["derive"] } smallvec = { workspace = true } - [dev-dependencies] biome_fs = { workspace = true } biome_js_parser = { path = "../biome_js_parser", features = ["tests"] } @@ -55,25 +62,17 @@ biome_plugin_loader = { workspace = true } biome_service = { workspace = true } biome_test_utils = { path = "../biome_test_utils" } criterion = { package = "codspeed-criterion-compat", version = "=3.0.5" } +insta = { workspace = true, features = ["glob"] } +tests_macros = { path = "../tests_macros" } -insta = { workspace = true, features = ["glob"] } -tests_macros = { path = "../tests_macros" } +[target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] +tikv-jemallocator = { workspace = true } [target.'cfg(target_os = "windows")'.dev-dependencies] mimalloc = { workspace = true } -[target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] -tikv-jemallocator = { workspace = true } [features] -schema = ["schemars", "biome_glob/schema"] +schema = ["biome_glob/schema", "schemars"] [lints] workspace = true - -[[bench]] -harness = false -name = "js_analyzer" - -[[bench]] -harness = false -name = "use_sorted_classes_parser" diff --git a/crates/biome_js_factory/Cargo.toml b/crates/biome_js_factory/Cargo.toml index 5425a7598f9b..030666769220 100644 --- a/crates/biome_js_factory/Cargo.toml +++ b/crates/biome_js_factory/Cargo.toml @@ -1,13 +1,13 @@ [package] +name = "biome_js_factory" +version = "0.5.7" authors.workspace = true +edition.workspace = true description = "Utilities to create JavaScript AST for biome_js_parser" documentation = "https://docs.rs/biome_js_factory" -edition.workspace = true +repository.workspace = true license.workspace = true -name = "biome_js_factory" publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_js_formatter/Cargo.toml b/crates/biome_js_formatter/Cargo.toml index 391e8d0382c4..deabad760fbf 100644 --- a/crates/biome_js_formatter/Cargo.toml +++ b/crates/biome_js_formatter/Cargo.toml @@ -1,18 +1,26 @@ [package] +name = "biome_js_formatter" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's JavaScript formatter" edition.workspace = true +description = "Biome's JavaScript formatter" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_js_formatter" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +# cargo-workspaces metadata +[package.metadata.workspaces] +independent = true + +[[bench]] +harness = false +name = "js_formatter" + [dependencies] biome_deserialize = { workspace = true } biome_deserialize_macros = { workspace = true } @@ -47,23 +55,15 @@ serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } + [features] schema = ["dep:schemars", "serde"] serde = ["dep:serde"] -# cargo-workspaces metadata -[package.metadata.workspaces] -independent = true - -[[bench]] -harness = false -name = "js_formatter" - [lints] workspace = true diff --git a/crates/biome_js_parser/Cargo.toml b/crates/biome_js_parser/Cargo.toml index 82e42f6cdad4..b0514cb661af 100644 --- a/crates/biome_js_parser/Cargo.toml +++ b/crates/biome_js_parser/Cargo.toml @@ -1,15 +1,23 @@ [package] +name = "biome_js_parser" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's JavaScript parser" edition.workspace = true +description = "Biome's JavaScript parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_js_parser" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" + +# cargo-workspaces metadata +[package.metadata.workspaces] +independent = true + +[[bench]] +harness = false +name = "js_parser" [dependencies] biome_console = { workspace = true } @@ -42,25 +50,16 @@ quickcheck = { workspace = true } quickcheck_macros = { workspace = true } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } [features] schema = ["dep:schemars", "serde"] -serde = ["dep:serde", "biome_js_syntax/schema"] +serde = ["biome_js_syntax/schema", "dep:serde"] tests = [] -# cargo-workspaces metadata -[package.metadata.workspaces] -independent = true - [lints] workspace = true - -[[bench]] -harness = false -name = "js_parser" diff --git a/crates/biome_js_runtime/Cargo.toml b/crates/biome_js_runtime/Cargo.toml index 090e0568283e..b93227aad19b 100644 --- a/crates/biome_js_runtime/Cargo.toml +++ b/crates/biome_js_runtime/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_js_runtime" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "ECMAScript runtime for JS plugins" edition.workspace = true +description = "ECMAScript runtime for JS plugins" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_js_runtime" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" [dependencies] biome_analyze = { workspace = true } diff --git a/crates/biome_js_semantic/Cargo.toml b/crates/biome_js_semantic/Cargo.toml index 17f1bab2dd55..78e2322dbd25 100644 --- a/crates/biome_js_semantic/Cargo.toml +++ b/crates/biome_js_semantic/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_js_semantic" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's semantic model for JavaScript" edition.workspace = true +description = "Biome's semantic model for JavaScript" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_js_semantic" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" [dependencies] biome_formatter = { workspace = true } diff --git a/crates/biome_js_syntax/Cargo.toml b/crates/biome_js_syntax/Cargo.toml index 4cb657633c42..6d5f5b6e6380 100644 --- a/crates/biome_js_syntax/Cargo.toml +++ b/crates/biome_js_syntax/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_js_syntax" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "SyntaxKind and common rowan definitions for biome_js_parser" edition.workspace = true +description = "SyntaxKind and common rowan definitions for biome_js_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_js_syntax" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" [dependencies] biome_aria = { workspace = true } @@ -26,7 +26,7 @@ biome_js_factory = { path = "../biome_js_factory" } biome_js_parser = { path = "../biome_js_parser" } [features] -schema = ["schemars", "biome_rowan/serde"] +schema = ["biome_rowan/serde", "schemars"] [lints] workspace = true diff --git a/crates/biome_js_transform/Cargo.toml b/crates/biome_js_transform/Cargo.toml index f1d43cc2d3d0..2be12d2bad56 100644 --- a/crates/biome_js_transform/Cargo.toml +++ b/crates/biome_js_transform/Cargo.toml @@ -1,16 +1,15 @@ [package] +name = "biome_js_transform" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's JavaScript transpiler" edition.workspace = true +description = "Biome's JavaScript transpiler" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_js_transform" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true - -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -21,7 +20,6 @@ biome_js_factory = { workspace = true } biome_js_syntax = { workspace = true } biome_rowan = { workspace = true } - [dev-dependencies] biome_analyze = { path = "../biome_analyze" } biome_js_formatter = { path = "../biome_js_formatter" } diff --git a/crates/biome_js_type_info/Cargo.toml b/crates/biome_js_type_info/Cargo.toml index 57cdbff7ece3..ad093c1c4f42 100644 --- a/crates/biome_js_type_info/Cargo.toml +++ b/crates/biome_js_type_info/Cargo.toml @@ -1,18 +1,15 @@ [package] +name = "biome_js_type_info" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Data structures for tracking type information" edition.workspace = true +description = "Data structures for tracking type information" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_js_type_info" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" - -[lints] -workspace = true [dependencies] biome_formatter = { workspace = true } @@ -30,3 +27,6 @@ biome_js_formatter = { workspace = true } biome_js_parser = { workspace = true } biome_test_utils = { workspace = true } insta = { workspace = true } + +[lints] +workspace = true diff --git a/crates/biome_js_type_info_macros/Cargo.toml b/crates/biome_js_type_info_macros/Cargo.toml index 11c696dd41bc..e80e087e7f55 100644 --- a/crates/biome_js_type_info_macros/Cargo.toml +++ b/crates/biome_js_type_info_macros/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_js_type_info_macros" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Macros to help implement type resolution" edition.workspace = true +description = "Macros to help implement type resolution" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_js_type_info_macros" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" [lib] proc-macro = true diff --git a/crates/biome_jsdoc_comment/Cargo.toml b/crates/biome_jsdoc_comment/Cargo.toml index c02c54204a0c..d2caf9c47fc3 100644 --- a/crates/biome_jsdoc_comment/Cargo.toml +++ b/crates/biome_jsdoc_comment/Cargo.toml @@ -1,21 +1,21 @@ [package] +name = "biome_jsdoc_comment" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "JSDoc comment handling helpers" edition.workspace = true +description = "JSDoc comment handling helpers" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_jsdoc_comment" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" - -[lints] -workspace = true [dependencies] biome_formatter = { workspace = true } biome_js_syntax = { workspace = true } biome_js_type_info = { workspace = true } biome_rowan = { workspace = true } + +[lints] +workspace = true diff --git a/crates/biome_json_analyze/Cargo.toml b/crates/biome_json_analyze/Cargo.toml index 012307bf8bc0..76b58248d3bc 100644 --- a/crates/biome_json_analyze/Cargo.toml +++ b/crates/biome_json_analyze/Cargo.toml @@ -1,20 +1,24 @@ [package] +name = "biome_json_analyze" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's JSON linter" edition.workspace = true +description = "Biome's JSON linter" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_json_analyze" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[[bench]] +harness = false +name = "json_analyzer" + [dependencies] -biome_analyze = { workspace = true } +biome_analyze = { workspace = true } # biome_configuration is optional because the codegen disables it. The codegen generates the configuration schema, and it depends on this crate to to that. It's kinda like a circular dependency. A chicken and egg problem, if you will. biome_configuration = { workspace = true, optional = true } biome_console = { workspace = true } @@ -28,10 +32,6 @@ biome_suppression = { workspace = true } camino = { workspace = true } rustc-hash = { workspace = true } -[features] -configuration = ["dep:biome_configuration"] -default = ["configuration"] - [dev-dependencies] biome_json_parser = { path = "../biome_json_parser" } biome_test_utils = { path = "../biome_test_utils" } @@ -39,16 +39,15 @@ criterion = { package = "codspeed-criterion-compat", version = "=3.0.5" insta = { workspace = true, features = ["glob"] } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } + +[features] +default = ["configuration"] +configuration = ["dep:biome_configuration"] [lints] workspace = true - -[[bench]] -harness = false -name = "json_analyzer" diff --git a/crates/biome_json_factory/Cargo.toml b/crates/biome_json_factory/Cargo.toml index 1a7961f5b59d..1219b0bd51a1 100644 --- a/crates/biome_json_factory/Cargo.toml +++ b/crates/biome_json_factory/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_json_factory" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Utilities to create JSON AST for biome_json_parser" edition.workspace = true +description = "Utilities to create JSON AST for biome_json_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_json_factory" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_json_formatter/Cargo.toml b/crates/biome_json_formatter/Cargo.toml index bde1eba6273f..329d27b44dd5 100644 --- a/crates/biome_json_formatter/Cargo.toml +++ b/crates/biome_json_formatter/Cargo.toml @@ -1,18 +1,26 @@ [package] +name = "biome_json_formatter" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's JSON formatter" edition.workspace = true +description = "Biome's JSON formatter" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_json_formatter" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +# cargo-workspaces metadata +[package.metadata.workspaces] +independent = true + +[[bench]] +harness = false +name = "json_formatter" + [dependencies] biome_deserialize = { workspace = true } biome_deserialize_macros = { workspace = true } @@ -38,15 +46,11 @@ criterion = { package = "codspeed-criterion-compat", version = "=3.0. serde_json = { workspace = true } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } -# cargo-workspaces metadata -[package.metadata.workspaces] -independent = true +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } [features] schema = ["dep:schemars", "serde"] @@ -54,7 +58,3 @@ serde = ["dep:serde"] [lints] workspace = true - -[[bench]] -harness = false -name = "json_formatter" diff --git a/crates/biome_json_parser/Cargo.toml b/crates/biome_json_parser/Cargo.toml index ec3eca430d06..82483bf5bfbe 100644 --- a/crates/biome_json_parser/Cargo.toml +++ b/crates/biome_json_parser/Cargo.toml @@ -1,15 +1,23 @@ [package] +name = "biome_json_parser" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's JSON parser" edition.workspace = true +description = "Biome's JSON parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_json_parser" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" + +# cargo-workspaces metadata +[package.metadata.workspaces] +independent = true + +[[bench]] +harness = false +name = "json_parser" [dependencies] biome_console = { workspace = true } @@ -30,19 +38,11 @@ quickcheck = { workspace = true } quickcheck_macros = { workspace = true } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } -# cargo-workspaces metadata -[package.metadata.workspaces] -independent = true +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } [lints] workspace = true - -[[bench]] -harness = false -name = "json_parser" diff --git a/crates/biome_json_syntax/Cargo.toml b/crates/biome_json_syntax/Cargo.toml index 15f51a374741..932099d8a952 100644 --- a/crates/biome_json_syntax/Cargo.toml +++ b/crates/biome_json_syntax/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_json_syntax" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "SyntaxKind and common rowan definitions for biome_json_parser" edition.workspace = true +description = "SyntaxKind and common rowan definitions for biome_json_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_json_syntax" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_json_value/Cargo.toml b/crates/biome_json_value/Cargo.toml index f9198e2f74a5..21795923a088 100644 --- a/crates/biome_json_value/Cargo.toml +++ b/crates/biome_json_value/Cargo.toml @@ -1,18 +1,15 @@ [package] +name = "biome_json_value" +version = "0.1.0" authors.workspace = true -categories.workspace = true -description = "Mutable JSON values constructable from biome_json_syntax" edition.workspace = true +description = "Mutable JSON values constructable from biome_json_syntax" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_json_value" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.1.0" - -[lints] -workspace = true [dependencies] biome_deserialize = { workspace = true, features = ["indexmap"] } @@ -25,3 +22,6 @@ static_assertions = { workspace = true } [dev-dependencies] biome_json_parser = { workspace = true } + +[lints] +workspace = true diff --git a/crates/biome_line_index/Cargo.toml b/crates/biome_line_index/Cargo.toml index 1dd6f4520f32..866dda6d5ddc 100644 --- a/crates/biome_line_index/Cargo.toml +++ b/crates/biome_line_index/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_line_index" +version = "0.1.0" authors.workspace = true -categories.workspace = true -description = "Biome's tools for converting between byte offsets and line / column positions" edition.workspace = true +description = "Biome's tools for converting between byte offsets and line / column positions" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_line_index" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_lsp/Cargo.toml b/crates/biome_lsp/Cargo.toml index 6415f9bbac9c..99fa9dea75ba 100644 --- a/crates/biome_lsp/Cargo.toml +++ b/crates/biome_lsp/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_lsp" +version = "0.0.0" authors.workspace = true -categories.workspace = true -description = "Biome's language server protocol" edition.workspace = true +description = "Biome's language server protocol" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_lsp" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -34,12 +34,12 @@ papaya = { workspace = true } rustc-hash = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -tokio = { workspace = true, features = ["rt", "io-std"] } +tokio = { workspace = true, features = ["io-std", "rt"] } tower-lsp-server = { workspace = true } tracing = { workspace = true, features = ["attributes"] } [dev-dependencies] -tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] } +tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread"] } tower = { workspace = true, features = ["timeout"] } [lints] diff --git a/crates/biome_lsp_converters/Cargo.toml b/crates/biome_lsp_converters/Cargo.toml index f62e4286ca69..6fa373634311 100644 --- a/crates/biome_lsp_converters/Cargo.toml +++ b/crates/biome_lsp_converters/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_lsp_converters" +version = "0.1.0" authors.workspace = true -categories.workspace = true -description = "Biome's tools to convert between LSP and Biome's data structures" edition.workspace = true +description = "Biome's tools to convert between LSP and Biome's data structures" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_lsp_converters" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_markdown_factory/Cargo.toml b/crates/biome_markdown_factory/Cargo.toml index a3d6a816f193..70d1938b78f0 100644 --- a/crates/biome_markdown_factory/Cargo.toml +++ b/crates/biome_markdown_factory/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_markdown_factory" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Utilities to create Markdown AST for biome_markdown_parser" edition.workspace = true +description = "Utilities to create Markdown AST for biome_markdown_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_markdown_factory" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_markdown_parser/Cargo.toml b/crates/biome_markdown_parser/Cargo.toml index c83964bbc866..c0554874ed43 100644 --- a/crates/biome_markdown_parser/Cargo.toml +++ b/crates/biome_markdown_parser/Cargo.toml @@ -1,15 +1,19 @@ [package] +name = "biome_markdown_parser" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Biome's Markdown parser" edition.workspace = true +description = "Biome's Markdown parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_markdown_parser" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.1" + +# cargo-workspaces metadata +[package.metadata.workspaces] +independent = true [dependencies] biome_console = { workspace = true } @@ -29,10 +33,5 @@ quickcheck = { workspace = true } quickcheck_macros = { workspace = true } tests_macros = { path = "../tests_macros" } - -# cargo-workspaces metadata -[package.metadata.workspaces] -independent = true - [lints] workspace = true diff --git a/crates/biome_markdown_syntax/Cargo.toml b/crates/biome_markdown_syntax/Cargo.toml index 5c0f79f4ea77..435a071a8eb7 100644 --- a/crates/biome_markdown_syntax/Cargo.toml +++ b/crates/biome_markdown_syntax/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_markdown_syntax" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "SyntaxKind and common rowan definitions for biome_markdown_parser" edition.workspace = true +description = "SyntaxKind and common rowan definitions for biome_markdown_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_markdown_syntax" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_markup/Cargo.toml b/crates/biome_markup/Cargo.toml index 7d2d49a4e2d7..0c944320e996 100644 --- a/crates/biome_markup/Cargo.toml +++ b/crates/biome_markup/Cargo.toml @@ -1,16 +1,15 @@ [package] +name = "biome_markup" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Macros to write text using a HTML-like syntax" edition.workspace = true +description = "Macros to write text using a HTML-like syntax" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_markup" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" - [lib] proc-macro = true diff --git a/crates/biome_migrate/Cargo.toml b/crates/biome_migrate/Cargo.toml index d746395c7e39..93f43f7c0152 100644 --- a/crates/biome_migrate/Cargo.toml +++ b/crates/biome_migrate/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_migrate" +version = "0.0.0" authors.workspace = true -categories.workspace = true -description = "Utilities for the `biome migrate` command" edition.workspace = true +description = "Utilities for the `biome migrate` command" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_migrate" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_module_graph/Cargo.toml b/crates/biome_module_graph/Cargo.toml index 409e90d2204c..eca6efb0d17c 100644 --- a/crates/biome_module_graph/Cargo.toml +++ b/crates/biome_module_graph/Cargo.toml @@ -1,18 +1,19 @@ [package] +name = "biome_module_graph" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Data structure for tracking inferred information across modules" edition.workspace = true +description = "Data structure for tracking inferred information across modules" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_module_graph" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" -[lints] -workspace = true +[[bench]] +harness = false +name = "module_graph" [dependencies] biome_console = { workspace = true } @@ -32,7 +33,7 @@ biome_rowan = { workspace = true } camino = { workspace = true } cfg-if = { workspace = true } indexmap = { workspace = true } -once_cell = "1.21.3" # Use `std::sync::OnceLock::get_or_try_init` when it is stable. +once_cell = "1.21.3" # Use `std::sync::OnceLock::get_or_try_init` when it is stable. papaya = { workspace = true } rust-lapper = { workspace = true } rustc-hash = { workspace = true } @@ -52,16 +53,15 @@ divan = { package = "codspeed-divan-compat", version = "=4.1.0" } insta = { workspace = true } walkdir = { workspace = true } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } + [features] schema = ["dep:schemars"] serde = ["dep:serde"] -[[bench]] -harness = false -name = "module_graph" +[lints] +workspace = true diff --git a/crates/biome_package/Cargo.toml b/crates/biome_package/Cargo.toml index 01162234cf12..29ea563b3170 100644 --- a/crates/biome_package/Cargo.toml +++ b/crates/biome_package/Cargo.toml @@ -1,18 +1,30 @@ [package] +name = "biome_package" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Workspace package handler" edition.workspace = true +description = "Workspace package handler" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_package" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[[bench]] +harness = false +name = "package_json" + +[[bench]] +harness = false +name = "tsconfig_json" + +[[bench]] +harness = false +name = "semver" + [dependencies] biome_console = { workspace = true } biome_deserialize = { workspace = true, features = ["camino", "indexmap"] } @@ -36,24 +48,11 @@ divan = { package = "codspeed-divan-compat", version = "=4.1.0" } insta = { workspace = true } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } + [lints] workspace = true - -[[bench]] -harness = false -name = "package_json" - - -[[bench]] -harness = false -name = "tsconfig_json" - -[[bench]] -harness = false -name = "semver" diff --git a/crates/biome_parser/Cargo.toml b/crates/biome_parser/Cargo.toml index 5205ba1d3599..4667ae8ebcff 100644 --- a/crates/biome_parser/Cargo.toml +++ b/crates/biome_parser/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_parser" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's parser shared infrastructure" edition.workspace = true +description = "Biome's parser shared infrastructure" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_parser" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" [dependencies] biome_console = { workspace = true } diff --git a/crates/biome_plugin_loader/Cargo.toml b/crates/biome_plugin_loader/Cargo.toml index fa9ce6d771c9..e56bc399b162 100644 --- a/crates/biome_plugin_loader/Cargo.toml +++ b/crates/biome_plugin_loader/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_plugin_loader" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Functionality for loading plugins and caching them in memory" edition.workspace = true +description = "Functionality for loading plugins and caching them in memory" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_plugin_loader" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" [dependencies] biome_analyze = { workspace = true } @@ -20,12 +20,14 @@ biome_deserialize_macros = { workspace = true } biome_diagnostics = { workspace = true } biome_fs = { workspace = true } biome_grit_patterns = { workspace = true } +biome_js_runtime = { workspace = true, optional = true } biome_js_syntax = { workspace = true } biome_json_parser = { workspace = true } biome_parser = { workspace = true } biome_resolver = { workspace = true } biome_rowan = { workspace = true } biome_text_size = { workspace = true } +boa_engine = { workspace = true, optional = true } camino = { workspace = true } grit-pattern-matcher = { workspace = true } grit-util = { workspace = true } @@ -34,23 +36,20 @@ rustc-hash = { workspace = true } schemars = { workspace = true, optional = true } serde = { workspace = true } -biome_js_runtime = { workspace = true, optional = true } -boa_engine = { workspace = true, optional = true } - -[target.'cfg(windows)'.dependencies] -windows = { workspace = true, optional = true, features = ["Win32_System_Threading"] } - -[target.'cfg(unix)'.dependencies] -libc = { workspace = true, optional = true } - [dev-dependencies] biome_js_parser = { workspace = true } insta = { workspace = true } -[lints] -workspace = true +[target.'cfg(unix)'.dependencies] +libc = { workspace = true, optional = true } + +[target.'cfg(windows)'.dependencies] +windows = { workspace = true, features = ["Win32_System_Threading"], optional = true } [features] default = [] js_plugin = ["dep:biome_js_runtime", "dep:boa_engine", "dep:libc", "dep:windows"] schema = ["dep:schemars"] + +[lints] +workspace = true diff --git a/crates/biome_project_layout/Cargo.toml b/crates/biome_project_layout/Cargo.toml index 3d9197ab2b14..65f202ff962e 100644 --- a/crates/biome_project_layout/Cargo.toml +++ b/crates/biome_project_layout/Cargo.toml @@ -1,19 +1,15 @@ - [package] +name = "biome_project_layout" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Data structure for tracking projects and their packages" edition.workspace = true +description = "Data structure for tracking projects and their packages" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_project_layout" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" - -[lints] -workspace = true [dependencies] biome_package = { workspace = true } @@ -22,3 +18,6 @@ biome_rowan = { workspace = true } camino = { workspace = true } papaya = { workspace = true } rustc-hash = { workspace = true } + +[lints] +workspace = true diff --git a/crates/biome_resolver/Cargo.toml b/crates/biome_resolver/Cargo.toml index baee5ebc9ca2..c669d1f3f375 100644 --- a/crates/biome_resolver/Cargo.toml +++ b/crates/biome_resolver/Cargo.toml @@ -1,18 +1,15 @@ [package] +name = "biome_resolver" +version = "0.1.0" authors.workspace = true -categories.workspace = true -description = "Responsible for resolving dependency path" edition.workspace = true +description = "Responsible for resolving dependency path" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_resolver" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.1.0" - -[lints] -workspace = true [dependencies] biome_console = { workspace = true } @@ -22,3 +19,6 @@ biome_json_value = { workspace = true } biome_package = { workspace = true } biome_rowan = { workspace = true } camino = { workspace = true } + +[lints] +workspace = true diff --git a/crates/biome_rowan/Cargo.toml b/crates/biome_rowan/Cargo.toml index bc6147eaca98..3e825f0f0a98 100644 --- a/crates/biome_rowan/Cargo.toml +++ b/crates/biome_rowan/Cargo.toml @@ -1,15 +1,19 @@ [package] +name = "biome_rowan" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Biome's custom Rowan definition" edition.workspace = true +description = "Biome's custom Rowan definition" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_rowan" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" + +[[bench]] +harness = false +name = "mutation" [dependencies] biome_text_edit = { workspace = true } @@ -29,11 +33,7 @@ serde_json = { workspace = true } [features] countme = ["dep:countme"] schema = ["dep:schemars", "serde"] -serde = ["dep:serde", "biome_text_size/serde", "biome_text_size/serde"] - -[[bench]] -harness = false -name = "mutation" +serde = ["biome_text_size/serde", "biome_text_size/serde", "dep:serde"] [lints] workspace = true diff --git a/crates/biome_rule_options/Cargo.toml b/crates/biome_rule_options/Cargo.toml index 90a2b9e259da..4485d7fb3cd2 100644 --- a/crates/biome_rule_options/Cargo.toml +++ b/crates/biome_rule_options/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_rule_options" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "This crate is internally used to share lint rule options across analyzers" edition.workspace = true +description = "This crate is internally used to share lint rule options across analyzers" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_rule_options" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" [dependencies] biome_console = { workspace = true } @@ -30,9 +30,8 @@ serde = { workspace = true } serde_json = { workspace = true, optional = true } smallvec = { workspace = true } -[lints] -workspace = true - - [features] schema = ["dep:schemars", "dep:serde_json"] + +[lints] +workspace = true diff --git a/crates/biome_ruledoc_utils/Cargo.toml b/crates/biome_ruledoc_utils/Cargo.toml index 166865b73c4a..07fc185df2df 100644 --- a/crates/biome_ruledoc_utils/Cargo.toml +++ b/crates/biome_ruledoc_utils/Cargo.toml @@ -1,14 +1,14 @@ [package] +name = "biome_ruledoc_utils" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Utilities for running code blocks in rule docs" edition.workspace = true +description = "Utilities for running code blocks in rule docs" homepage.workspace = true -keywords.workspace = true -license.workspace = true -name = "biome_ruledoc_utils" repository.workspace = true -version = "0.0.1" +license.workspace = true +keywords.workspace = true +categories.workspace = true [dependencies] anyhow = { workspace = true } diff --git a/crates/biome_service/Cargo.toml b/crates/biome_service/Cargo.toml index 36c91d99cf6c..4cec412be78d 100644 --- a/crates/biome_service/Cargo.toml +++ b/crates/biome_service/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_service" +version = "0.0.0" authors.workspace = true -categories.workspace = true -description = "Biome's core functionality" edition.workspace = true +description = "Biome's core functionality" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_service" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -85,23 +85,23 @@ insta = { workspace = true } [features] js_plugin = ["biome_plugin_loader/js_plugin"] -schema = [ - "dep:schemars", +schema = [ "biome_configuration/schema", - "biome_js_analyze/schema", - "biome_formatter/schema", - "biome_js_factory", - "biome_js_syntax/schema", - "biome_text_edit/schema", - "biome_json_syntax/schema", "biome_css_syntax/schema", + "biome_formatter/schema", + "biome_fs/schema", "biome_graphql_syntax/schema", - "biome_grit_syntax/schema", "biome_grit_patterns/schema", - "biome_html_syntax/schema", + "biome_grit_syntax/schema", "biome_html_formatter/schema", - "biome_fs/schema", + "biome_html_syntax/schema", + "biome_js_analyze/schema", + "biome_js_factory", + "biome_js_syntax/schema", + "biome_json_syntax/schema", "biome_module_graph/schema", + "biome_text_edit/schema", + "dep:schemars", ] [lints] diff --git a/crates/biome_string_case/Cargo.toml b/crates/biome_string_case/Cargo.toml index 3ace56ca9260..9152b3b4f490 100644 --- a/crates/biome_string_case/Cargo.toml +++ b/crates/biome_string_case/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_string_case" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Utilities to convert string cases" edition.workspace = true +description = "Utilities to convert string cases" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_string_case" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" [dependencies] biome_rowan = { workspace = true, optional = true } diff --git a/crates/biome_suppression/Cargo.toml b/crates/biome_suppression/Cargo.toml index d716f01f2ea3..804aa0405756 100644 --- a/crates/biome_suppression/Cargo.toml +++ b/crates/biome_suppression/Cargo.toml @@ -1,16 +1,15 @@ [package] +name = "biome_suppression" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Utilities to suppress diagnostics" edition.workspace = true +description = "Utilities to suppress diagnostics" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_suppression" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" - [dependencies] biome_console = { workspace = true } diff --git a/crates/biome_syntax_codegen/Cargo.toml b/crates/biome_syntax_codegen/Cargo.toml index 19a106ddb358..fee2136f076c 100644 --- a/crates/biome_syntax_codegen/Cargo.toml +++ b/crates/biome_syntax_codegen/Cargo.toml @@ -1,15 +1,18 @@ [package] +name = "biome_syntax_codegen" +version = "0.1.0" authors.workspace = true -categories.workspace = true -description = "Biome utility to codegen a grammar for the parser" edition.workspace = true +description = "Biome utility to codegen a grammar for the parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_syntax_codegen" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.1.0" + +[[example]] +name = "minigrammar" [dependencies] anyhow = { workspace = true } @@ -20,6 +23,3 @@ quote = { workspace = true } [lints] workspace = true - -[[example]] -name = "minigrammar" diff --git a/crates/biome_tailwind_factory/Cargo.toml b/crates/biome_tailwind_factory/Cargo.toml index 85031677fcb2..98353ef0879f 100644 --- a/crates/biome_tailwind_factory/Cargo.toml +++ b/crates/biome_tailwind_factory/Cargo.toml @@ -1,13 +1,13 @@ [package] +name = "biome_tailwind_factory" +version = "0.0.1" authors.workspace = true +edition.workspace = true description = "Utilities to create Tailwind AST for biome_tailwind_factory" documentation = "https://docs.rs/biome_tailwind_factory" -edition.workspace = true +repository.workspace = true license.workspace = true -name = "biome_tailwind_factory" publish = true -repository.workspace = true -version = "0.0.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_tailwind_parser/Cargo.toml b/crates/biome_tailwind_parser/Cargo.toml index ca0b380ae424..fc41a4f8337e 100644 --- a/crates/biome_tailwind_parser/Cargo.toml +++ b/crates/biome_tailwind_parser/Cargo.toml @@ -1,18 +1,19 @@ [package] +name = "biome_tailwind_parser" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Biome's Tailwind parser" edition.workspace = true +description = "Biome's Tailwind parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_tailwind_parser" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" -[lints] -workspace = true +[[bench]] +harness = false +name = "tailwind_parser" [dependencies] biome_console = { workspace = true } @@ -24,7 +25,6 @@ biome_tailwind_syntax = { workspace = true } biome_unicode_table = { workspace = true } tracing = { workspace = true } - [dev-dependencies] biome_test_utils = { workspace = true } camino = { workspace = true } @@ -34,12 +34,11 @@ quickcheck = { workspace = true } quickcheck_macros = { workspace = true } tests_macros = { path = "../tests_macros" } -[target.'cfg(target_os = "windows")'.dev-dependencies] -mimalloc = { workspace = true } - [target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dev-dependencies] tikv-jemallocator = { workspace = true } -[[bench]] -harness = false -name = "tailwind_parser" +[target.'cfg(target_os = "windows")'.dev-dependencies] +mimalloc = { workspace = true } + +[lints] +workspace = true diff --git a/crates/biome_tailwind_syntax/Cargo.toml b/crates/biome_tailwind_syntax/Cargo.toml index 5389ba043137..bbed923b520d 100644 --- a/crates/biome_tailwind_syntax/Cargo.toml +++ b/crates/biome_tailwind_syntax/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_tailwind_syntax" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "SyntaxKind and common rowan definitions for biome_tailwind_parser" edition.workspace = true +description = "SyntaxKind and common rowan definitions for biome_tailwind_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_tailwind_syntax" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.0.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -17,10 +17,11 @@ version = "0.0.1" biome_rowan = { workspace = true, features = ["serde"] } # biome_string_case = { workspace = true } # camino = { workspace = true } -schemars = { workspace = true, optional = true } -serde = { workspace = true, features = ["derive"] } +schemars = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"] } + [features] -schema = ["schemars", "biome_rowan/serde"] +schema = ["biome_rowan/serde", "schemars"] [lints] workspace = true diff --git a/crates/biome_test_utils/Cargo.toml b/crates/biome_test_utils/Cargo.toml index d471752e121d..f5a5ce7c41c0 100644 --- a/crates/biome_test_utils/Cargo.toml +++ b/crates/biome_test_utils/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_test_utils" +version = "0.0.0" authors.workspace = true -categories.workspace = true -description = "Utilities for tests" edition.workspace = true +description = "Utilities for tests" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_test_utils" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -42,6 +42,5 @@ similar = { workspace = true } ureq = { workspace = true } url = { workspace = true } - [lints] workspace = true diff --git a/crates/biome_text_edit/Cargo.toml b/crates/biome_text_edit/Cargo.toml index 3268d40d5d6d..38a987d02200 100644 --- a/crates/biome_text_edit/Cargo.toml +++ b/crates/biome_text_edit/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_text_edit" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Utilities to edit text (This is taken from rust-analyzer)" edition.workspace = true +description = "Utilities to edit text (This is taken from rust-analyzer)" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_text_edit" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" [dependencies] biome_text_size = { workspace = true } @@ -18,8 +18,8 @@ serde = { workspace = true, features = ["derive"], optional = true } similar = { workspace = true, features = ["unicode"] } [features] -schema = ["dep:schemars", "biome_text_size/schema", "serde"] -serde = ["dep:serde", "biome_text_size/serde"] +schema = ["biome_text_size/schema", "dep:schemars", "serde"] +serde = ["biome_text_size/serde", "dep:serde"] [lints] workspace = true diff --git a/crates/biome_text_size/Cargo.toml b/crates/biome_text_size/Cargo.toml index d346d48dbae1..c76257837273 100644 --- a/crates/biome_text_size/Cargo.toml +++ b/crates/biome_text_size/Cargo.toml @@ -1,32 +1,32 @@ [package] +name = "biome_text_size" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Utilities to treat text sizes/ranges in a more type-safe" edition.workspace = true +description = "Utilities to treat text sizes/ranges in a more type-safe" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_text_size" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" + +[[test]] +name = "serde" +path = "tests/serde.rs" +required-features = ["serde"] [dependencies] schemars = { workspace = true, optional = true } serde = { workspace = true, optional = true } -[features] -schema = ["dep:schemars", "serde"] -serde = ["dep:serde"] - [dev-dependencies] serde_test = "=1.0.177" static_assertions = { workspace = true } -[[test]] -name = "serde" -path = "tests/serde.rs" -required-features = ["serde"] +[features] +schema = ["dep:schemars", "serde"] +serde = ["dep:serde"] [lints] workspace = true diff --git a/crates/biome_ungrammar/Cargo.toml b/crates/biome_ungrammar/Cargo.toml index 706daeb0bd1c..78752a47140b 100644 --- a/crates/biome_ungrammar/Cargo.toml +++ b/crates/biome_ungrammar/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_ungrammar" +version = "0.3.1" authors.workspace = true -categories.workspace = true -description = "A DSL for describing concrete syntax trees" edition.workspace = true +description = "A DSL for describing concrete syntax trees" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_ungrammar" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.3.1" [lints] workspace = true diff --git a/crates/biome_unicode_table/Cargo.toml b/crates/biome_unicode_table/Cargo.toml index 1d86075c8856..c39d7660cbf2 100644 --- a/crates/biome_unicode_table/Cargo.toml +++ b/crates/biome_unicode_table/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_unicode_table" +version = "0.5.7" authors.workspace = true -categories.workspace = true -description = "Unicode table for JavaScript IDs" edition.workspace = true +description = "Unicode table for JavaScript IDs" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_unicode_table" +keywords.workspace = true +categories.workspace = true publish = true -repository.workspace = true -version = "0.5.7" [dependencies] diff --git a/crates/biome_wasm/Cargo.toml b/crates/biome_wasm/Cargo.toml index 5e4928ec19ca..4a367d19bed1 100644 --- a/crates/biome_wasm/Cargo.toml +++ b/crates/biome_wasm/Cargo.toml @@ -4,39 +4,36 @@ categories = ["development-tools", "web-programming"] description = "WebAssembly bindings to the Biome workspace API" edition = "2024" homepage = "https://biomejs.dev/" -keywords = ["parser", "linter", "formatter", "wasm"] +keywords = ["formatter", "linter", "parser", "wasm"] license = "MIT OR Apache-2.0" name = "biome_wasm" publish = false repository = "https://github.com/biomejs/biome" version = "1.9.4" +[package.metadata.wasm-pack.profile.profiling] +wasm-opt = false [lib] crate-type = ["cdylib", "rlib"] -[features] -default = ["console_error_panic_hook"] - [dependencies] -biome_console = { workspace = true } -biome_diagnostics = { workspace = true } -biome_fs = { workspace = true } -biome_service = { workspace = true, features = ["schema"] } -camino = { workspace = true } -js-sys = "0.3.82" -serde = { workspace = true } -serde-wasm-bindgen = "0.6.5" -serde_json = { workspace = true } -# IMPORTANT: if you update this package, you must update justfile and workflows so we install the same CLI version -wasm-bindgen = { version = "0.2.105", features = ["serde-serialize"] } - +biome_console = { workspace = true } +biome_diagnostics = { workspace = true } +biome_fs = { workspace = true } +biome_service = { workspace = true, features = ["schema"] } +camino = { workspace = true } # The `console_error_panic_hook` crate provides better debugging of panics by # logging them with `console.error`. This is great for development, but requires # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for # code size when deploying. console_error_panic_hook = { version = "0.1.7", optional = true } - +js-sys = "0.3.82" +serde = { workspace = true } +serde_json = { workspace = true } +serde-wasm-bindgen = "0.6.5" +# IMPORTANT: if you update this package, you must update justfile and workflows so we install the same CLI version +wasm-bindgen = { version = "0.2.105", features = ["serde-serialize"] } [build-dependencies] biome_js_factory = { workspace = true } @@ -46,8 +43,8 @@ biome_service = { workspace = true, features = ["schema"] } quote = "1.0.14" schemars = { workspace = true } +[features] +default = ["console_error_panic_hook"] + [lints] workspace = true - -[package.metadata.wasm-pack.profile.profiling] -wasm-opt = false diff --git a/crates/biome_yaml_factory/Cargo.toml b/crates/biome_yaml_factory/Cargo.toml index 31ec17de0acd..9a2293a1a10a 100644 --- a/crates/biome_yaml_factory/Cargo.toml +++ b/crates/biome_yaml_factory/Cargo.toml @@ -1,15 +1,15 @@ [package] +name = "biome_yaml_factory" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Utilities to create YAML AST for biome_yaml_parser" edition.workspace = true +description = "Utilities to create YAML AST for biome_yaml_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_yaml_factory" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/biome_yaml_parser/Cargo.toml b/crates/biome_yaml_parser/Cargo.toml index 9827a2f74bfd..d7a88ae62ed5 100644 --- a/crates/biome_yaml_parser/Cargo.toml +++ b/crates/biome_yaml_parser/Cargo.toml @@ -1,18 +1,15 @@ [package] +name = "biome_yaml_parser" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "Biome's YAML parser" edition.workspace = true +description = "Biome's YAML parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_yaml_parser" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.1" - -[lints] -workspace = true [dependencies] biome_console = { workspace = true } @@ -24,10 +21,12 @@ biome_yaml_factory = { workspace = true } biome_yaml_syntax = { workspace = true } tracing = { workspace = true } - [dev-dependencies] biome_test_utils = { workspace = true } insta = { workspace = true } quickcheck = { workspace = true } quickcheck_macros = { workspace = true } tests_macros = { workspace = true } + +[lints] +workspace = true diff --git a/crates/biome_yaml_syntax/Cargo.toml b/crates/biome_yaml_syntax/Cargo.toml index c1db4de17167..9d0c1076a4f9 100644 --- a/crates/biome_yaml_syntax/Cargo.toml +++ b/crates/biome_yaml_syntax/Cargo.toml @@ -1,16 +1,15 @@ [package] +name = "biome_yaml_syntax" +version = "0.0.1" authors.workspace = true -categories.workspace = true -description = "SyntaxKind and common rowan definitions for biome_yaml_parser" edition.workspace = true +description = "SyntaxKind and common rowan definitions for biome_yaml_parser" homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "biome_yaml_syntax" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.1" - # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/tests_macros/Cargo.toml b/crates/tests_macros/Cargo.toml index 705ff19525bb..12a5a2deae6e 100644 --- a/crates/tests_macros/Cargo.toml +++ b/crates/tests_macros/Cargo.toml @@ -1,14 +1,14 @@ [package] +name = "tests_macros" +version = "0.0.0" authors.workspace = true -categories.workspace = true edition.workspace = true homepage.workspace = true -keywords.workspace = true +repository.workspace = true license.workspace = true -name = "tests_macros" +keywords.workspace = true +categories.workspace = true publish = false -repository.workspace = true -version = "0.0.0" [lib] proc-macro = true diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 715aa00f800d..5bd1e44a5a91 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -1,40 +1,20 @@ [package] -name = "rome_fuzz" +name = "rome_fuzz" version = "0.0.0" authors = ["Addison Crump "] publish = false edition = "2024" -[features] -default = ["libfuzzer"] -full-idempotency = [] -libfuzzer = ["libfuzzer-sys/link_libfuzzer"] -rome_all = [] - [package.metadata] cargo-fuzz = true -[dependencies] -libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer", default-features = false } -biome_analyze = { path = "../crates/biome_analyze" } -biome_diagnostics = { path = "../crates/biome_diagnostics" } -biome_formatter = { path = "../crates/biome_formatter" } -biome_js_analyze = { path = "../crates/biome_js_analyze" } -biome_js_formatter = { path = "../crates/biome_js_formatter" } -biome_js_parser = { path = "../crates/biome_js_parser" } -biome_js_syntax = { path = "../crates/biome_js_syntax" } -biome_json_formatter = { path = "../crates/biome_json_formatter" } -biome_json_parser = { path = "../crates/biome_json_parser" } -biome_service = { path = "../crates/biome_service" } -similar = { workspace = true } - # Prevent this from interfering with workspaces [workspace] members = ["."] [[bin]] -name = "rome_parse_all" -path = "fuzz_targets/rome_parse_all.rs" +name = "rome_parse_all" +path = "fuzz_targets/rome_parse_all.rs" required-features = ["rome_all"] [[bin]] @@ -66,8 +46,8 @@ name = "rome_parse_typescript" path = "fuzz_targets/rome_parse_typescript.rs" [[bin]] -name = "rome_format_all" -path = "fuzz_targets/rome_format_all.rs" +name = "rome_format_all" +path = "fuzz_targets/rome_format_all.rs" required-features = ["rome_all"] [[bin]] @@ -98,18 +78,38 @@ path = "fuzz_targets/rome_format_tsx.rs" name = "rome_format_typescript" path = "fuzz_targets/rome_format_typescript.rs" -# enabling debug seems to cause a massive use of RAM (>12GB) -[profile.release] -opt-level = 3 -#debug = true -debug = false +[dependencies] +biome_analyze = { path = "../crates/biome_analyze" } +biome_diagnostics = { path = "../crates/biome_diagnostics" } +biome_formatter = { path = "../crates/biome_formatter" } +biome_js_analyze = { path = "../crates/biome_js_analyze" } +biome_js_formatter = { path = "../crates/biome_js_formatter" } +biome_js_parser = { path = "../crates/biome_js_parser" } +biome_js_syntax = { path = "../crates/biome_js_syntax" } +biome_json_formatter = { path = "../crates/biome_json_formatter" } +biome_json_parser = { path = "../crates/biome_json_parser" } +biome_service = { path = "../crates/biome_service" } +libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer", default-features = false } +similar = { workspace = true } + +[features] +default = ["libfuzzer"] +full-idempotency = [] +libfuzzer = ["libfuzzer-sys/link_libfuzzer"] +rome_all = [] [profile.dev] opt-level = 3 -#debug = true -debug = false +# debug = true +debug = false + +# enabling debug seems to cause a massive use of RAM (>12GB) +[profile.release] +opt-level = 3 +# debug = true +debug = false [profile.test] opt-level = 3 -#debug = true -debug = false +# debug = true +debug = false diff --git a/justfile b/justfile index 872ad5c1d4ac..97a58ae7ebd0 100644 --- a/justfile +++ b/justfile @@ -10,13 +10,14 @@ alias qt := test-quick # Installs the tools needed to develop install-tools: cargo install cargo-binstall - cargo binstall cargo-insta taplo-cli wasm-opt + cargo binstall cargo-insta wasm-opt cargo binstall wasm-bindgen-cli --version 0.2.105 + pnpm install # Upgrades the tools needed to develop upgrade-tools: cargo install cargo-binstall --force - cargo binstall cargo-insta taplo-cli wasm-opt --force + cargo binstall cargo-insta wasm-opt --force cargo binstall wasm-bindgen-cli --version 0.2.105 --force # Generate all files across crates and tools. You rarely want to use it locally. @@ -51,7 +52,7 @@ gen-analyzer: # Generate and updates the files needed inside the *_analyze crates gen-rules: - cargo run -p xtask_codegen -- analyzer + cargo run -p xtask_codegen -- analyzer gen-configuration: @@ -190,7 +191,7 @@ move-rule rulename group: # Format Rust files and TOML files format: cargo format - taplo format + pnpm format [unix] _touch file: diff --git a/package.json b/package.json index 0041c745e69a..cd55ee440845 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "check:write": "cargo biome-cli-dev check --write --unsafe", "check": "cargo biome-cli-dev check", "ci": "cargo biome-cli-dev ci", + "format": "tombi format", "//": "when we create the release PR, we need to update the lock file with the new versions", "version": "changeset version && pnpm i --lockfile-only && (git stash list | grep -q '__automated-changes' && git -c advice.skippedCherryPicks=false stash pop || echo 'No stash to pop')" }, @@ -21,6 +22,7 @@ "@biomejs/plugin-api": "workspace:", "@changesets/changelog-github": "0.5.2", "@changesets/cli": "2.29.8", - "@types/node": "24.10.3" + "@types/node": "24.10.3", + "tombi": "^0.7.4" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 53e3e90b6acc..971a40d72e2c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ importers: '@types/node': specifier: 24.10.3 version: 24.10.3 + tombi: + specifier: ^0.7.4 + version: 0.7.4 benchmark: devDependencies: @@ -644,6 +647,54 @@ packages: '@standard-schema/spec@1.0.0': resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==} + '@tombi-toml/cli-darwin-arm64@0.7.4': + resolution: {integrity: sha512-56rySAtcjZARTXlMQiBvj2RR/atY4mQoaxEskkst2tGZO7S5od0T+zv3PLRrQV08wDeo5hnCVwXiP3+o+kIu1w==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [darwin] + + '@tombi-toml/cli-darwin-x64@0.7.4': + resolution: {integrity: sha512-gg8Lq0Ex+WxyQVYuTgRtbLXOuk0oPW/ZwobW8so6H8U868Uj7JNKGxzG9msAv6fW5ICj8DtYzwz9xBhhs9824A==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [darwin] + + '@tombi-toml/cli-linux-arm64-musl@0.7.4': + resolution: {integrity: sha512-BrEbsx77jZ3s6pfCrFb3kVq/m+6g0o5qQKRvywZzYSE6vlKbKpiGLFzmG5aQHIU8p01GJRDKL3PpdhKKn3MqWg==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [linux] + + '@tombi-toml/cli-linux-arm64@0.7.4': + resolution: {integrity: sha512-eOGHbmNtG1dcQ0+9iyvDkmwBYGlhy9nhehXijRagIm+corVutJCda+kXNll9famfEutrVMjmxwqQ9//5d5P6eA==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [linux] + + '@tombi-toml/cli-linux-x64-musl@0.7.4': + resolution: {integrity: sha512-EeZwwyn8GCVfhATJOw8RATYpYSsi74qS+10H1iY3qSFes+XKV3EgGgA5R+zM50k2rceY6DUl13PCkwKvS3z2RA==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [linux] + + '@tombi-toml/cli-linux-x64@0.7.4': + resolution: {integrity: sha512-F1lBGBRyK4lRD4nhS8ZXGbE6z6oPaA1zunlLKRKwsM1FsQVCsMAblacCn1/jys7tZ5zpxUeUUTCRaRDCB/9b2w==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [linux] + + '@tombi-toml/cli-win32-arm64@0.7.4': + resolution: {integrity: sha512-FM2OCyZZ/KWNyyECFtx+9OUjiIsEG7HeBH7g2eviRU6fDKKd2sn49tvFEd0v0dJBkAMXoY3MNFHfHcDI5Q/bnQ==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [win32] + + '@tombi-toml/cli-win32-x64@0.7.4': + resolution: {integrity: sha512-13h0B4LA8MgaXn6upV5dAe7vkyUg+FPbsItRSggZLs19hr0w0MhNzNlz5mtNWyt+4wwrIbfOILJosqDH70GWTw==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [win32] + '@types/chai@5.2.2': resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==} @@ -1437,6 +1488,11 @@ packages: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} + tombi@0.7.4: + resolution: {integrity: sha512-Y2IhNB1F45HIK1ZZFGGrX1d82rvqnXJZv/Beb9aioBNP4Mfshl9rQarRtrAp6sgo4Wr9YG9qWHeAo6c4oH8WSg==} + engines: {node: '>=14.0.0'} + hasBin: true + tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} @@ -2021,6 +2077,30 @@ snapshots: '@standard-schema/spec@1.0.0': {} + '@tombi-toml/cli-darwin-arm64@0.7.4': + optional: true + + '@tombi-toml/cli-darwin-x64@0.7.4': + optional: true + + '@tombi-toml/cli-linux-arm64-musl@0.7.4': + optional: true + + '@tombi-toml/cli-linux-arm64@0.7.4': + optional: true + + '@tombi-toml/cli-linux-x64-musl@0.7.4': + optional: true + + '@tombi-toml/cli-linux-x64@0.7.4': + optional: true + + '@tombi-toml/cli-win32-arm64@0.7.4': + optional: true + + '@tombi-toml/cli-win32-x64@0.7.4': + optional: true + '@types/chai@5.2.2': dependencies: '@types/deep-eql': 4.0.2 @@ -2829,6 +2909,17 @@ snapshots: dependencies: is-number: 7.0.0 + tombi@0.7.4: + optionalDependencies: + '@tombi-toml/cli-darwin-arm64': 0.7.4 + '@tombi-toml/cli-darwin-x64': 0.7.4 + '@tombi-toml/cli-linux-arm64': 0.7.4 + '@tombi-toml/cli-linux-arm64-musl': 0.7.4 + '@tombi-toml/cli-linux-x64': 0.7.4 + '@tombi-toml/cli-linux-x64-musl': 0.7.4 + '@tombi-toml/cli-win32-arm64': 0.7.4 + '@tombi-toml/cli-win32-x64': 0.7.4 + tr46@0.0.3: {} ts-api-utils@2.1.0(typescript@5.9.3): diff --git a/rustfmt.toml b/rustfmt.toml index 708370e467e5..05839cff574a 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,3 +1,3 @@ -edition = "2024" +edition = "2024" newline_style = "Unix" style_edition = "2024" diff --git a/taplo.toml b/taplo.toml deleted file mode 100644 index a569b9d47d8c..000000000000 --- a/taplo.toml +++ /dev/null @@ -1,7 +0,0 @@ -include = ["Cargo.toml", "crates/**/Cargo.toml", ".cargo/config.toml", "xtask/**/*.toml"] -exclude = ["./benchmark/**/*.toml"] - -[formatting] -align_entries = true -column_width = 120 -reorder_keys = true diff --git a/tombi.toml b/tombi.toml new file mode 100644 index 000000000000..c44eecd4b781 --- /dev/null +++ b/tombi.toml @@ -0,0 +1,6 @@ +toml-version = "v1.0.0" # optional + +[format] +[format.rules] +key-value-equals-sign-alignment = true +line-width = 120 diff --git a/xtask/codegen/Cargo.toml b/xtask/codegen/Cargo.toml index ef59371db418..5dac313cec18 100644 --- a/xtask/codegen/Cargo.toml +++ b/xtask/codegen/Cargo.toml @@ -1,20 +1,11 @@ [package] -edition = "2024" name = "xtask_codegen" -publish = false version = "0.0.0" +edition = "2024" +publish = false [dependencies] -anyhow = { workspace = true } -bpaf = { workspace = true, features = ["derive"] } -git2 = { version = "0.20.2", default-features = false } -proc-macro2 = { workspace = true, features = ["span-locations"] } -pulldown-cmark = { version = "0.13.0", default-features = false, optional = true } -quote = "1.0.36" -serde = { workspace = true, optional = true } -ureq = "3.1.4" -xtask_glue = { workspace = true } - +anyhow = { workspace = true } biome_analyze = { workspace = true, features = ["schema"], optional = true } biome_cli = { workspace = true, optional = true } biome_configuration = { workspace = true, features = ["schema"], optional = true } @@ -34,48 +25,56 @@ biome_js_parser = { workspace = true, optional = true } biome_js_syntax = { workspace = true, optional = true } # HACK: This is a path dependency and not a workspace dependency because # `default-features` is not allowed to override the workspace default, for whatever reason. -biome_json_analyze = { path = "../../crates/biome_json_analyze", optional = true, default-features = false } -biome_json_formatter = { workspace = true, optional = true } -biome_json_parser = { workspace = true, optional = true } -biome_json_syntax = { workspace = true, optional = true } -biome_rowan = { workspace = true, optional = true } -biome_service = { workspace = true, features = ["schema"], optional = true } -biome_string_case = { workspace = true } -biome_ungrammar = { workspace = true } -schemars = { workspace = true, optional = true } -serde_json = { workspace = true, optional = true } +biome_json_analyze = { path = "../../crates/biome_json_analyze", default-features = false, optional = true } +biome_json_formatter = { workspace = true, optional = true } +biome_json_parser = { workspace = true, optional = true } +biome_json_syntax = { workspace = true, optional = true } +biome_rowan = { workspace = true, optional = true } +biome_service = { workspace = true, features = ["schema"], optional = true } +biome_string_case = { workspace = true } +biome_ungrammar = { workspace = true } +bpaf = { workspace = true, features = ["derive"] } +git2 = { version = "0.20.2", default-features = false } +proc-macro2 = { workspace = true, features = ["span-locations"] } +pulldown-cmark = { version = "0.13.0", default-features = false, optional = true } +quote = "1.0.36" +schemars = { workspace = true, optional = true } +serde = { workspace = true, optional = true } +serde_json = { workspace = true, optional = true } +ureq = "3.1.4" +xtask_glue = { workspace = true } [features] configuration = [ "biome_analyze", - "biome_js_analyze", - "biome_js_syntax", - "biome_json_analyze", - "biome_json_syntax", "biome_css_analyze", "biome_css_syntax", + "biome_diagnostics", "biome_graphql_analyze", "biome_graphql_syntax", "biome_html_analyze", "biome_html_syntax", + "biome_js_analyze", + "biome_js_syntax", + "biome_json_analyze", + "biome_json_syntax", "biome_rowan", "pulldown-cmark", - "biome_diagnostics", ] -license = ["ureq/default", "ureq/json", "serde", "serde_json"] -schema = [ - "schemars", - "serde_json", +license = ["serde", "serde_json", "ureq/default", "ureq/json"] +schema = [ "biome_analyze", - "biome_rowan", - "biome_service", - "biome_js_syntax", + "biome_configuration", + "biome_diagnostics", "biome_js_factory", "biome_js_formatter", + "biome_js_syntax", "biome_json_formatter", "biome_json_parser", - "biome_diagnostics", - "biome_configuration", + "biome_rowan", + "biome_service", + "schemars", + "serde_json", ] [lints] diff --git a/xtask/coverage/Cargo.toml b/xtask/coverage/Cargo.toml index 2b1f526fcf6a..d5acb91d40d9 100644 --- a/xtask/coverage/Cargo.toml +++ b/xtask/coverage/Cargo.toml @@ -1,8 +1,8 @@ [package] -edition = "2024" name = "xtask_coverage" -publish = false version = "0.0.0" +edition = "2024" +publish = false [dependencies] ascii_table = "4.0.8" diff --git a/xtask/glue/Cargo.toml b/xtask/glue/Cargo.toml index 2bd6d0bf4a75..a6584bc1e2ee 100644 --- a/xtask/glue/Cargo.toml +++ b/xtask/glue/Cargo.toml @@ -1,8 +1,8 @@ [package] -edition = "2024" name = "xtask_glue" -publish = false version = "0.0.0" +edition = "2024" +publish = false [dependencies] anyhow = { workspace = true } diff --git a/xtask/rules_check/Cargo.toml b/xtask/rules_check/Cargo.toml index 333c7a6fd8d8..28eee8c0ce31 100644 --- a/xtask/rules_check/Cargo.toml +++ b/xtask/rules_check/Cargo.toml @@ -1,9 +1,9 @@ [package] -description = "Internal script to make sure that the metadata or the rules are correct" -edition = "2024" name = "rules_check" -publish = false version = "0.0.0" +edition = "2024" +description = "Internal script to make sure that the metadata or the rules are correct" +publish = false [dependencies] anyhow = { workspace = true } @@ -38,6 +38,5 @@ biome_service = { workspace = true } camino = { workspace = true } pulldown-cmark = "0.13.0" - [lints] workspace = true