From d3343eb92b82821e4632767a7e6cc39b8df443db Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Wed, 21 Jun 2023 15:24:25 +0100 Subject: [PATCH 1/3] docs: getting started --- CONTRIBUTING.md | 2 -- justfile | 25 +++++++++++++++++++------ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ef381c48ca2..de4494bf0ea 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -22,8 +22,6 @@ Rome can be used via the `rome` bin in the `rome_cli` package: cargo run --bin rome -- --help ``` -Rome can be used as a language server by following the instructions below. - ## Testing To run the tests, just run diff --git a/justfile b/justfile index 509f4ce1c9f..f9186612245 100644 --- a/justfile +++ b/justfile @@ -1,11 +1,23 @@ _default: just --list -u +# Installs the tools needed to develop with Rome +install-tools: + cargo install binstall + cargo binstall cargo-insta cargo-nextest wasm-pack + +# Upgrades the tools needed to develop with Rome +upgrade-tools: + cargo install binstall --force + cargo binstall cargo-insta cargo-nextest wasm-pack --force + +# Generate all files across crates and tools. You rarely want to use it locally. codegen: cargo codegen all cargo codegen-configuration just codegen-bindings +# Generates TypeScript types and JSON schema of the configuration codegen-bindings: cargo codegen-schema cargo codegen-bindings @@ -17,23 +29,23 @@ codegen-linter: just codegen-bindings cargo lintdoc -# Generates the documentation +# Generates the linter documentation and Rust documentation documentation: cargo lintdoc cargo documentation # Creates a new lint rule in the given path, with the given name. Name has to be camel case. -new-lintrule path name: - cargo run -p xtask_codegen -- newlintrule --path={{path}} --name={{name}} +new-lintrule path rulename: + cargo run -p xtask_codegen -- newlintrule --path={{path}} --name={{rulename}} just codegen-linter just documentation # Promotes a rule from the nursery group to a new group -promote-rule rule group: - cargo run -p xtask_codegen -- promoterule --rule={{rule}} --group={{group}} +promote-rule rulename group: + cargo run -p xtask_codegen -- promoterule --rule={{rulename}} --group={{group}} just codegen-linter just documentation - -cargo test -p rome_js_analyze -- {{snakecase(rule)}} + -cargo test -p rome_js_analyze -- {{snakecase(rulename)}} cargo insta accept [unix] @@ -51,6 +63,7 @@ test-lintrule name: cargo test -p rome_js_analyze -- {{snakecase(name)}} cargo test -p rome_json_analyze -- {{snakecase(name)}} +# When you finished coding, run this command to run the same commands in the CI. check-ready: git diff --exit-code --quiet just codegen From 6f3d2255db0704870a7ccc7478b2be29dc1418f0 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Wed, 21 Jun 2023 15:41:44 +0100 Subject: [PATCH 2/3] chore: format toml files --- Cargo.toml | 122 +++++++++--------- clippy.toml | 2 +- crates/rome_analyze/Cargo.toml | 24 ++-- crates/rome_aria/Cargo.toml | 10 +- crates/rome_aria_metadata/Cargo.toml | 14 +- crates/rome_cli/Cargo.toml | 80 ++++++------ crates/rome_console/Cargo.toml | 28 ++-- crates/rome_control_flow/Cargo.toml | 10 +- crates/rome_css_factory/Cargo.toml | 12 +- crates/rome_css_syntax/Cargo.toml | 10 +- crates/rome_deserialize/Cargo.toml | 24 ++-- crates/rome_diagnostics/Cargo.toml | 38 +++--- crates/rome_diagnostics_categories/Cargo.toml | 16 +-- crates/rome_diagnostics_macros/Cargo.toml | 20 +-- crates/rome_flags/Cargo.toml | 10 +- crates/rome_formatter/Cargo.toml | 38 +++--- crates/rome_formatter_test/Cargo.toml | 32 ++--- crates/rome_fs/Cargo.toml | 26 ++-- crates/rome_js_analyze/Cargo.toml | 70 +++++----- crates/rome_js_factory/Cargo.toml | 16 +-- crates/rome_js_formatter/Cargo.toml | 70 +++++----- crates/rome_js_parser/Cargo.toml | 54 ++++---- crates/rome_js_semantic/Cargo.toml | 26 ++-- crates/rome_js_syntax/Cargo.toml | 22 ++-- crates/rome_js_unicode_table/Cargo.toml | 14 +- crates/rome_json_analyze/Cargo.toml | 36 +++--- crates/rome_json_factory/Cargo.toml | 16 +-- crates/rome_json_formatter/Cargo.toml | 42 +++--- crates/rome_json_parser/Cargo.toml | 38 +++--- crates/rome_json_syntax/Cargo.toml | 14 +- crates/rome_lsp/Cargo.toml | 46 +++---- crates/rome_markup/Cargo.toml | 18 +-- crates/rome_migrate/Cargo.toml | 11 +- crates/rome_parser/Cargo.toml | 20 +-- crates/rome_rowan/Cargo.toml | 40 +++--- crates/rome_service/Cargo.toml | 70 +++++----- crates/rome_text_edit/Cargo.toml | 20 +-- crates/rome_text_size/Cargo.toml | 21 ++- crates/rome_wasm/Cargo.toml | 36 +++--- crates/tests_macros/Cargo.toml | 16 +-- fuzz/Cargo.toml | 4 +- justfile | 20 ++- taplo.toml | 6 + xtask/bench/Cargo.toml | 14 +- xtask/codegen/Cargo.toml | 28 +++- xtask/contributors/Cargo.toml | 2 +- xtask/coverage/Cargo.toml | 2 +- 47 files changed, 673 insertions(+), 635 deletions(-) create mode 100644 taplo.toml diff --git a/Cargo.toml b/Cargo.toml index 39dc9f6f8ba..1cae9057905 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,86 +3,86 @@ # https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions resolver = "2" members = [ - "crates/*", - "xtask/bench", - "xtask/codegen", - "xtask/coverage", - "xtask/lintdoc", - "xtask/libs_bench", - "xtask/contributors", + "crates/*", + "xtask/bench", + "xtask/codegen", + "xtask/coverage", + "xtask/lintdoc", + "xtask/libs_bench", + "xtask/contributors", ] [workspace.package] -edition = "2021" -authors = ["Rome Tools Developers and Contributors"] -license = "MIT" +edition = "2021" +authors = ["Rome Tools Developers and Contributors"] +license = "MIT" repository = "https://github.com/rome/tools" -homepage = "https://rome.tools" +homepage = "https://rome.tools" [profile.release-with-debug] inherits = "release" -debug = true +debug = true [workspace.dependencies] -indexmap = "1.9.1" -tracing = { version = "0.1.31", default-features = false, features = ["std"] } -dashmap = "5.4.0" +indexmap = "1.9.1" +tracing = { version = "0.1.31", default-features = false, features = ["std"] } +dashmap = "5.4.0" rustc-hash = "1.1.0" -countme = "3.0.1" +countme = "3.0.1" # pinning to version 1.18 to avoid multiple versions of windows-sys as dependency -tokio = { version = "~1.18.5" } -insta = "1.21.2" -quote = { version = "1.0.21" } -lazy_static = "1.4.0" -bpaf = { version = "0.8.0", features = ["derive"] } -bitflags = "2.2.1" -rome_rowan = { version = "0.0.1", path = "./crates/rome_rowan" } -rome_console = { version = "0.0.1", path = "./crates/rome_console" } -rome_diagnostics = { version = "0.0.1", path = "./crates/rome_diagnostics" } -rome_json_parser = { path = "./crates/rome_json_parser" } -rome_deserialize = { version = "0.0.0", path = "./crates/rome_deserialize" } -rome_aria_metadata = { path = "./crates/rome_aria_metadata" } -rome_aria = { path = "./crates/rome_aria" } -rome_formatter = { version = "0.0.1", path = "./crates/rome_formatter" } -rome_service = { path = "./crates/rome_service" } -rome_flags = { path = "./crates/rome_flags" } -rome_fs = { path = "./crates/rome_fs" } -rome_text_edit = { version = "0.0.1", path = "./crates/rome_text_edit" } -rome_lsp = { path = "./crates/rome_lsp" } -rome_text_size = { version = "0.0.1", path = "./crates/rome_text_size" } -rome_json_formatter = { path = "./crates/rome_json_formatter" } -rome_json_syntax = { version = "0.0.1", path = "./crates/rome_json_syntax" } -rome_migrate = { path = "./crates/rome_migrate" } -rome_js_formatter = { path = "./crates/rome_js_formatter" } -rome_markup = { version = "0.0.1", path = "./crates/rome_markup" } -rome_css_syntax = { path = "./crates/rome_css_syntax" } -rome_diagnostics_macros = { version = "0.0.1", path = "./crates/rome_diagnostics_macros" } +tokio = { version = "~1.18.5" } +insta = "1.21.2" +quote = { version = "1.0.21" } +lazy_static = "1.4.0" +bpaf = { version = "0.8.0", features = ["derive"] } +bitflags = "2.2.1" +rome_rowan = { version = "0.0.1", path = "./crates/rome_rowan" } +rome_console = { version = "0.0.1", path = "./crates/rome_console" } +rome_diagnostics = { version = "0.0.1", path = "./crates/rome_diagnostics" } +rome_json_parser = { path = "./crates/rome_json_parser" } +rome_deserialize = { version = "0.0.0", path = "./crates/rome_deserialize" } +rome_aria_metadata = { path = "./crates/rome_aria_metadata" } +rome_aria = { path = "./crates/rome_aria" } +rome_formatter = { version = "0.0.1", path = "./crates/rome_formatter" } +rome_service = { path = "./crates/rome_service" } +rome_flags = { path = "./crates/rome_flags" } +rome_fs = { path = "./crates/rome_fs" } +rome_text_edit = { version = "0.0.1", path = "./crates/rome_text_edit" } +rome_lsp = { path = "./crates/rome_lsp" } +rome_text_size = { version = "0.0.1", path = "./crates/rome_text_size" } +rome_json_formatter = { path = "./crates/rome_json_formatter" } +rome_json_syntax = { version = "0.0.1", path = "./crates/rome_json_syntax" } +rome_migrate = { path = "./crates/rome_migrate" } +rome_js_formatter = { path = "./crates/rome_js_formatter" } +rome_markup = { version = "0.0.1", path = "./crates/rome_markup" } +rome_css_syntax = { path = "./crates/rome_css_syntax" } +rome_diagnostics_macros = { version = "0.0.1", path = "./crates/rome_diagnostics_macros" } rome_diagnostics_categories = { version = "0.0.1", path = "./crates/rome_diagnostics_categories" } -rome_js_parser = { path = "./crates/rome_js_parser" } -rome_js_syntax = { version = "0.0.2", path = "./crates/rome_js_syntax" } -rome_js_factory = { version = "0.0.2", path = "./crates/rome_js_factory" } -rome_parser = { version = "0.0.1", path = "./crates/rome_parser" } -rome_analyze = { path = "./crates/rome_analyze" } -rome_control_flow = { path = "./crates/rome_control_flow" } -rome_js_semantic = { path = "./crates/rome_js_semantic" } -rome_js_unicode_table = { version = "0.0.1", path = "./crates/rome_js_unicode_table" } -rome_json_factory = { version = "0.0.1", path = "./crates/rome_json_factory" } -tests_macros = { path = "./crates/tests_macros" } -rome_formatter_test = { path = "./crates/rome_formatter_test" } -rome_js_analyze = { path = "./crates/rome_js_analyze" } -rome_json_analyze = { path = "./crates/rome_json_analyze" } -schemars = { version = "0.8.10" } -smallvec = { version = "1.8.0", features = ["union", "const_new"] } +rome_js_parser = { path = "./crates/rome_js_parser" } +rome_js_syntax = { version = "0.0.2", path = "./crates/rome_js_syntax" } +rome_js_factory = { version = "0.0.2", path = "./crates/rome_js_factory" } +rome_parser = { version = "0.0.1", path = "./crates/rome_parser" } +rome_analyze = { path = "./crates/rome_analyze" } +rome_control_flow = { path = "./crates/rome_control_flow" } +rome_js_semantic = { path = "./crates/rome_js_semantic" } +rome_js_unicode_table = { version = "0.0.1", path = "./crates/rome_js_unicode_table" } +rome_json_factory = { version = "0.0.1", path = "./crates/rome_json_factory" } +tests_macros = { path = "./crates/tests_macros" } +rome_formatter_test = { path = "./crates/rome_formatter_test" } +rome_js_analyze = { path = "./crates/rome_js_analyze" } +rome_json_analyze = { path = "./crates/rome_json_analyze" } +schemars = { version = "0.8.10" } +smallvec = { version = "1.8.0", features = ["union", "const_new"] } [profile.dev.package.rome_wasm] opt-level = 1 -debug = true +debug = true [profile.test.package.rome_wasm] opt-level = 1 -debug = true +debug = true [profile.release.package.rome_wasm] opt-level = 3 -debug = false +debug = false diff --git a/clippy.toml b/clippy.toml index b9bf2c47f5c..4296655a040 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1 +1 @@ -allow-dbg-in-tests = true \ No newline at end of file +allow-dbg-in-tests = true diff --git a/crates/rome_analyze/Cargo.toml b/crates/rome_analyze/Cargo.toml index 9500acf4e8f..6a125aa7d75 100644 --- a/crates/rome_analyze/Cargo.toml +++ b/crates/rome_analyze/Cargo.toml @@ -1,22 +1,22 @@ [package] -name = "rome_analyze" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_analyze" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } -rome_console = { workspace = true } -rome_diagnostics = { workspace = true } +rome_rowan = { workspace = true } +rome_console = { workspace = true } +rome_diagnostics = { workspace = true } bitflags.workspace = true -rustc-hash = { workspace = true } -serde = { version = "1.0.136", features = ["derive"] } -schemars = { version = "0.8.10", optional = true } -tracing = { workspace = true } +rustc-hash = { workspace = true } +serde = { version = "1.0.136", features = ["derive"] } +schemars = { version = "0.8.10", optional = true } +tracing = { workspace = true } [features] diff --git a/crates/rome_aria/Cargo.toml b/crates/rome_aria/Cargo.toml index a76c1e0b9cc..1e067ce39fc 100644 --- a/crates/rome_aria/Cargo.toml +++ b/crates/rome_aria/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_aria" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_aria" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/rome_aria_metadata/Cargo.toml b/crates/rome_aria_metadata/Cargo.toml index 377c5b57b03..d97091d02ab 100644 --- a/crates/rome_aria_metadata/Cargo.toml +++ b/crates/rome_aria_metadata/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_aria_metadata" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_aria_metadata" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -12,6 +12,6 @@ license.workspace = true [build-dependencies] -quote = { workspace = true } +quote = { workspace = true } proc-macro2 = { version = "1.0.36", features = ["span-locations"] } -case = "1.0.0" +case = "1.0.0" diff --git a/crates/rome_cli/Cargo.toml b/crates/rome_cli/Cargo.toml index 780a2998ab9..b18949d4f49 100644 --- a/crates/rome_cli/Cargo.toml +++ b/crates/rome_cli/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_cli" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_cli" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [[bin]] @@ -12,40 +12,40 @@ name = "rome" path = "src/main.rs" [dependencies] -rome_formatter = { workspace = true } -rome_diagnostics = { workspace = true } -rome_service = { workspace = true } -rome_flags = { workspace = true } -rome_fs = { workspace = true } -rome_console = { workspace = true } -rome_text_edit = { workspace = true } -rome_lsp = { workspace = true } -rome_deserialize = { workspace = true } -pico-args = { version ="0.5.0", features=["eq-separator"] } -bpaf = { workspace = true } -tracing = { workspace = true } -tracing-tree = "0.2.2" -tracing-subscriber = { version = "0.3.16", features = ["env-filter"] } -tracing-appender = "0.2" -lazy_static = { workspace = true } -hdrhistogram = { version = "7.5.0", default-features = false } -crossbeam = "0.8.1" -rayon = "1.5.1" -serde = { version = "1.0.133", features = ["derive"] } -serde_json = { version = "1.0.74" } -tokio = { workspace = true, features = ["io-std", "io-util", "net", "time", "rt","sync", "rt-multi-thread", "macros"] } -anyhow = "1.0.52" -dashmap = { workspace = true } -rome_text_size = { workspace = true } -rome_json_parser = { workspace = true } +rome_formatter = { workspace = true } +rome_diagnostics = { workspace = true } +rome_service = { workspace = true } +rome_flags = { workspace = true } +rome_fs = { workspace = true } +rome_console = { workspace = true } +rome_text_edit = { workspace = true } +rome_lsp = { workspace = true } +rome_deserialize = { workspace = true } +pico-args = { version = "0.5.0", features = ["eq-separator"] } +bpaf = { workspace = true } +tracing = { workspace = true } +tracing-tree = "0.2.2" +tracing-subscriber = { version = "0.3.16", features = ["env-filter"] } +tracing-appender = "0.2" +lazy_static = { workspace = true } +hdrhistogram = { version = "7.5.0", default-features = false } +crossbeam = "0.8.1" +rayon = "1.5.1" +serde = { version = "1.0.133", features = ["derive"] } +serde_json = { version = "1.0.74" } +tokio = { workspace = true, features = ["io-std", "io-util", "net", "time", "rt", "sync", "rt-multi-thread", "macros"] } +anyhow = "1.0.52" +dashmap = { workspace = true } +rome_text_size = { workspace = true } +rome_json_parser = { workspace = true } rome_json_formatter = { workspace = true } -rome_json_syntax = { workspace = true } -rome_migrate = { workspace = true } -rome_rowan = { workspace = true } -indexmap = { workspace = true } +rome_json_syntax = { workspace = true } +rome_migrate = { workspace = true } +rome_rowan = { workspace = true } +indexmap = { workspace = true } [target.'cfg(unix)'.dependencies] -libc = "0.2.127" +libc = "0.2.127" tokio = { workspace = true, features = ["process"] } [target.'cfg(windows)'.dependencies] @@ -55,8 +55,8 @@ mimalloc = "0.1.29" tikv-jemallocator = "0.5.0" [dev-dependencies] -insta = { workspace = true } -tokio = { workspace = true, features = ["io-util"] } +insta = { workspace = true } +tokio = { workspace = true, features = ["io-util"] } rome_json_formatter = { workspace = true } -rome_js_formatter = { workspace = true } -rome_json_parser = { workspace = true } +rome_js_formatter = { workspace = true } +rome_json_parser = { workspace = true } diff --git a/crates/rome_console/Cargo.toml b/crates/rome_console/Cargo.toml index 0d13aec8af2..50622e7830d 100644 --- a/crates/rome_console/Cargo.toml +++ b/crates/rome_console/Cargo.toml @@ -1,22 +1,22 @@ [package] -name = "rome_console" -version = "0.0.1" -edition.workspace = true -authors.workspace = true -license.workspace = true -description = "Expose utilities to print HTML-syntax messages" +name = "rome_console" +version = "0.0.1" +edition.workspace = true +authors.workspace = true +license.workspace = true +description = "Expose utilities to print HTML-syntax messages" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_console/index.html" +documentation = "https://rustdocs.rome.tools/rome_console/index.html" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_markup = { workspace = true } -atty = "0.2.14" -rome_text_size = { workspace = true} -termcolor = "1.1.2" -unicode-width = "0.1.9" -serde = { version = "1.0.133", optional = true, features = ["derive"] } -schemars = { version = "0.8.10", optional = true } +rome_markup = { workspace = true } +atty = "0.2.14" +rome_text_size = { workspace = true } +termcolor = "1.1.2" +unicode-width = "0.1.9" +serde = { version = "1.0.133", optional = true, features = ["derive"] } +schemars = { version = "0.8.10", optional = true } [dev-dependencies] trybuild = "1.0" diff --git a/crates/rome_control_flow/Cargo.toml b/crates/rome_control_flow/Cargo.toml index c6db6871fe6..7a78f407f23 100644 --- a/crates/rome_control_flow/Cargo.toml +++ b/crates/rome_control_flow/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_control_flow" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_control_flow" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/rome_css_factory/Cargo.toml b/crates/rome_css_factory/Cargo.toml index 709d81a13c5..dc143a1acca 100644 --- a/crates/rome_css_factory/Cargo.toml +++ b/crates/rome_css_factory/Cargo.toml @@ -1,14 +1,14 @@ [package] -name = "rome_css_factory" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_css_factory" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } +rome_rowan = { workspace = true } rome_css_syntax = { workspace = true } diff --git a/crates/rome_css_syntax/Cargo.toml b/crates/rome_css_syntax/Cargo.toml index 21b5cb4bf7d..ccecf42fe2e 100644 --- a/crates/rome_css_syntax/Cargo.toml +++ b/crates/rome_css_syntax/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_css_syntax" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_css_syntax" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/rome_deserialize/Cargo.toml b/crates/rome_deserialize/Cargo.toml index b93d1d3d18d..4575dc5fdf0 100644 --- a/crates/rome_deserialize/Cargo.toml +++ b/crates/rome_deserialize/Cargo.toml @@ -1,20 +1,20 @@ [package] -name = "rome_deserialize" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_deserialize" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_console = { workspace = true } -rome_diagnostics = { workspace = true} +rome_console = { workspace = true } +rome_diagnostics = { workspace = true } rome_json_parser = { workspace = true } rome_json_syntax = { workspace = true } -tracing = { workspace = true } -indexmap = { workspace = true } -rome_rowan = { workspace = true } -serde = "1.0.150" -serde_json = "1.0.89" +tracing = { workspace = true } +indexmap = { workspace = true } +rome_rowan = { workspace = true } +serde = "1.0.150" +serde_json = "1.0.89" diff --git a/crates/rome_diagnostics/Cargo.toml b/crates/rome_diagnostics/Cargo.toml index db9172305a2..02d1f2b3869 100644 --- a/crates/rome_diagnostics/Cargo.toml +++ b/crates/rome_diagnostics/Cargo.toml @@ -1,12 +1,12 @@ [package] -name = "rome_diagnostics" -version = "0.0.1" +name = "rome_diagnostics" +version = "0.0.1" authors.workspace = true edition.workspace = true license.workspace = true -description = "Pretty error reporting library" -documentation = "https://rustdocs.rome.tools/rome_diagnostics/index.html" -categories = ["development-tools"] +description = "Pretty error reporting library" +documentation = "https://rustdocs.rome.tools/rome_diagnostics/index.html" +categories = ["development-tools"] [[example]] name = "cli" @@ -25,24 +25,24 @@ name = "serde" test = true [dependencies] -rome_rowan = { workspace = true } -rome_console = { workspace = true, features = ["serde_markup"] } -rome_diagnostics_macros = { workspace = true } +rome_rowan = { workspace = true } +rome_console = { workspace = true, features = ["serde_markup"] } +rome_diagnostics_macros = { workspace = true } rome_diagnostics_categories = { workspace = true, features = ["serde"] } -rome_text_edit = { workspace = true } -rome_text_size = { workspace = true } -unicode-width = "0.1.9" -serde = { version = "1.0.133", features = ["derive"] } -termcolor = "1.1.2" -schemars = { version = "0.8.10", optional = true } -bitflags = "1.3.2" -backtrace = "0.3.66" -pico-args = "0.5.0" -bpaf = { workspace = true } +rome_text_edit = { workspace = true } +rome_text_size = { workspace = true } +unicode-width = "0.1.9" +serde = { version = "1.0.133", features = ["derive"] } +termcolor = "1.1.2" +schemars = { version = "0.8.10", optional = true } +bitflags = "1.3.2" +backtrace = "0.3.66" +pico-args = "0.5.0" +bpaf = { workspace = true } [features] schema = ["schemars", "rome_text_edit/schemars", "rome_diagnostics_categories/schemars"] [dev-dependencies] -trybuild = "1.0" +trybuild = "1.0" serde_json = "1.0.74" diff --git a/crates/rome_diagnostics_categories/Cargo.toml b/crates/rome_diagnostics_categories/Cargo.toml index 936e6cd9f0e..31f7a3bd31b 100644 --- a/crates/rome_diagnostics_categories/Cargo.toml +++ b/crates/rome_diagnostics_categories/Cargo.toml @@ -1,15 +1,15 @@ [package] -name = "rome_diagnostics_categories" -version = "0.0.1" -authors.workspace = true +name = "rome_diagnostics_categories" +version = "0.0.1" +authors.workspace = true repository.workspace = true -license.workspace = true -edition.workspace = true -description = "Diagnostic categories for rome_diagnostics. It exposes a macro that emits compile-time errors for extranous categories." -documentation = "https://rustdocs.rome.tools/rome_diagnostics/index.html" +license.workspace = true +edition.workspace = true +description = "Diagnostic categories for rome_diagnostics. It exposes a macro that emits compile-time errors for extranous categories." +documentation = "https://rustdocs.rome.tools/rome_diagnostics/index.html" [dependencies] -serde = { version = "1.0.136", optional = true } +serde = { version = "1.0.136", optional = true } schemars = { version = "0.8.10", optional = true } [build-dependencies] diff --git a/crates/rome_diagnostics_macros/Cargo.toml b/crates/rome_diagnostics_macros/Cargo.toml index 4137920965c..ba1ac7135bc 100644 --- a/crates/rome_diagnostics_macros/Cargo.toml +++ b/crates/rome_diagnostics_macros/Cargo.toml @@ -1,18 +1,18 @@ [package] -name = "rome_diagnostics_macros" -version = "0.0.1" -authors.workspace = true -license.workspace = true -edition.workspace = true +name = "rome_diagnostics_macros" +version = "0.0.1" +authors.workspace = true +license.workspace = true +edition.workspace = true repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_diagnostics/index.html" -description = "A Macro to make a struct type a Rome diagnostic." +documentation = "https://rustdocs.rome.tools/rome_diagnostics/index.html" +description = "A Macro to make a struct type a Rome diagnostic." [lib] proc-macro = true [dependencies] -proc-macro2 = "1.0.36" -syn = "1.0.85" -quote = "1.0.14" +proc-macro2 = "1.0.36" +syn = "1.0.85" +quote = "1.0.14" proc-macro-error = { version = "1.0.4", default-features = false } diff --git a/crates/rome_flags/Cargo.toml b/crates/rome_flags/Cargo.toml index cc8703bc8ca..da6dd305fbc 100644 --- a/crates/rome_flags/Cargo.toml +++ b/crates/rome_flags/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_flags" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_flags" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/rome_formatter/Cargo.toml b/crates/rome_formatter/Cargo.toml index ba669779a72..f10e14d6f07 100644 --- a/crates/rome_formatter/Cargo.toml +++ b/crates/rome_formatter/Cargo.toml @@ -1,34 +1,34 @@ [package] -name = "rome_formatter" -version = "0.0.1" -edition.workspace = true -authors.workspace = true +name = "rome_formatter" +version = "0.0.1" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true -description = "Rome's formatter shared infrastructure" -documentation = "https://rustdocs.rome.tools/rome_formatter/index.html" +license.workspace = true +description = "Rome's formatter shared infrastructure" +documentation = "https://rustdocs.rome.tools/rome_formatter/index.html" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } -tracing = { workspace = true } -serde = { version = "1.0.136", features = ["derive"], optional = true } -cfg-if = "1.0.0" -schemars = { version = "0.8.10", optional = true } -rustc-hash = { workspace = true } -countme = { workspace = true } -drop_bomb = "0.1.5" -indexmap = { workspace = true } -unicode-width = "0.1.9" +rome_rowan = { workspace = true } +tracing = { workspace = true } +serde = { version = "1.0.136", features = ["derive"], optional = true } +cfg-if = "1.0.0" +schemars = { version = "0.8.10", optional = true } +rustc-hash = { workspace = true } +countme = { workspace = true } +drop_bomb = "0.1.5" +indexmap = { workspace = true } +unicode-width = "0.1.9" rome_diagnostics = { workspace = true } -rome_console = { workspace = true } +rome_console = { workspace = true } [dev-dependencies] rome_js_parser = { workspace = true } rome_js_syntax = { workspace = true } -insta = { workspace = true } +insta = { workspace = true } [features] serde = ["dep:serde", "schemars", "rome_rowan/serde"] diff --git a/crates/rome_formatter_test/Cargo.toml b/crates/rome_formatter_test/Cargo.toml index 5b9ea2e7a9c..e1f66e6b36e 100644 --- a/crates/rome_formatter_test/Cargo.toml +++ b/crates/rome_formatter_test/Cargo.toml @@ -1,25 +1,25 @@ [package] -name = "rome_formatter_test" -version = "0.1.0" -edition.workspace = true -authors.workspace = true +name = "rome_formatter_test" +version = "0.1.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -serde = { version = "1", features = ["derive"] } -serde_json = "1" -rome_parser = { workspace = true } +serde = { version = "1", features = ["derive"] } +serde_json = "1" +rome_parser = { workspace = true } rome_diagnostics = { workspace = true } -rome_formatter = { workspace = true } -rome_rowan = { workspace = true } -rome_console = { workspace = true } -rome_fs = { workspace = true } -rome_service = { workspace = true } -similar = "2.1.0" -similar-asserts = "1.2.0" -insta = { workspace = true, features = ["glob"] } +rome_formatter = { workspace = true } +rome_rowan = { workspace = true } +rome_console = { workspace = true } +rome_fs = { workspace = true } +rome_service = { workspace = true } +similar = "2.1.0" +similar-asserts = "1.2.0" +insta = { workspace = true, features = ["glob"] } [dev-dependencies] diff --git a/crates/rome_fs/Cargo.toml b/crates/rome_fs/Cargo.toml index 9598f9b3293..6e488aa7efe 100644 --- a/crates/rome_fs/Cargo.toml +++ b/crates/rome_fs/Cargo.toml @@ -1,23 +1,23 @@ [package] -name = "rome_fs" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_fs" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] rome_diagnostics = { workspace = true } -rome_console = { workspace = true } -indexmap = { workspace = true } -parking_lot = { version = "0.12.0", features = ["arc_lock"] } -rayon = "1.5.1" -crossbeam = "0.8.1" -tracing = { workspace = true } -serde = { version = "1.0.136", features = ["derive"], optional = true } -schemars = { version = "0.8.10", optional = true } +rome_console = { workspace = true } +indexmap = { workspace = true } +parking_lot = { version = "0.12.0", features = ["arc_lock"] } +rayon = "1.5.1" +crossbeam = "0.8.1" +tracing = { workspace = true } +serde = { version = "1.0.136", features = ["derive"], optional = true } +schemars = { version = "0.8.10", optional = true } [features] serde = ["dep:serde", "schemars", "rome_diagnostics/schema"] diff --git a/crates/rome_js_analyze/Cargo.toml b/crates/rome_js_analyze/Cargo.toml index dc0fda82997..9639ead0766 100644 --- a/crates/rome_js_analyze/Cargo.toml +++ b/crates/rome_js_analyze/Cargo.toml @@ -1,45 +1,45 @@ [package] -name = "rome_js_analyze" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_js_analyze" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true [dependencies] -rome_analyze = { workspace = true } -rome_control_flow = { workspace = true } -rome_rowan = { workspace = true } -rome_js_semantic = { workspace = true } -rome_js_syntax = { workspace = true } -rome_js_factory = { workspace = true } +rome_analyze = { workspace = true } +rome_control_flow = { workspace = true } +rome_rowan = { workspace = true } +rome_js_semantic = { workspace = true } +rome_js_syntax = { workspace = true } +rome_js_factory = { workspace = true } rome_js_unicode_table = { workspace = true } -rome_json_syntax = { workspace = true } -rome_json_factory = { workspace = true } -rome_console = { workspace = true } -rome_diagnostics = { workspace = true } -rome_deserialize = { workspace = true } -rome_aria = { workspace = true } -roaring = "0.10.1" -rustc-hash = { workspace = true } -serde = { version = "1.0.136", features = ["derive"] } -serde_json = { version = "1.0.74" } -lazy_static = { workspace = true } -natord = "1.0.9" -bpaf.workspace = true -schemars = { workspace = true, optional = true } -smallvec = { workspace = true } +rome_json_syntax = { workspace = true } +rome_json_factory = { workspace = true } +rome_console = { workspace = true } +rome_diagnostics = { workspace = true } +rome_deserialize = { workspace = true } +rome_aria = { workspace = true } +roaring = "0.10.1" +rustc-hash = { workspace = true } +serde = { version = "1.0.136", features = ["derive"] } +serde_json = { version = "1.0.74" } +lazy_static = { workspace = true } +natord = "1.0.9" +bpaf.workspace = true +schemars = { workspace = true, optional = true } +smallvec = { workspace = true } [dev-dependencies] -tests_macros = { workspace = true } -rome_text_edit = { workspace = true } -rome_js_parser = { workspace = true, features = ["tests"] } -insta = { workspace = true, features = ["glob"] } -countme = { workspace = true, features = ["enable"] } -similar = "2.1.0" -json_comments = "0.2.1" -rome_service = { path = "../rome_service"} -rome_json_parser = { path = "../rome_json_parser"} +tests_macros = { workspace = true } +rome_text_edit = { workspace = true } +rome_js_parser = { workspace = true, features = ["tests"] } +insta = { workspace = true, features = ["glob"] } +countme = { workspace = true, features = ["enable"] } +similar = "2.1.0" +json_comments = "0.2.1" +rome_service = { path = "../rome_service" } +rome_json_parser = { path = "../rome_json_parser" } [features] schemars = ["dep:schemars"] diff --git a/crates/rome_js_factory/Cargo.toml b/crates/rome_js_factory/Cargo.toml index 68c68f013ed..f9702336f82 100644 --- a/crates/rome_js_factory/Cargo.toml +++ b/crates/rome_js_factory/Cargo.toml @@ -1,15 +1,15 @@ [package] -name = "rome_js_factory" -version = "0.0.2" -edition.workspace = true -authors.workspace = true -license.workspace = true -description = "Utilities to create JavaScript AST for rome_js_parser" +name = "rome_js_factory" +version = "0.0.2" +edition.workspace = true +authors.workspace = true +license.workspace = true +description = "Utilities to create JavaScript AST for rome_js_parser" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_js_factory/index.html" +documentation = "https://rustdocs.rome.tools/rome_js_factory/index.html" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } +rome_rowan = { workspace = true } rome_js_syntax = { workspace = true } diff --git a/crates/rome_js_formatter/Cargo.toml b/crates/rome_js_formatter/Cargo.toml index c61071e4c3e..fb871cbb277 100644 --- a/crates/rome_js_formatter/Cargo.toml +++ b/crates/rome_js_formatter/Cargo.toml @@ -1,51 +1,49 @@ [package] -name = "rome_js_formatter" -version = "0.0.2" -edition.workspace = true -authors.workspace = true +name = "rome_js_formatter" +version = "0.0.2" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true -documentation = "https://rustdocs.rome.tools/rome_js_formatter/index.html" -description = "Rome's JavaScript formatter" -categories = [ - "development-tools" -] +license.workspace = true +documentation = "https://rustdocs.rome.tools/rome_js_formatter/index.html" +description = "Rome's JavaScript formatter" +categories = ["development-tools"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -cfg-if = "1.0.0" -rome_js_syntax = { workspace = true } -rome_json_syntax = { workspace = true } -rome_js_factory = { workspace = true } -rome_formatter = { workspace = true } -rome_rowan = { workspace = true } -rome_text_size = { workspace = true } +cfg-if = "1.0.0" +rome_js_syntax = { workspace = true } +rome_json_syntax = { workspace = true } +rome_js_factory = { workspace = true } +rome_formatter = { workspace = true } +rome_rowan = { workspace = true } +rome_text_size = { workspace = true } rome_diagnostics_categories = { workspace = true } -rome_deserialize = { workspace = true } -tracing = { workspace = true } -unicode-width = "0.1.9" -serde = { version = "1.0.136", features = ["derive"], optional = true } -schemars = { version = "0.8.10", optional = true } +rome_deserialize = { workspace = true } +tracing = { workspace = true } +unicode-width = "0.1.9" +serde = { version = "1.0.136", features = ["derive"], optional = true } +schemars = { version = "0.8.10", optional = true } [dev-dependencies] -rome_parser = { workspace = true } +rome_parser = { workspace = true } rome_formatter_test = { workspace = true } -rome_fs = { workspace = true } -rome_js_parser = { workspace = true } -rome_js_factory = { workspace = true } -serde = { version = "1", features = ["derive"] } -serde_json = "1" -tests_macros = { workspace = true } -insta = { workspace = true, features = ["glob"] } -rome_diagnostics = { workspace = true } -countme = { workspace = true, features = ["enable"] } -quickcheck = "1.0.3" -quickcheck_macros = "1.0.0" -iai = "0.1.1" +rome_fs = { workspace = true } +rome_js_parser = { workspace = true } +rome_js_factory = { workspace = true } +serde = { version = "1", features = ["derive"] } +serde_json = "1" +tests_macros = { workspace = true } +insta = { workspace = true, features = ["glob"] } +rome_diagnostics = { workspace = true } +countme = { workspace = true, features = ["enable"] } +quickcheck = "1.0.3" +quickcheck_macros = "1.0.0" +iai = "0.1.1" [[bench]] -name = "iai" +name = "iai" harness = false [features] diff --git a/crates/rome_js_parser/Cargo.toml b/crates/rome_js_parser/Cargo.toml index 6943c60c733..be11bd29a8b 100644 --- a/crates/rome_js_parser/Cargo.toml +++ b/crates/rome_js_parser/Cargo.toml @@ -1,41 +1,41 @@ [package] -edition.workspace = true -name = "rome_js_parser" -version = "0.0.2" -authors.workspace = true -license.workspace = true -description = "An extremely fast ECMAScript parser for Rome, forked from the RSlint project" +edition.workspace = true +name = "rome_js_parser" +version = "0.0.2" +authors.workspace = true +license.workspace = true +description = "An extremely fast ECMAScript parser for Rome, forked from the RSlint project" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_js_parser/index.html" -categories = ["parser-implementations", "development-tools"] -homepage.workspace = true +documentation = "https://rustdocs.rome.tools/rome_js_parser/index.html" +categories = ["parser-implementations", "development-tools"] +homepage.workspace = true [dependencies] -rome_console = { workspace = true } -rome_diagnostics = { workspace = true } -rome_js_syntax = { workspace = true } -rome_js_factory = { workspace = true } +rome_console = { workspace = true } +rome_diagnostics = { workspace = true } +rome_js_syntax = { workspace = true } +rome_js_factory = { workspace = true } rome_js_unicode_table = { workspace = true } -rome_rowan = { workspace = true } -rome_parser = { workspace = true } -drop_bomb = "0.1.5" -bitflags.workspace = true -indexmap = { workspace = true } -cfg-if = "1.0.0" -smallvec = { workspace = true } -tracing = { workspace = true } -schemars = { workspace = true, optional = true} +rome_rowan = { workspace = true } +rome_parser = { workspace = true } +drop_bomb = "0.1.5" +bitflags.workspace = true +indexmap = { workspace = true } +cfg-if = "1.0.0" +smallvec = { workspace = true } +tracing = { workspace = true } +schemars = { workspace = true, optional = true } [dev-dependencies] -tests_macros = { workspace = true } -expect-test = "1.2.2" -quickcheck = "1.0.3" +tests_macros = { workspace = true } +expect-test = "1.2.2" +quickcheck = "1.0.3" quickcheck_macros = "1.0.0" [features] -serde = ["rome_js_syntax/serde"] +serde = ["rome_js_syntax/serde"] schemars = ["dep:schemars"] -tests = [] +tests = [] # cargo-workspaces metadata [package.metadata.workspaces] diff --git a/crates/rome_js_semantic/Cargo.toml b/crates/rome_js_semantic/Cargo.toml index 5a89ad1ebaf..8ba53663df4 100644 --- a/crates/rome_js_semantic/Cargo.toml +++ b/crates/rome_js_semantic/Cargo.toml @@ -1,21 +1,21 @@ [package] -edition.workspace = true -name = "rome_js_semantic" -version = "0.1.0" -authors.workspace = true -license.workspace = true -description = "Semantic model for the JavaScript language" -documentation = "https://rustdocs.rome.tools/rome_js_semantic/index.html" +edition.workspace = true +name = "rome_js_semantic" +version = "0.1.0" +authors.workspace = true +license.workspace = true +description = "Semantic model for the JavaScript language" +documentation = "https://rustdocs.rome.tools/rome_js_semantic/index.html" repository.workspace = true [dependencies] -rome_rowan = { workspace = true } +rome_rowan = { workspace = true } rome_js_syntax = { workspace = true } -rust-lapper = "1.0.1" -rustc-hash = { workspace = true } +rust-lapper = "1.0.1" +rustc-hash = { workspace = true } [dev-dependencies] -rome_markup = { workspace = true } +rome_markup = { workspace = true } rome_diagnostics = { workspace = true } -rome_console = { workspace = true } -rome_js_parser = { workspace = true } +rome_console = { workspace = true } +rome_js_parser = { workspace = true } diff --git a/crates/rome_js_syntax/Cargo.toml b/crates/rome_js_syntax/Cargo.toml index 9519b3d0288..0d5e333d7d4 100644 --- a/crates/rome_js_syntax/Cargo.toml +++ b/crates/rome_js_syntax/Cargo.toml @@ -1,19 +1,19 @@ [package] -edition.workspace = true -name = "rome_js_syntax" -version = "0.0.2" -authors.workspace = true -description = "SyntaxKind and common rowan definitions for rome_js_parser" -license.workspace = true +edition.workspace = true +name = "rome_js_syntax" +version = "0.0.2" +authors.workspace = true +description = "SyntaxKind and common rowan definitions for rome_js_parser" +license.workspace = true repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_js_syntax/index.html" +documentation = "https://rustdocs.rome.tools/rome_js_syntax/index.html" [dependencies] -rome_rowan = { workspace = true } +rome_rowan = { workspace = true } rome_diagnostics = { workspace = true } -rome_console = { workspace = true } -serde = { version = "1.0.136", features = ["derive"], optional = true } -schemars = { version = "0.8.10", optional = true } +rome_console = { workspace = true } +serde = { version = "1.0.136", features = ["derive"], optional = true } +schemars = { version = "0.8.10", optional = true } [dev-dependencies] rome_js_factory = { workspace = true } diff --git a/crates/rome_js_unicode_table/Cargo.toml b/crates/rome_js_unicode_table/Cargo.toml index f26185f3206..ee5188eac6f 100644 --- a/crates/rome_js_unicode_table/Cargo.toml +++ b/crates/rome_js_unicode_table/Cargo.toml @@ -1,12 +1,12 @@ [package] -edition.workspace = true -name = "rome_js_unicode_table" -version = "0.0.1" -authors = ["Rome Tools and Contributors"] -license.workspace = true -description = "Unicode table for JavaScript IDs" +edition.workspace = true +name = "rome_js_unicode_table" +version = "0.0.1" +authors = ["Rome Tools and Contributors"] +license.workspace = true +description = "Unicode table for JavaScript IDs" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_js_parser/index.html" +documentation = "https://rustdocs.rome.tools/rome_js_parser/index.html" [dependencies] diff --git a/crates/rome_json_analyze/Cargo.toml b/crates/rome_json_analyze/Cargo.toml index 8ec726eb2f3..4ab4af32dd8 100644 --- a/crates/rome_json_analyze/Cargo.toml +++ b/crates/rome_json_analyze/Cargo.toml @@ -1,29 +1,29 @@ [package] -name = "rome_json_analyze" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_json_analyze" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_analyze = { workspace = true } +rome_analyze = { workspace = true } rome_json_syntax = { workspace = true } -rome_rowan = { workspace = true } -rome_console = { workspace = true } +rome_rowan = { workspace = true } +rome_console = { workspace = true } rome_diagnostics = { workspace = true } -lazy_static = { workspace = true } +lazy_static = { workspace = true } [dev-dependencies] -rome_deserialize = { workspace = true } -rome_json_parser = { workspace = true } +rome_deserialize = { workspace = true } +rome_json_parser = { workspace = true } rome_json_factory = { workspace = true } -tests_macros = { workspace = true } -rome_text_edit = { workspace = true } -insta = { workspace = true, features = ["glob"] } -countme = { workspace = true, features = ["enable"] } -similar = "2.1.0" -json_comments = "0.2.1" -rome_service = { workspace = true } +tests_macros = { workspace = true } +rome_text_edit = { workspace = true } +insta = { workspace = true, features = ["glob"] } +countme = { workspace = true, features = ["enable"] } +similar = "2.1.0" +json_comments = "0.2.1" +rome_service = { workspace = true } diff --git a/crates/rome_json_factory/Cargo.toml b/crates/rome_json_factory/Cargo.toml index a38da662647..93ccf463aa1 100644 --- a/crates/rome_json_factory/Cargo.toml +++ b/crates/rome_json_factory/Cargo.toml @@ -1,15 +1,15 @@ [package] -name = "rome_json_factory" -version = "0.0.1" -edition.workspace = true -authors.workspace = true +name = "rome_json_factory" +version = "0.0.1" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true -description = "Utilities to create JSON AST for rome_json_parser" -documentation = "https://rustdocs.rome.tools/rome_json_parser/index.html" +license.workspace = true +description = "Utilities to create JSON AST for rome_json_parser" +documentation = "https://rustdocs.rome.tools/rome_json_parser/index.html" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } +rome_rowan = { workspace = true } rome_json_syntax = { workspace = true } diff --git a/crates/rome_json_formatter/Cargo.toml b/crates/rome_json_formatter/Cargo.toml index 7b622800250..d2e9aaa5192 100644 --- a/crates/rome_json_formatter/Cargo.toml +++ b/crates/rome_json_formatter/Cargo.toml @@ -1,34 +1,34 @@ [package] -name = "rome_json_formatter" -version = "0.0.1" -edition.workspace = true -authors.workspace = true +name = "rome_json_formatter" +version = "0.0.1" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true -categories = ["development-tools"] -documentation = "https://rustdocs.rome.tools/rome_js_formatter/index.html" -description = "Rome's JSON formatter" -homepage.workspace = true +license.workspace = true +categories = ["development-tools"] +documentation = "https://rustdocs.rome.tools/rome_js_formatter/index.html" +description = "Rome's JSON formatter" +homepage.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] rome_json_syntax = { workspace = true } -rome_formatter = { workspace = true } -rome_rowan = { workspace = true } +rome_formatter = { workspace = true } +rome_rowan = { workspace = true } [dev-dependencies] -rome_parser = { workspace = true } +rome_parser = { workspace = true } rome_formatter_test = { workspace = true } -rome_fs = { workspace = true } -rome_json_parser = { workspace = true } -rome_json_factory = { workspace = true } -serde = { version = "1", features = ["derive"] } -serde_json = "1" -tests_macros = { workspace = true } -insta = { workspace = true, features = ["glob"] } -rome_diagnostics = { workspace = true } -countme = { workspace = true, features = ["enable"] } +rome_fs = { workspace = true } +rome_json_parser = { workspace = true } +rome_json_factory = { workspace = true } +serde = { version = "1", features = ["derive"] } +serde_json = "1" +tests_macros = { workspace = true } +insta = { workspace = true, features = ["glob"] } +rome_diagnostics = { workspace = true } +countme = { workspace = true, features = ["enable"] } # cargo-workspaces metadata [package.metadata.workspaces] diff --git a/crates/rome_json_parser/Cargo.toml b/crates/rome_json_parser/Cargo.toml index 7eb13ad87b4..b2f13adb03d 100644 --- a/crates/rome_json_parser/Cargo.toml +++ b/crates/rome_json_parser/Cargo.toml @@ -1,30 +1,30 @@ [package] -name = "rome_json_parser" -version = "0.0.1" -edition.workspace = true -authors.workspace = true +name = "rome_json_parser" +version = "0.0.1" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true -description = "An extremely fast JSON parser" -documentation = "https://rustdocs.rome.tools/rome_json_parser/index.html" -categories = ["parser-implementations", "development-tools"] -homepage.workspace = true +license.workspace = true +description = "An extremely fast JSON parser" +documentation = "https://rustdocs.rome.tools/rome_json_parser/index.html" +categories = ["parser-implementations", "development-tools"] +homepage.workspace = true [dependencies] -rome_rowan = { workspace = true } -rome_console = { workspace = true } -rome_diagnostics = { workspace = true } -rome_json_syntax = { workspace = true } -rome_json_factory = { workspace = true } +rome_rowan = { workspace = true } +rome_console = { workspace = true } +rome_diagnostics = { workspace = true } +rome_json_syntax = { workspace = true } +rome_json_factory = { workspace = true } rome_js_unicode_table = { workspace = true } -rome_parser = { workspace = true } -tracing = { workspace = true } +rome_parser = { workspace = true } +tracing = { workspace = true } [dev-dependencies] -tests_macros = { workspace = true } -quickcheck = "1.0.3" +tests_macros = { workspace = true } +quickcheck = "1.0.3" quickcheck_macros = "1.0.0" -insta = { workspace = true } +insta = { workspace = true } # cargo-workspaces metadata [package.metadata.workspaces] diff --git a/crates/rome_json_syntax/Cargo.toml b/crates/rome_json_syntax/Cargo.toml index 3164d6e9d5c..db1b7d2dd7f 100644 --- a/crates/rome_json_syntax/Cargo.toml +++ b/crates/rome_json_syntax/Cargo.toml @@ -1,12 +1,12 @@ [package] -name = "rome_json_syntax" -version = "0.0.1" -edition.workspace = true -authors.workspace = true -description = "SyntaxKind and common rowan definitions for rome_json_parser" -license.workspace = true +name = "rome_json_syntax" +version = "0.0.1" +edition.workspace = true +authors.workspace = true +description = "SyntaxKind and common rowan definitions for rome_json_parser" +license.workspace = true repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_json_parser/index.html" +documentation = "https://rustdocs.rome.tools/rome_json_parser/index.html" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/rome_lsp/Cargo.toml b/crates/rome_lsp/Cargo.toml index 6b4fe6b503b..172ef3bc4fd 100644 --- a/crates/rome_lsp/Cargo.toml +++ b/crates/rome_lsp/Cargo.toml @@ -1,33 +1,33 @@ [package] -name = "rome_lsp" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_lsp" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -serde_json = "1.0.74" -serde = { version = "1.0.133", features = ["derive"] } -anyhow = "1.0.52" -indexmap = { workspace = true } -rome_fs = { workspace = true } -rome_service = { workspace = true } +serde_json = "1.0.74" +serde = { version = "1.0.133", features = ["derive"] } +anyhow = "1.0.52" +indexmap = { workspace = true } +rome_fs = { workspace = true } +rome_service = { workspace = true } rome_js_formatter = { workspace = true } -rome_formatter = { workspace = true } -rome_analyze = { workspace = true } -rome_diagnostics = { workspace = true } -rome_rowan = { workspace = true } -rome_console = { workspace = true } -rome_text_edit = { workspace = true } -tokio = { workspace = true, features = ["rt", "io-std"] } -tower-lsp = { version = "0.19.0" } -tracing = { workspace = true, features = ["attributes"] } -futures = "0.3" +rome_formatter = { workspace = true } +rome_analyze = { workspace = true } +rome_diagnostics = { workspace = true } +rome_rowan = { workspace = true } +rome_console = { workspace = true } +rome_text_edit = { workspace = true } +tokio = { workspace = true, features = ["rt", "io-std"] } +tower-lsp = { version = "0.19.0" } +tracing = { workspace = true, features = ["attributes"] } +futures = "0.3" [dev-dependencies] -tower = { version = "0.4.12", features = ["timeout"] } -tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] } +tower = { version = "0.4.12", features = ["timeout"] } +tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] } proptest = "1.0.0" diff --git a/crates/rome_markup/Cargo.toml b/crates/rome_markup/Cargo.toml index 7121e3a2a3a..3477bf7ed39 100644 --- a/crates/rome_markup/Cargo.toml +++ b/crates/rome_markup/Cargo.toml @@ -1,18 +1,18 @@ [package] -name = "rome_markup" -version = "0.0.1" -description = "Macro to write text using a HTML-like syntax" -license.workspace = true -edition.workspace = true -authors.workspace = true +name = "rome_markup" +version = "0.0.1" +description = "Macro to write text using a HTML-like syntax" +license.workspace = true +edition.workspace = true +authors.workspace = true repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_markup/index.html" +documentation = "https://rustdocs.rome.tools/rome_markup/index.html" [lib] proc-macro = true [dependencies] -proc-macro2 = "1.0.36" -quote = "1.0.14" +proc-macro2 = "1.0.36" +quote = "1.0.14" proc-macro-error = { version = "1.0.4", default-features = false } diff --git a/crates/rome_migrate/Cargo.toml b/crates/rome_migrate/Cargo.toml index 14c22952ea0..9f24619a677 100644 --- a/crates/rome_migrate/Cargo.toml +++ b/crates/rome_migrate/Cargo.toml @@ -1,17 +1,16 @@ [package] -name = "rome_migrate" +name = "rome_migrate" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } +rome_rowan = { workspace = true } rome_json_syntax = { workspace = true } -rome_analyze = { workspace = true} -rome_diagnostics = { workspace = true} -lazy_static = { workspace = true } +rome_analyze = { workspace = true } +rome_diagnostics = { workspace = true } +lazy_static = { workspace = true } [dev-dependencies] rome_json_parser = { workspace = true } - diff --git a/crates/rome_parser/Cargo.toml b/crates/rome_parser/Cargo.toml index 36cc80d30d1..16fbb419421 100644 --- a/crates/rome_parser/Cargo.toml +++ b/crates/rome_parser/Cargo.toml @@ -1,16 +1,16 @@ [package] -name = "rome_parser" -version = "0.0.1" -edition.workspace = true -authors.workspace = true -description = "Shared infrastructure for Rome's parser" +name = "rome_parser" +version = "0.0.1" +edition.workspace = true +authors.workspace = true +description = "Shared infrastructure for Rome's parser" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_parser/index.html" -license.workspace = true +documentation = "https://rustdocs.rome.tools/rome_parser/index.html" +license.workspace = true [dependencies] -rome_console = { workspace = true } +rome_console = { workspace = true } rome_diagnostics = { workspace = true } -rome_rowan = { workspace = true } -drop_bomb = "0.1.5" +rome_rowan = { workspace = true } +drop_bomb = "0.1.5" diff --git a/crates/rome_rowan/Cargo.toml b/crates/rome_rowan/Cargo.toml index 7961fc16dcd..71a102c2bc9 100644 --- a/crates/rome_rowan/Cargo.toml +++ b/crates/rome_rowan/Cargo.toml @@ -1,35 +1,33 @@ [package] -name = "rome_rowan" -version = "0.0.1" -authors = ["Aleksey Kladov "] -license = "MIT OR Apache-2.0" -description = "Library for generic lossless syntax trees" -edition.workspace = true +name = "rome_rowan" +version = "0.0.1" +authors = ["Aleksey Kladov "] +license = "MIT OR Apache-2.0" +description = "Library for generic lossless syntax trees" +edition.workspace = true repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_rowan/index.html" +documentation = "https://rustdocs.rome.tools/rome_rowan/index.html" [dependencies] -rustc-hash = { workspace = true } -hashbrown = { version = "0.12.3", features = [ - "inline-more", -], default-features = false } -rome_text_size = { workspace = true} -memoffset = "0.8.0" -countme = { workspace = true } -serde = { version = "1.0.133", optional = true, default-features = false } +rustc-hash = { workspace = true } +hashbrown = { version = "0.12.3", features = ["inline-more"], default-features = false } +rome_text_size = { workspace = true } +memoffset = "0.8.0" +countme = { workspace = true } +serde = { version = "1.0.133", optional = true, default-features = false } rome_text_edit = { workspace = true } -schemars = { version = "0.8.10", optional = true } -tracing = { workspace = true } +schemars = { version = "0.8.10", optional = true } +tracing = { workspace = true } [dev-dependencies] -quickcheck = "1.0.3" +quickcheck = "1.0.3" quickcheck_macros = "1.0.0" -serde_json = "1.0.79" -iai = "0.1.1" +serde_json = "1.0.79" +iai = "0.1.1" [features] serde = ["dep:serde", "schemars", "rome_text_size/serde"] [[bench]] -name = "mutation" +name = "mutation" harness = false diff --git a/crates/rome_service/Cargo.toml b/crates/rome_service/Cargo.toml index e642760eca9..ea860e9fc2c 100644 --- a/crates/rome_service/Cargo.toml +++ b/crates/rome_service/Cargo.toml @@ -1,44 +1,50 @@ [package] -name = "rome_service" -version = "0.0.0" -edition.workspace = true -authors.workspace = true +name = "rome_service" +version = "0.0.0" +edition.workspace = true +authors.workspace = true repository.workspace = true -license.workspace = true +license.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -dashmap = { workspace = true } -serde = { version = "1.0.133", features = ["derive"] } -serde_json = { version = "1.0.74", features = ["raw_value"] } -rome_analyze = { workspace = true, features = ["serde"] } -rome_console = { workspace = true } -rome_diagnostics = { workspace = true } -rome_formatter = { workspace = true, features = ["serde"] } -rome_fs = { workspace = true, features = ["serde"] } -rome_flags = { workspace = true } -rome_js_analyze = { workspace = true } -rome_js_syntax = { workspace = true, features = ["serde"] } -rome_parser = { workspace = true } -rome_js_parser = { workspace = true } -rome_js_factory = { workspace = true, optional = true } -rome_js_formatter = { workspace = true, features = ["serde"] } -rome_js_semantic = { workspace = true } -rome_json_parser = { workspace = true } -rome_json_syntax = { workspace = true } +dashmap = { workspace = true } +serde = { version = "1.0.133", features = ["derive"] } +serde_json = { version = "1.0.74", features = ["raw_value"] } +rome_analyze = { workspace = true, features = ["serde"] } +rome_console = { workspace = true } +rome_diagnostics = { workspace = true } +rome_formatter = { workspace = true, features = ["serde"] } +rome_fs = { workspace = true, features = ["serde"] } +rome_flags = { workspace = true } +rome_js_analyze = { workspace = true } +rome_js_syntax = { workspace = true, features = ["serde"] } +rome_parser = { workspace = true } +rome_js_parser = { workspace = true } +rome_js_factory = { workspace = true, optional = true } +rome_js_formatter = { workspace = true, features = ["serde"] } +rome_js_semantic = { workspace = true } +rome_json_parser = { workspace = true } +rome_json_syntax = { workspace = true } rome_json_formatter = { workspace = true } -rome_deserialize = { workspace = true } -rome_rowan = { workspace = true, features = ["serde"] } -rome_text_edit = { workspace = true } -indexmap = { workspace = true, features = ["serde"] } -schemars = { version = "0.8.10", features = ["indexmap1"], optional = true } -tracing = { workspace = true, features = ["attributes"] } -bpaf = { workspace = true } +rome_deserialize = { workspace = true } +rome_rowan = { workspace = true, features = ["serde"] } +rome_text_edit = { workspace = true } +indexmap = { workspace = true, features = ["serde"] } +schemars = { version = "0.8.10", features = ["indexmap1"], optional = true } +tracing = { workspace = true, features = ["attributes"] } +bpaf = { workspace = true } [features] -schemars = ["dep:schemars", "rome_js_analyze/schemars", "rome_formatter/serde", "rome_js_factory", "rome_text_edit/schemars"] +schemars = [ + "dep:schemars", + "rome_js_analyze/schemars", + "rome_formatter/serde", + "rome_js_factory", + "rome_text_edit/schemars", +] [dev-dependencies] -insta = { workspace = true } +insta = { workspace = true } tests_macros = { workspace = true } diff --git a/crates/rome_text_edit/Cargo.toml b/crates/rome_text_edit/Cargo.toml index d1a24d6fe63..ef59fc95d0f 100644 --- a/crates/rome_text_edit/Cargo.toml +++ b/crates/rome_text_edit/Cargo.toml @@ -1,18 +1,18 @@ [package] -name = "rome_text_edit" -version = "0.0.1" -authors.workspace = true -edition.workspace = true -license = "MIT OR Apache-2.0" -description = "Simple text editing crate ported from rust-analyzer" +name = "rome_text_edit" +version = "0.0.1" +authors.workspace = true +edition.workspace = true +license = "MIT OR Apache-2.0" +description = "Simple text editing crate ported from rust-analyzer" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_text_edit/index.html" +documentation = "https://rustdocs.rome.tools/rome_text_edit/index.html" [dependencies] rome_text_size = { workspace = true, features = ["serde"] } -serde = { version = "1.0.136", features = ["derive"] } -schemars = { version = "0.8.10", optional = true } -similar = { version = "2.1.0", features = ["unicode"] } +serde = { version = "1.0.136", features = ["derive"] } +schemars = { version = "0.8.10", optional = true } +similar = { version = "2.1.0", features = ["unicode"] } [features] schemars = ["dep:schemars", "rome_text_size/schemars"] diff --git a/crates/rome_text_size/Cargo.toml b/crates/rome_text_size/Cargo.toml index 64a30223d21..c5f001162e0 100644 --- a/crates/rome_text_size/Cargo.toml +++ b/crates/rome_text_size/Cargo.toml @@ -1,27 +1,24 @@ [package] -name = "rome_text_size" +name = "rome_text_size" version = "0.0.1" edition = "2018" -authors = [ - "Aleksey Kladov ", - "Christopher Durham (CAD97) " -] -description = "Fork of the crate text_size" -license = "MIT OR Apache-2.0" +authors = ["Aleksey Kladov ", "Christopher Durham (CAD97) "] +description = "Fork of the crate text_size" +license = "MIT OR Apache-2.0" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_text_size/index.html" +documentation = "https://rustdocs.rome.tools/rome_text_size/index.html" [dependencies] -serde = { version = "1.0", optional = true, default_features = false } +serde = { version = "1.0", optional = true, default_features = false } schemars = { version = "0.8.10", optional = true } [dev-dependencies] -serde_test = "1.0" +serde_test = "1.0" static_assertions = "1.1" [[test]] -name = "serde" -path = "tests/serde.rs" +name = "serde" +path = "tests/serde.rs" required-features = ["serde"] diff --git a/crates/rome_wasm/Cargo.toml b/crates/rome_wasm/Cargo.toml index b51c2e7599b..92e10fe960b 100644 --- a/crates/rome_wasm/Cargo.toml +++ b/crates/rome_wasm/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "rome_wasm" -version = "0.0.0" -edition = "2021" -authors = ["Rome Tools Developers and Contributors"] -repository = "https://github.com/rome/tools" +name = "rome_wasm" +version = "0.0.0" +edition = "2021" +authors = ["Rome Tools Developers and Contributors"] +repository = "https://github.com/rome/tools" description = "WebAssembly bindings to the Rome Workspace API" -license = "MIT" +license = "MIT" [lib] @@ -15,13 +15,13 @@ crate-type = ["cdylib", "rlib"] default = ["console_error_panic_hook"] [dependencies] -wasm-bindgen = { version = "0.2.82", features = ["serde-serialize"] } -serde = "1.0.136" +wasm-bindgen = { version = "0.2.82", features = ["serde-serialize"] } +serde = "1.0.136" serde-wasm-bindgen = "0.4.5" -js-sys = "0.3.59" -rome_service = { path = "../../crates/rome_service" } -rome_console = { workspace = true } -rome_diagnostics = { path = "../../crates/rome_diagnostics" } +js-sys = "0.3.59" +rome_service = { path = "../../crates/rome_service" } +rome_console = { workspace = true } +rome_diagnostics = { path = "../../crates/rome_diagnostics" } # The `console_error_panic_hook` crate provides better debugging of panics by # logging them with `console.error`. This is great for development, but requires @@ -31,10 +31,10 @@ console_error_panic_hook = { version = "0.1.6", optional = true } [build-dependencies] -serde_json = "1.0.79" -rome_service = { workspace = true, features = ["schemars"] } -rome_rowan = { workspace = true } -rome_js_factory = { workspace = true } +serde_json = "1.0.79" +rome_service = { workspace = true, features = ["schemars"] } +rome_rowan = { workspace = true } +rome_js_factory = { workspace = true } rome_js_formatter = { workspace = true } -schemars = "0.8.10" -quote = "1.0.14" +schemars = "0.8.10" +quote = "1.0.14" diff --git a/crates/tests_macros/Cargo.toml b/crates/tests_macros/Cargo.toml index b886821ad08..730a9c95c8b 100644 --- a/crates/tests_macros/Cargo.toml +++ b/crates/tests_macros/Cargo.toml @@ -1,7 +1,7 @@ [package] -name = "tests_macros" -version = "0.0.0" -description = "" +name = "tests_macros" +version = "0.0.0" +description = "" license.workspace = true edition.workspace = true @@ -9,9 +9,9 @@ edition.workspace = true proc-macro = true [dependencies] -proc-macro2 = "1.0.36" -syn = "1.0.85" -globwalk = "0.8.1" -case = "1.0.0" -quote = "1.0.14" +proc-macro2 = "1.0.36" +syn = "1.0.85" +globwalk = "0.8.1" +case = "1.0.0" +quote = "1.0.14" proc-macro-error = "1.0.4" diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 5cd9028c067..e6098d95019 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -1,9 +1,7 @@ [package] name = "rome_fuzz" version = "0.0.0" -authors = [ - "Addison Crump ", -] +authors = ["Addison Crump "] publish = false edition = "2021" diff --git a/justfile b/justfile index f9186612245..e650c7d4da9 100644 --- a/justfile +++ b/justfile @@ -1,15 +1,20 @@ _default: just --list -u +alias f := format +alias t := test +alias r := check-ready + + # Installs the tools needed to develop with Rome install-tools: cargo install binstall - cargo binstall cargo-insta cargo-nextest wasm-pack + cargo binstall cargo-insta cargo-nextest taplo-cli wasm-pack # Upgrades the tools needed to develop with Rome upgrade-tools: cargo install binstall --force - cargo binstall cargo-insta cargo-nextest wasm-pack --force + cargo binstall cargo-insta cargo-nextest taplo-cli wasm-pack --force # Generate all files across crates and tools. You rarely want to use it locally. codegen: @@ -48,6 +53,17 @@ promote-rule rulename group: -cargo test -p rome_js_analyze -- {{snakecase(rulename)}} cargo insta accept + +# Format Rust files and TOML files +format: + cargo format + taplo format + +# Run tests of all crates +test: + cargo nextest run + + [unix] _touch file: touch {{file}} diff --git a/taplo.toml b/taplo.toml new file mode 100644 index 00000000000..2d9d8802db2 --- /dev/null +++ b/taplo.toml @@ -0,0 +1,6 @@ +include = ["Cargo.toml", "crates/**/Cargo.toml", ".cargo/config.toml"] +exclude = ["./benchmark/**/*.toml"] + +[formatting] +align_entries = true +column_width = 120 diff --git a/xtask/bench/Cargo.toml b/xtask/bench/Cargo.toml index 219cce49c53..6b9cd4c412c 100644 --- a/xtask/bench/Cargo.toml +++ b/xtask/bench/Cargo.toml @@ -14,14 +14,14 @@ rome_json_parser = { path = "../../crates/rome_json_parser" } rome_json_syntax = { path = "../../crates/rome_json_syntax" } rome_parser = { path = "../../crates/rome_parser" } rome_diagnostics = { path = "../../crates/rome_diagnostics" } -rome_formatter = { path = "../../crates/rome_formatter"} -rome_js_formatter = { path = "../../crates/rome_js_formatter"} -rome_analyze = { path = "../../crates/rome_analyze"} -rome_js_analyze = { path = "../../crates/rome_js_analyze"} -rome_rowan = { path = "../../crates/rome_rowan"} +rome_formatter = { path = "../../crates/rome_formatter" } +rome_js_formatter = { path = "../../crates/rome_js_formatter" } +rome_analyze = { path = "../../crates/rome_analyze" } +rome_js_analyze = { path = "../../crates/rome_js_analyze" } +rome_rowan = { path = "../../crates/rome_rowan" } -pico-args = { version = "0.5.0", features=["eq-separator"] } +pico-args = { version = "0.5.0", features = ["eq-separator"] } timing = "0.2.3" criterion = "0.4.0" regex = "1.5.5" @@ -34,7 +34,7 @@ countme = { workspace = true } # dhat-on dhat = { version = "0.3.0", optional = true } -humansize = {version = "2.1.2", optional = true } +humansize = { version = "2.1.2", optional = true } [target.'cfg(target_os = "windows")'.dependencies] mimalloc = "0.1.29" diff --git a/xtask/codegen/Cargo.toml b/xtask/codegen/Cargo.toml index 2da7450b822..8c53efeb638 100644 --- a/xtask/codegen/Cargo.toml +++ b/xtask/codegen/Cargo.toml @@ -7,7 +7,7 @@ publish = false [dependencies] xtask = { path = '../', version = "0.0" } anyhow = "1.0.52" -pico-args = { version = "0.5.0", features=["eq-separator"] } +pico-args = { version = "0.5.0", features = ["eq-separator"] } quote = "1.0.14" proc-macro2 = { version = "1.0.36", features = ["span-locations"] } ungrammar = "1.14.9" @@ -31,11 +31,31 @@ rome_json_formatter = { path = "../../crates/rome_json_formatter", optional = tr rome_json_parser = { path = "../../crates/rome_json_parser", optional = true } rome_diagnostics = { path = "../../crates/rome_diagnostics", optional = true } rome_aria = { path = "../../crates/rome_aria", optional = true } -rome_service = { path = "../../crates/rome_service", features = ["schemars"], optional = true } +rome_service = { path = "../../crates/rome_service", features = [ + "schemars", +], optional = true } schemars = { version = "0.8.10", optional = true } serde_json = { version = "1.0.74", optional = true } [features] -configuration = ["rome_analyze", "rome_js_analyze", "rome_js_syntax", "rome_json_analyze", "rome_json_syntax", "pulldown-cmark"] +configuration = [ + "rome_analyze", + "rome_js_analyze", + "rome_js_syntax", + "rome_json_analyze", + "rome_json_syntax", + "pulldown-cmark", +] website = ["rome_service"] -schema = ["schemars", "serde_json", "rome_rowan", "rome_service", "rome_js_syntax", "rome_js_factory", "rome_js_formatter", "rome_json_formatter", "rome_json_parser", "rome_diagnostics"] +schema = [ + "schemars", + "serde_json", + "rome_rowan", + "rome_service", + "rome_js_syntax", + "rome_js_factory", + "rome_js_formatter", + "rome_json_formatter", + "rome_json_parser", + "rome_diagnostics", +] diff --git a/xtask/contributors/Cargo.toml b/xtask/contributors/Cargo.toml index aa0c4e9b8a9..2be232fa65c 100644 --- a/xtask/contributors/Cargo.toml +++ b/xtask/contributors/Cargo.toml @@ -10,4 +10,4 @@ serde_json = { version = "1.0.74" } xtask = { path = '../', version = "0.0" } ureq = { version = "2.4.0", features = ["json"] } pico-args = "0.5.0" -html-escape = "0.2.11" \ No newline at end of file +html-escape = "0.2.11" diff --git a/xtask/coverage/Cargo.toml b/xtask/coverage/Cargo.toml index 92114cadab0..48499f6bc09 100644 --- a/xtask/coverage/Cargo.toml +++ b/xtask/coverage/Cargo.toml @@ -13,7 +13,7 @@ rome_js_parser = { path = "../../crates/rome_js_parser" } rome_js_semantic = { path = "../../crates/rome_js_semantic" } rome_diagnostics = { path = "../../crates/rome_diagnostics" } rome_parser = { path = "../../crates/rome_parser" } -pico-args = { version = "0.5.0", features=["eq-separator"] } +pico-args = { version = "0.5.0", features = ["eq-separator"] } ascii_table = "4.0.2" colored = "2.0.0" yastl = "0.1.2" From d238e581a913249732f87bc8d0151921a3e93cb2 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Thu, 22 Jun 2023 09:46:12 +0100 Subject: [PATCH 3/3] chore: review contribution guidelines --- .cargo/config.toml | 18 ++-- CONTRIBUTING.md | 102 +++++++----------- Cargo.toml | 80 +++++++------- crates/rome_analyze/CONTRIBUTING.md | 2 +- crates/rome_analyze/Cargo.toml | 14 +-- crates/rome_aria/Cargo.toml | 8 +- crates/rome_aria_metadata/Cargo.toml | 12 +-- crates/rome_cli/Cargo.toml | 60 +++++------ crates/rome_console/Cargo.toml | 16 +-- crates/rome_control_flow/Cargo.toml | 8 +- crates/rome_css_factory/Cargo.toml | 10 +- crates/rome_css_syntax/Cargo.toml | 8 +- crates/rome_deserialize/Cargo.toml | 12 +-- crates/rome_diagnostics/Cargo.toml | 28 ++--- crates/rome_diagnostics_categories/Cargo.toml | 12 +-- crates/rome_diagnostics_macros/Cargo.toml | 14 +-- crates/rome_flags/Cargo.toml | 8 +- crates/rome_formatter/Cargo.toml | 26 ++--- crates/rome_formatter_test/Cargo.toml | 20 ++-- crates/rome_fs/Cargo.toml | 18 ++-- crates/rome_js_analyze/Cargo.toml | 44 ++++---- crates/rome_js_factory/Cargo.toml | 12 +-- crates/rome_js_formatter/Cargo.toml | 44 ++++---- crates/rome_js_parser/Cargo.toml | 30 +++--- crates/rome_js_semantic/Cargo.toml | 14 +-- crates/rome_js_syntax/Cargo.toml | 14 +-- crates/rome_js_unicode_table/Cargo.toml | 10 +- crates/rome_json_analyze/Cargo.toml | 26 ++--- crates/rome_json_factory/Cargo.toml | 12 +-- crates/rome_json_formatter/Cargo.toml | 24 ++--- crates/rome_json_parser/Cargo.toml | 22 ++-- crates/rome_json_syntax/Cargo.toml | 8 +- crates/rome_lsp/Cargo.toml | 28 ++--- crates/rome_markup/Cargo.toml | 12 +-- crates/rome_migrate/Cargo.toml | 8 +- crates/rome_parser/Cargo.toml | 10 +- crates/rome_rowan/Cargo.toml | 20 ++-- crates/rome_service/Cargo.toml | 28 ++--- crates/rome_text_edit/Cargo.toml | 10 +- crates/rome_text_size/Cargo.toml | 6 +- crates/rome_wasm/Cargo.toml | 24 ++--- crates/tests_macros/Cargo.toml | 14 +-- justfile | 19 +++- taplo.toml | 1 + 44 files changed, 450 insertions(+), 466 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 3d97b98ed3e..7627a3b074d 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,12 +1,14 @@ [alias] -lint = "clippy --workspace --all-targets --verbose -- --deny warnings -W clippy::cargo -W clippy::dbg_macro -A clippy::cargo_common_metadata -A clippy::multiple_crate_versions" -format = "fmt --all --verbose" +bench_analyzer = "run -p xtask_bench --release -- --feature analyzer" +bench_formatter = "run -p xtask_bench --release -- --feature formatter" +bench_parser = "run -p xtask_bench --release -- --feature parser" codegen = "run -p xtask_codegen --" +codegen-bindings = "run -p xtask_codegen --features schema -- bindings" codegen-configuration = "run -p xtask_codegen --features configuration -- configuration" codegen-schema = "run -p xtask_codegen --features schema -- schema" -codegen-bindings = "run -p xtask_codegen --features schema -- bindings" codegen-website = "run -p xtask_codegen --features website -- website" -lintdoc = "run -p xtask_lintdoc --" +contributors = "run -p xtask_contributors --" +coverage = "run -p xtask_coverage --profile=release-with-debug --" documentation = """ doc \ -p rome_*formatter \ @@ -27,13 +29,11 @@ documentation = """ -p rome_rowan --no-deps """ -bench_parser = "run -p xtask_bench --release -- --feature parser" -bench_formatter = "run -p xtask_bench --release -- --feature formatter" -bench_analyzer = "run -p xtask_bench --release -- --feature analyzer" -coverage = "run -p xtask_coverage --profile=release-with-debug --" +format = "fmt --all --verbose" +lint = "clippy --workspace --all-targets --verbose -- --deny warnings -W clippy::cargo -W clippy::dbg_macro -A clippy::cargo_common_metadata -A clippy::multiple_crate_versions" +lintdoc = "run -p xtask_lintdoc --" rome-cli = "run -p rome_cli --release --" rome-cli-dev = "run -p rome_cli --" -contributors = "run -p xtask_contributors --" [profile.release] lto = true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index de4494bf0ea..a3dc7e8f9a5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -22,46 +22,68 @@ Rome can be used via the `rome` bin in the `rome_cli` package: cargo run --bin rome -- --help ``` -## Testing +## Install the required tools -To run the tests, just run +We use [Just](https://just.systems/man/en/) to run scripts or tasks, to make our +life easier. + +You can install `just` using cargo: ```shell -cargo test +cargo install just ``` -Or +But we **highly recommend** to [install it using an OS package manager](https://github.com/casey/just#packages), +so you won't need to prefix the every command with `cargo`. + +Once installed, run the following command install the required tools: ```shell -cargo t +just install-tools ``` -If you want to test run tests for a single crates, just change path inside the root of the crate you want to test. -For example, if you want to run the tests of the `rome_cli` crate, you would run: +And you're good to go hack with Rome and Rust! 🚀 -```shell -cd ./crates/rome_cli -cargo t -``` +## Testing + +To run the tests, just run -If you to run only the doctests, you would need to pass an argument to the command: ```shell -cargo test --doc +just test ``` -In some crates, we use snapshot testing. The majority of snapshot testing is done using [`insta`](https://insta.rs). +If you want to test the tests for a single crate: -Make sure to install it globally via `cargo`: +```shell +just test-crate rome_cli +``` +If you to run only the doctests, you would need to pass an argument to the command: ```shell -cargo install cargo-insta +jus test-doc ``` +In some crates, we use snapshot testing. The majority of snapshot testing is done using [`insta`](https://insta.rs). +`insta` is already installed by the command `just install-tools`. + When a snapshot test fails, you can run: - `cargo insta accept` to accept all the changes and update all the snapshots; - `cargo insta reject` to reject all the changes; - `cargo insta review` to review snapshots singularly; +## Checks + +When you finished your work, and you are ready to **commit and open a PR**, +run the following command: + +```shell +just ready +``` + +This command will run the same commands of the CI: format, lint, tests and code generation. +Eventually everything should be "green" 🟢 and commit all the code that was +generated. + ## Language Server and VS Code Extension Development The Rome language server is the binary crate `rome` which can be built using the command: @@ -145,12 +167,6 @@ pnpm install pnpm start ``` -## Checks - -- `cargo lint` is a cargo alias that runs [`clippy`](https://github.com/rust-lang/rust-clippy) - rust official linter - under the hood; -- `cargo format` is a cargo alias that runs [`rust-fmt`](https://github.com/rust-lang/rustfmt) - rust official formatter - under the hood; -- `cargo test` will run the suite; make sure to run this command from the root of the project, so it will run the tests of all the internal crates; - ### Generated files If you work on some parser and you create new nodes or modify existing ones, will need to run a command to update some files that are auto-generated. @@ -299,45 +315,3 @@ Even minor versions are dedicated to official releases, e.g. `*.6.*`. ### Playground - [run the playground locally](/website/playground/README.md) - -### Using just - -A lot of the commands above are mor easily accessible using our [Just](https://just.systems/man/en/) recipes. For example: - -### Install just - -You can install `just` using cargo: - -```shell -cargo install just -``` - -Or, using different methods, like explained in their [documentation](https://just.systems/man/en/chapter_4.html). - -It's advised to install `just` using a package manager, so -you can run `just` as a binary. - -### Usage - -```ignore -❯ just -just --list -u -Available recipes: - codegen - documentation - new-lintrule path name - test-lintrule name - check-ready -``` - -All the necessary `codegen` can be called using - -```shell -just codegen -``` - -After all changes are done, the code can be checked if is ready to be pushed with - -```shell -just check-ready -``` diff --git a/Cargo.toml b/Cargo.toml index 1cae9057905..929d617ba6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,6 @@ [workspace] # Use the newer version of the cargo resolver # https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions -resolver = "2" members = [ "crates/*", "xtask/bench", @@ -11,78 +10,79 @@ members = [ "xtask/libs_bench", "xtask/contributors", ] +resolver = "2" [workspace.package] -edition = "2021" authors = ["Rome Tools Developers and Contributors"] +edition = "2021" +homepage = "https://rome.tools" license = "MIT" repository = "https://github.com/rome/tools" -homepage = "https://rome.tools" [profile.release-with-debug] -inherits = "release" debug = true +inherits = "release" [workspace.dependencies] -indexmap = "1.9.1" -tracing = { version = "0.1.31", default-features = false, features = ["std"] } +countme = "3.0.1" dashmap = "5.4.0" +indexmap = "1.9.1" rustc-hash = "1.1.0" -countme = "3.0.1" +tracing = { version = "0.1.31", default-features = false, features = ["std"] } # pinning to version 1.18 to avoid multiple versions of windows-sys as dependency -tokio = { version = "~1.18.5" } +bitflags = "2.2.1" +bpaf = { version = "0.8.0", features = ["derive"] } insta = "1.21.2" -quote = { version = "1.0.21" } lazy_static = "1.4.0" -bpaf = { version = "0.8.0", features = ["derive"] } -bitflags = "2.2.1" -rome_rowan = { version = "0.0.1", path = "./crates/rome_rowan" } +quote = { version = "1.0.21" } +rome_analyze = { path = "./crates/rome_analyze" } +rome_aria = { path = "./crates/rome_aria" } +rome_aria_metadata = { path = "./crates/rome_aria_metadata" } rome_console = { version = "0.0.1", path = "./crates/rome_console" } -rome_diagnostics = { version = "0.0.1", path = "./crates/rome_diagnostics" } -rome_json_parser = { path = "./crates/rome_json_parser" } +rome_control_flow = { path = "./crates/rome_control_flow" } +rome_css_syntax = { path = "./crates/rome_css_syntax" } rome_deserialize = { version = "0.0.0", path = "./crates/rome_deserialize" } -rome_aria_metadata = { path = "./crates/rome_aria_metadata" } -rome_aria = { path = "./crates/rome_aria" } -rome_formatter = { version = "0.0.1", path = "./crates/rome_formatter" } -rome_service = { path = "./crates/rome_service" } +rome_diagnostics = { version = "0.0.1", path = "./crates/rome_diagnostics" } +rome_diagnostics_categories = { version = "0.0.1", path = "./crates/rome_diagnostics_categories" } +rome_diagnostics_macros = { version = "0.0.1", path = "./crates/rome_diagnostics_macros" } rome_flags = { path = "./crates/rome_flags" } +rome_formatter = { version = "0.0.1", path = "./crates/rome_formatter" } +rome_formatter_test = { path = "./crates/rome_formatter_test" } rome_fs = { path = "./crates/rome_fs" } -rome_text_edit = { version = "0.0.1", path = "./crates/rome_text_edit" } -rome_lsp = { path = "./crates/rome_lsp" } -rome_text_size = { version = "0.0.1", path = "./crates/rome_text_size" } -rome_json_formatter = { path = "./crates/rome_json_formatter" } -rome_json_syntax = { version = "0.0.1", path = "./crates/rome_json_syntax" } -rome_migrate = { path = "./crates/rome_migrate" } +rome_js_analyze = { path = "./crates/rome_js_analyze" } +rome_js_factory = { version = "0.0.2", path = "./crates/rome_js_factory" } rome_js_formatter = { path = "./crates/rome_js_formatter" } -rome_markup = { version = "0.0.1", path = "./crates/rome_markup" } -rome_css_syntax = { path = "./crates/rome_css_syntax" } -rome_diagnostics_macros = { version = "0.0.1", path = "./crates/rome_diagnostics_macros" } -rome_diagnostics_categories = { version = "0.0.1", path = "./crates/rome_diagnostics_categories" } rome_js_parser = { path = "./crates/rome_js_parser" } -rome_js_syntax = { version = "0.0.2", path = "./crates/rome_js_syntax" } -rome_js_factory = { version = "0.0.2", path = "./crates/rome_js_factory" } -rome_parser = { version = "0.0.1", path = "./crates/rome_parser" } -rome_analyze = { path = "./crates/rome_analyze" } -rome_control_flow = { path = "./crates/rome_control_flow" } rome_js_semantic = { path = "./crates/rome_js_semantic" } +rome_js_syntax = { version = "0.0.2", path = "./crates/rome_js_syntax" } rome_js_unicode_table = { version = "0.0.1", path = "./crates/rome_js_unicode_table" } -rome_json_factory = { version = "0.0.1", path = "./crates/rome_json_factory" } -tests_macros = { path = "./crates/tests_macros" } -rome_formatter_test = { path = "./crates/rome_formatter_test" } -rome_js_analyze = { path = "./crates/rome_js_analyze" } rome_json_analyze = { path = "./crates/rome_json_analyze" } +rome_json_factory = { version = "0.0.1", path = "./crates/rome_json_factory" } +rome_json_formatter = { path = "./crates/rome_json_formatter" } +rome_json_parser = { path = "./crates/rome_json_parser" } +rome_json_syntax = { version = "0.0.1", path = "./crates/rome_json_syntax" } +rome_lsp = { path = "./crates/rome_lsp" } +rome_markup = { version = "0.0.1", path = "./crates/rome_markup" } +rome_migrate = { path = "./crates/rome_migrate" } +rome_parser = { version = "0.0.1", path = "./crates/rome_parser" } +rome_rowan = { version = "0.0.1", path = "./crates/rome_rowan" } +rome_service = { path = "./crates/rome_service" } +rome_text_edit = { version = "0.0.1", path = "./crates/rome_text_edit" } +rome_text_size = { version = "0.0.1", path = "./crates/rome_text_size" } schemars = { version = "0.8.10" } smallvec = { version = "1.8.0", features = ["union", "const_new"] } +tests_macros = { path = "./crates/tests_macros" } +tokio = { version = "~1.18.5" } [profile.dev.package.rome_wasm] -opt-level = 1 debug = true +opt-level = 1 [profile.test.package.rome_wasm] -opt-level = 1 debug = true +opt-level = 1 [profile.release.package.rome_wasm] -opt-level = 3 debug = false +opt-level = 3 diff --git a/crates/rome_analyze/CONTRIBUTING.md b/crates/rome_analyze/CONTRIBUTING.md index 2caa356bdb2..8d3a14066e3 100644 --- a/crates/rome_analyze/CONTRIBUTING.md +++ b/crates/rome_analyze/CONTRIBUTING.md @@ -296,7 +296,7 @@ Stage and commit your changes: To test if everything is ready, run the following command: ```shell -> just check-ready +just ready ``` ### Rule configuration diff --git a/crates/rome_analyze/Cargo.toml b/crates/rome_analyze/Cargo.toml index 6a125aa7d75..92f194aeaa3 100644 --- a/crates/rome_analyze/Cargo.toml +++ b/crates/rome_analyze/Cargo.toml @@ -1,21 +1,21 @@ [package] -name = "rome_analyze" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_analyze" +repository.workspace = true +version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } +bitflags.workspace = true rome_console = { workspace = true } rome_diagnostics = { workspace = true } -bitflags.workspace = true +rome_rowan = { workspace = true } rustc-hash = { workspace = true } -serde = { version = "1.0.136", features = ["derive"] } schemars = { version = "0.8.10", optional = true } +serde = { version = "1.0.136", features = ["derive"] } tracing = { workspace = true } diff --git a/crates/rome_aria/Cargo.toml b/crates/rome_aria/Cargo.toml index 1e067ce39fc..e3d7eeb07a7 100644 --- a/crates/rome_aria/Cargo.toml +++ b/crates/rome_aria/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_aria" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_aria" +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/rome_aria_metadata/Cargo.toml b/crates/rome_aria_metadata/Cargo.toml index d97091d02ab..91e2630892a 100644 --- a/crates/rome_aria_metadata/Cargo.toml +++ b/crates/rome_aria_metadata/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_aria_metadata" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_aria_metadata" +repository.workspace = true +version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -12,6 +12,6 @@ license.workspace = true [build-dependencies] -quote = { workspace = true } -proc-macro2 = { version = "1.0.36", features = ["span-locations"] } case = "1.0.0" +proc-macro2 = { version = "1.0.36", features = ["span-locations"] } +quote = { workspace = true } diff --git a/crates/rome_cli/Cargo.toml b/crates/rome_cli/Cargo.toml index b18949d4f49..61627de2dc2 100644 --- a/crates/rome_cli/Cargo.toml +++ b/crates/rome_cli/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_cli" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_cli" +repository.workspace = true +version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [[bin]] @@ -12,37 +12,37 @@ name = "rome" path = "src/main.rs" [dependencies] -rome_formatter = { workspace = true } -rome_diagnostics = { workspace = true } -rome_service = { workspace = true } -rome_flags = { workspace = true } -rome_fs = { workspace = true } -rome_console = { workspace = true } -rome_text_edit = { workspace = true } -rome_lsp = { workspace = true } -rome_deserialize = { workspace = true } -pico-args = { version = "0.5.0", features = ["eq-separator"] } +anyhow = "1.0.52" bpaf = { workspace = true } -tracing = { workspace = true } -tracing-tree = "0.2.2" -tracing-subscriber = { version = "0.3.16", features = ["env-filter"] } -tracing-appender = "0.2" -lazy_static = { workspace = true } -hdrhistogram = { version = "7.5.0", default-features = false } crossbeam = "0.8.1" -rayon = "1.5.1" -serde = { version = "1.0.133", features = ["derive"] } -serde_json = { version = "1.0.74" } -tokio = { workspace = true, features = ["io-std", "io-util", "net", "time", "rt", "sync", "rt-multi-thread", "macros"] } -anyhow = "1.0.52" dashmap = { workspace = true } -rome_text_size = { workspace = true } -rome_json_parser = { workspace = true } +hdrhistogram = { version = "7.5.0", default-features = false } +indexmap = { workspace = true } +lazy_static = { workspace = true } +pico-args = { version = "0.5.0", features = ["eq-separator"] } +rayon = "1.5.1" +rome_console = { workspace = true } +rome_deserialize = { workspace = true } +rome_diagnostics = { workspace = true } +rome_flags = { workspace = true } +rome_formatter = { workspace = true } +rome_fs = { workspace = true } rome_json_formatter = { workspace = true } +rome_json_parser = { workspace = true } rome_json_syntax = { workspace = true } +rome_lsp = { workspace = true } rome_migrate = { workspace = true } rome_rowan = { workspace = true } -indexmap = { workspace = true } +rome_service = { workspace = true } +rome_text_edit = { workspace = true } +rome_text_size = { workspace = true } +serde = { version = "1.0.133", features = ["derive"] } +serde_json = { version = "1.0.74" } +tokio = { workspace = true, features = ["io-std", "io-util", "net", "time", "rt", "sync", "rt-multi-thread", "macros"] } +tracing = { workspace = true } +tracing-appender = "0.2" +tracing-subscriber = { version = "0.3.16", features = ["env-filter"] } +tracing-tree = "0.2.2" [target.'cfg(unix)'.dependencies] libc = "0.2.127" @@ -56,7 +56,7 @@ tikv-jemallocator = "0.5.0" [dev-dependencies] insta = { workspace = true } -tokio = { workspace = true, features = ["io-util"] } -rome_json_formatter = { workspace = true } rome_js_formatter = { workspace = true } +rome_json_formatter = { workspace = true } rome_json_parser = { workspace = true } +tokio = { workspace = true, features = ["io-util"] } diff --git a/crates/rome_console/Cargo.toml b/crates/rome_console/Cargo.toml index 50622e7830d..9a1b30fcde0 100644 --- a/crates/rome_console/Cargo.toml +++ b/crates/rome_console/Cargo.toml @@ -1,22 +1,22 @@ [package] -name = "rome_console" -version = "0.0.1" -edition.workspace = true authors.workspace = true -license.workspace = true description = "Expose utilities to print HTML-syntax messages" -repository.workspace = true documentation = "https://rustdocs.rome.tools/rome_console/index.html" +edition.workspace = true +license.workspace = true +name = "rome_console" +repository.workspace = true +version = "0.0.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_markup = { workspace = true } atty = "0.2.14" +rome_markup = { workspace = true } rome_text_size = { workspace = true } +schemars = { version = "0.8.10", optional = true } +serde = { version = "1.0.133", optional = true, features = ["derive"] } termcolor = "1.1.2" unicode-width = "0.1.9" -serde = { version = "1.0.133", optional = true, features = ["derive"] } -schemars = { version = "0.8.10", optional = true } [dev-dependencies] trybuild = "1.0" diff --git a/crates/rome_control_flow/Cargo.toml b/crates/rome_control_flow/Cargo.toml index 7a78f407f23..8ae4e347f04 100644 --- a/crates/rome_control_flow/Cargo.toml +++ b/crates/rome_control_flow/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_control_flow" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_control_flow" +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/rome_css_factory/Cargo.toml b/crates/rome_css_factory/Cargo.toml index dc143a1acca..bdee7dcf662 100644 --- a/crates/rome_css_factory/Cargo.toml +++ b/crates/rome_css_factory/Cargo.toml @@ -1,14 +1,14 @@ [package] -name = "rome_css_factory" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_css_factory" +repository.workspace = true +version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } rome_css_syntax = { workspace = true } +rome_rowan = { workspace = true } diff --git a/crates/rome_css_syntax/Cargo.toml b/crates/rome_css_syntax/Cargo.toml index ccecf42fe2e..8f6d869dab7 100644 --- a/crates/rome_css_syntax/Cargo.toml +++ b/crates/rome_css_syntax/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_css_syntax" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_css_syntax" +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/rome_deserialize/Cargo.toml b/crates/rome_deserialize/Cargo.toml index 4575dc5fdf0..ece473184d6 100644 --- a/crates/rome_deserialize/Cargo.toml +++ b/crates/rome_deserialize/Cargo.toml @@ -1,20 +1,20 @@ [package] -name = "rome_deserialize" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_deserialize" +repository.workspace = true +version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +indexmap = { workspace = true } rome_console = { workspace = true } rome_diagnostics = { workspace = true } rome_json_parser = { workspace = true } rome_json_syntax = { workspace = true } -tracing = { workspace = true } -indexmap = { workspace = true } rome_rowan = { workspace = true } serde = "1.0.150" serde_json = "1.0.89" +tracing = { workspace = true } diff --git a/crates/rome_diagnostics/Cargo.toml b/crates/rome_diagnostics/Cargo.toml index 02d1f2b3869..f359e86f507 100644 --- a/crates/rome_diagnostics/Cargo.toml +++ b/crates/rome_diagnostics/Cargo.toml @@ -1,12 +1,12 @@ [package] -name = "rome_diagnostics" -version = "0.0.1" authors.workspace = true -edition.workspace = true -license.workspace = true +categories = ["development-tools"] description = "Pretty error reporting library" documentation = "https://rustdocs.rome.tools/rome_diagnostics/index.html" -categories = ["development-tools"] +edition.workspace = true +license.workspace = true +name = "rome_diagnostics" +version = "0.0.1" [[example]] name = "cli" @@ -25,24 +25,24 @@ name = "serde" test = true [dependencies] -rome_rowan = { workspace = true } +backtrace = "0.3.66" +bitflags = "1.3.2" +bpaf = { workspace = true } +pico-args = "0.5.0" rome_console = { workspace = true, features = ["serde_markup"] } -rome_diagnostics_macros = { workspace = true } rome_diagnostics_categories = { workspace = true, features = ["serde"] } +rome_diagnostics_macros = { workspace = true } +rome_rowan = { workspace = true } rome_text_edit = { workspace = true } rome_text_size = { workspace = true } -unicode-width = "0.1.9" +schemars = { version = "0.8.10", optional = true } serde = { version = "1.0.133", features = ["derive"] } termcolor = "1.1.2" -schemars = { version = "0.8.10", optional = true } -bitflags = "1.3.2" -backtrace = "0.3.66" -pico-args = "0.5.0" -bpaf = { workspace = true } +unicode-width = "0.1.9" [features] schema = ["schemars", "rome_text_edit/schemars", "rome_diagnostics_categories/schemars"] [dev-dependencies] -trybuild = "1.0" serde_json = "1.0.74" +trybuild = "1.0" diff --git a/crates/rome_diagnostics_categories/Cargo.toml b/crates/rome_diagnostics_categories/Cargo.toml index 31f7a3bd31b..ef4ed3e8974 100644 --- a/crates/rome_diagnostics_categories/Cargo.toml +++ b/crates/rome_diagnostics_categories/Cargo.toml @@ -1,16 +1,16 @@ [package] -name = "rome_diagnostics_categories" -version = "0.0.1" authors.workspace = true -repository.workspace = true -license.workspace = true -edition.workspace = true description = "Diagnostic categories for rome_diagnostics. It exposes a macro that emits compile-time errors for extranous categories." documentation = "https://rustdocs.rome.tools/rome_diagnostics/index.html" +edition.workspace = true +license.workspace = true +name = "rome_diagnostics_categories" +repository.workspace = true +version = "0.0.1" [dependencies] -serde = { version = "1.0.136", optional = true } schemars = { version = "0.8.10", optional = true } +serde = { version = "1.0.136", optional = true } [build-dependencies] quote = "1.0.14" diff --git a/crates/rome_diagnostics_macros/Cargo.toml b/crates/rome_diagnostics_macros/Cargo.toml index ba1ac7135bc..74b896ebc2c 100644 --- a/crates/rome_diagnostics_macros/Cargo.toml +++ b/crates/rome_diagnostics_macros/Cargo.toml @@ -1,18 +1,18 @@ [package] -name = "rome_diagnostics_macros" -version = "0.0.1" authors.workspace = true -license.workspace = true +description = "A Macro to make a struct type a Rome diagnostic." +documentation = "https://rustdocs.rome.tools/rome_diagnostics/index.html" edition.workspace = true +license.workspace = true +name = "rome_diagnostics_macros" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_diagnostics/index.html" -description = "A Macro to make a struct type a Rome diagnostic." +version = "0.0.1" [lib] proc-macro = true [dependencies] +proc-macro-error = { version = "1.0.4", default-features = false } proc-macro2 = "1.0.36" -syn = "1.0.85" quote = "1.0.14" -proc-macro-error = { version = "1.0.4", default-features = false } +syn = "1.0.85" diff --git a/crates/rome_flags/Cargo.toml b/crates/rome_flags/Cargo.toml index da6dd305fbc..7a2cb9ed90e 100644 --- a/crates/rome_flags/Cargo.toml +++ b/crates/rome_flags/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "rome_flags" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_flags" +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/rome_formatter/Cargo.toml b/crates/rome_formatter/Cargo.toml index f10e14d6f07..cba75f7b30f 100644 --- a/crates/rome_formatter/Cargo.toml +++ b/crates/rome_formatter/Cargo.toml @@ -1,34 +1,34 @@ [package] -name = "rome_formatter" -version = "0.0.1" -edition.workspace = true authors.workspace = true -repository.workspace = true -license.workspace = true description = "Rome's formatter shared infrastructure" documentation = "https://rustdocs.rome.tools/rome_formatter/index.html" +edition.workspace = true +license.workspace = true +name = "rome_formatter" +repository.workspace = true +version = "0.0.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } -tracing = { workspace = true } -serde = { version = "1.0.136", features = ["derive"], optional = true } cfg-if = "1.0.0" -schemars = { version = "0.8.10", optional = true } -rustc-hash = { workspace = true } countme = { workspace = true } drop_bomb = "0.1.5" indexmap = { workspace = true } -unicode-width = "0.1.9" -rome_diagnostics = { workspace = true } rome_console = { workspace = true } +rome_diagnostics = { workspace = true } +rome_rowan = { workspace = true } +rustc-hash = { workspace = true } +schemars = { version = "0.8.10", optional = true } +serde = { version = "1.0.136", features = ["derive"], optional = true } +tracing = { workspace = true } +unicode-width = "0.1.9" [dev-dependencies] +insta = { workspace = true } rome_js_parser = { workspace = true } rome_js_syntax = { workspace = true } -insta = { workspace = true } [features] serde = ["dep:serde", "schemars", "rome_rowan/serde"] diff --git a/crates/rome_formatter_test/Cargo.toml b/crates/rome_formatter_test/Cargo.toml index e1f66e6b36e..9f72b0f76b0 100644 --- a/crates/rome_formatter_test/Cargo.toml +++ b/crates/rome_formatter_test/Cargo.toml @@ -1,25 +1,25 @@ [package] -name = "rome_formatter_test" -version = "0.1.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_formatter_test" +repository.workspace = true +version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -serde = { version = "1", features = ["derive"] } -serde_json = "1" -rome_parser = { workspace = true } +insta = { workspace = true, features = ["glob"] } +rome_console = { workspace = true } rome_diagnostics = { workspace = true } rome_formatter = { workspace = true } -rome_rowan = { workspace = true } -rome_console = { workspace = true } rome_fs = { workspace = true } +rome_parser = { workspace = true } +rome_rowan = { workspace = true } rome_service = { workspace = true } +serde = { version = "1", features = ["derive"] } +serde_json = "1" similar = "2.1.0" similar-asserts = "1.2.0" -insta = { workspace = true, features = ["glob"] } [dev-dependencies] diff --git a/crates/rome_fs/Cargo.toml b/crates/rome_fs/Cargo.toml index 6e488aa7efe..4bcaacbf943 100644 --- a/crates/rome_fs/Cargo.toml +++ b/crates/rome_fs/Cargo.toml @@ -1,23 +1,23 @@ [package] -name = "rome_fs" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_fs" +repository.workspace = true +version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_diagnostics = { workspace = true } -rome_console = { workspace = true } +crossbeam = "0.8.1" indexmap = { workspace = true } parking_lot = { version = "0.12.0", features = ["arc_lock"] } rayon = "1.5.1" -crossbeam = "0.8.1" -tracing = { workspace = true } -serde = { version = "1.0.136", features = ["derive"], optional = true } +rome_console = { workspace = true } +rome_diagnostics = { workspace = true } schemars = { version = "0.8.10", optional = true } +serde = { version = "1.0.136", features = ["derive"], optional = true } +tracing = { workspace = true } [features] serde = ["dep:serde", "schemars", "rome_diagnostics/schema"] diff --git a/crates/rome_js_analyze/Cargo.toml b/crates/rome_js_analyze/Cargo.toml index 9639ead0766..8f8767a95b4 100644 --- a/crates/rome_js_analyze/Cargo.toml +++ b/crates/rome_js_analyze/Cargo.toml @@ -1,45 +1,45 @@ [package] -name = "rome_js_analyze" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_js_analyze" +repository.workspace = true +version = "0.0.0" [dependencies] +bpaf.workspace = true +lazy_static = { workspace = true } +natord = "1.0.9" +roaring = "0.10.1" rome_analyze = { workspace = true } +rome_aria = { workspace = true } +rome_console = { workspace = true } rome_control_flow = { workspace = true } -rome_rowan = { workspace = true } +rome_deserialize = { workspace = true } +rome_diagnostics = { workspace = true } +rome_js_factory = { workspace = true } rome_js_semantic = { workspace = true } rome_js_syntax = { workspace = true } -rome_js_factory = { workspace = true } rome_js_unicode_table = { workspace = true } -rome_json_syntax = { workspace = true } rome_json_factory = { workspace = true } -rome_console = { workspace = true } -rome_diagnostics = { workspace = true } -rome_deserialize = { workspace = true } -rome_aria = { workspace = true } -roaring = "0.10.1" +rome_json_syntax = { workspace = true } +rome_rowan = { workspace = true } rustc-hash = { workspace = true } +schemars = { workspace = true, optional = true } serde = { version = "1.0.136", features = ["derive"] } serde_json = { version = "1.0.74" } -lazy_static = { workspace = true } -natord = "1.0.9" -bpaf.workspace = true -schemars = { workspace = true, optional = true } smallvec = { workspace = true } [dev-dependencies] -tests_macros = { workspace = true } -rome_text_edit = { workspace = true } -rome_js_parser = { workspace = true, features = ["tests"] } -insta = { workspace = true, features = ["glob"] } countme = { workspace = true, features = ["enable"] } -similar = "2.1.0" +insta = { workspace = true, features = ["glob"] } json_comments = "0.2.1" -rome_service = { path = "../rome_service" } +rome_js_parser = { workspace = true, features = ["tests"] } rome_json_parser = { path = "../rome_json_parser" } +rome_service = { path = "../rome_service" } +rome_text_edit = { workspace = true } +similar = "2.1.0" +tests_macros = { workspace = true } [features] schemars = ["dep:schemars"] diff --git a/crates/rome_js_factory/Cargo.toml b/crates/rome_js_factory/Cargo.toml index f9702336f82..d0bb609e390 100644 --- a/crates/rome_js_factory/Cargo.toml +++ b/crates/rome_js_factory/Cargo.toml @@ -1,15 +1,15 @@ [package] -name = "rome_js_factory" -version = "0.0.2" -edition.workspace = true authors.workspace = true -license.workspace = true description = "Utilities to create JavaScript AST for rome_js_parser" -repository.workspace = true documentation = "https://rustdocs.rome.tools/rome_js_factory/index.html" +edition.workspace = true +license.workspace = true +name = "rome_js_factory" +repository.workspace = true +version = "0.0.2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } rome_js_syntax = { workspace = true } +rome_rowan = { workspace = true } diff --git a/crates/rome_js_formatter/Cargo.toml b/crates/rome_js_formatter/Cargo.toml index fb871cbb277..d6657ea69f5 100644 --- a/crates/rome_js_formatter/Cargo.toml +++ b/crates/rome_js_formatter/Cargo.toml @@ -1,50 +1,50 @@ [package] -name = "rome_js_formatter" -version = "0.0.2" -edition.workspace = true authors.workspace = true -repository.workspace = true -license.workspace = true -documentation = "https://rustdocs.rome.tools/rome_js_formatter/index.html" -description = "Rome's JavaScript formatter" categories = ["development-tools"] +description = "Rome's JavaScript formatter" +documentation = "https://rustdocs.rome.tools/rome_js_formatter/index.html" +edition.workspace = true +license.workspace = true +name = "rome_js_formatter" +repository.workspace = true +version = "0.0.2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] cfg-if = "1.0.0" +rome_deserialize = { workspace = true } +rome_diagnostics_categories = { workspace = true } +rome_formatter = { workspace = true } +rome_js_factory = { workspace = true } rome_js_syntax = { workspace = true } rome_json_syntax = { workspace = true } -rome_js_factory = { workspace = true } -rome_formatter = { workspace = true } rome_rowan = { workspace = true } rome_text_size = { workspace = true } -rome_diagnostics_categories = { workspace = true } -rome_deserialize = { workspace = true } +schemars = { version = "0.8.10", optional = true } +serde = { version = "1.0.136", features = ["derive"], optional = true } tracing = { workspace = true } unicode-width = "0.1.9" -serde = { version = "1.0.136", features = ["derive"], optional = true } -schemars = { version = "0.8.10", optional = true } [dev-dependencies] -rome_parser = { workspace = true } +countme = { workspace = true, features = ["enable"] } +iai = "0.1.1" +insta = { workspace = true, features = ["glob"] } +quickcheck = "1.0.3" +quickcheck_macros = "1.0.0" +rome_diagnostics = { workspace = true } rome_formatter_test = { workspace = true } rome_fs = { workspace = true } -rome_js_parser = { workspace = true } rome_js_factory = { workspace = true } +rome_js_parser = { workspace = true } +rome_parser = { workspace = true } serde = { version = "1", features = ["derive"] } serde_json = "1" tests_macros = { workspace = true } -insta = { workspace = true, features = ["glob"] } -rome_diagnostics = { workspace = true } -countme = { workspace = true, features = ["enable"] } -quickcheck = "1.0.3" -quickcheck_macros = "1.0.0" -iai = "0.1.1" [[bench]] -name = "iai" harness = false +name = "iai" [features] serde = ["dep:serde", "schemars"] diff --git a/crates/rome_js_parser/Cargo.toml b/crates/rome_js_parser/Cargo.toml index be11bd29a8b..77e32e77158 100644 --- a/crates/rome_js_parser/Cargo.toml +++ b/crates/rome_js_parser/Cargo.toml @@ -1,40 +1,40 @@ [package] -edition.workspace = true -name = "rome_js_parser" -version = "0.0.2" authors.workspace = true -license.workspace = true +categories = ["parser-implementations", "development-tools"] description = "An extremely fast ECMAScript parser for Rome, forked from the RSlint project" -repository.workspace = true documentation = "https://rustdocs.rome.tools/rome_js_parser/index.html" -categories = ["parser-implementations", "development-tools"] +edition.workspace = true homepage.workspace = true +license.workspace = true +name = "rome_js_parser" +repository.workspace = true +version = "0.0.2" [dependencies] +bitflags.workspace = true +cfg-if = "1.0.0" +drop_bomb = "0.1.5" +indexmap = { workspace = true } rome_console = { workspace = true } rome_diagnostics = { workspace = true } -rome_js_syntax = { workspace = true } rome_js_factory = { workspace = true } +rome_js_syntax = { workspace = true } rome_js_unicode_table = { workspace = true } -rome_rowan = { workspace = true } rome_parser = { workspace = true } -drop_bomb = "0.1.5" -bitflags.workspace = true -indexmap = { workspace = true } -cfg-if = "1.0.0" +rome_rowan = { workspace = true } +schemars = { workspace = true, optional = true } smallvec = { workspace = true } tracing = { workspace = true } -schemars = { workspace = true, optional = true } [dev-dependencies] -tests_macros = { workspace = true } expect-test = "1.2.2" quickcheck = "1.0.3" quickcheck_macros = "1.0.0" +tests_macros = { workspace = true } [features] -serde = ["rome_js_syntax/serde"] schemars = ["dep:schemars"] +serde = ["rome_js_syntax/serde"] tests = [] # cargo-workspaces metadata diff --git a/crates/rome_js_semantic/Cargo.toml b/crates/rome_js_semantic/Cargo.toml index 8ba53663df4..09b08cfbe83 100644 --- a/crates/rome_js_semantic/Cargo.toml +++ b/crates/rome_js_semantic/Cargo.toml @@ -1,21 +1,21 @@ [package] -edition.workspace = true -name = "rome_js_semantic" -version = "0.1.0" authors.workspace = true -license.workspace = true description = "Semantic model for the JavaScript language" documentation = "https://rustdocs.rome.tools/rome_js_semantic/index.html" +edition.workspace = true +license.workspace = true +name = "rome_js_semantic" repository.workspace = true +version = "0.1.0" [dependencies] -rome_rowan = { workspace = true } rome_js_syntax = { workspace = true } +rome_rowan = { workspace = true } rust-lapper = "1.0.1" rustc-hash = { workspace = true } [dev-dependencies] -rome_markup = { workspace = true } -rome_diagnostics = { workspace = true } rome_console = { workspace = true } +rome_diagnostics = { workspace = true } rome_js_parser = { workspace = true } +rome_markup = { workspace = true } diff --git a/crates/rome_js_syntax/Cargo.toml b/crates/rome_js_syntax/Cargo.toml index 0d5e333d7d4..95e877e9f5a 100644 --- a/crates/rome_js_syntax/Cargo.toml +++ b/crates/rome_js_syntax/Cargo.toml @@ -1,19 +1,19 @@ [package] -edition.workspace = true -name = "rome_js_syntax" -version = "0.0.2" authors.workspace = true description = "SyntaxKind and common rowan definitions for rome_js_parser" +documentation = "https://rustdocs.rome.tools/rome_js_syntax/index.html" +edition.workspace = true license.workspace = true +name = "rome_js_syntax" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_js_syntax/index.html" +version = "0.0.2" [dependencies] -rome_rowan = { workspace = true } -rome_diagnostics = { workspace = true } rome_console = { workspace = true } -serde = { version = "1.0.136", features = ["derive"], optional = true } +rome_diagnostics = { workspace = true } +rome_rowan = { workspace = true } schemars = { version = "0.8.10", optional = true } +serde = { version = "1.0.136", features = ["derive"], optional = true } [dev-dependencies] rome_js_factory = { workspace = true } diff --git a/crates/rome_js_unicode_table/Cargo.toml b/crates/rome_js_unicode_table/Cargo.toml index ee5188eac6f..81bf637e9a6 100644 --- a/crates/rome_js_unicode_table/Cargo.toml +++ b/crates/rome_js_unicode_table/Cargo.toml @@ -1,12 +1,12 @@ [package] -edition.workspace = true -name = "rome_js_unicode_table" -version = "0.0.1" authors = ["Rome Tools and Contributors"] -license.workspace = true description = "Unicode table for JavaScript IDs" -repository.workspace = true documentation = "https://rustdocs.rome.tools/rome_js_parser/index.html" +edition.workspace = true +license.workspace = true +name = "rome_js_unicode_table" +repository.workspace = true +version = "0.0.1" [dependencies] diff --git a/crates/rome_json_analyze/Cargo.toml b/crates/rome_json_analyze/Cargo.toml index 4ab4af32dd8..639a90ff8f2 100644 --- a/crates/rome_json_analyze/Cargo.toml +++ b/crates/rome_json_analyze/Cargo.toml @@ -1,29 +1,29 @@ [package] -name = "rome_json_analyze" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_json_analyze" +repository.workspace = true +version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +lazy_static = { workspace = true } rome_analyze = { workspace = true } -rome_json_syntax = { workspace = true } -rome_rowan = { workspace = true } rome_console = { workspace = true } rome_diagnostics = { workspace = true } -lazy_static = { workspace = true } +rome_json_syntax = { workspace = true } +rome_rowan = { workspace = true } [dev-dependencies] +countme = { workspace = true, features = ["enable"] } +insta = { workspace = true, features = ["glob"] } +json_comments = "0.2.1" rome_deserialize = { workspace = true } -rome_json_parser = { workspace = true } rome_json_factory = { workspace = true } -tests_macros = { workspace = true } +rome_json_parser = { workspace = true } +rome_service = { workspace = true } rome_text_edit = { workspace = true } -insta = { workspace = true, features = ["glob"] } -countme = { workspace = true, features = ["enable"] } similar = "2.1.0" -json_comments = "0.2.1" -rome_service = { workspace = true } +tests_macros = { workspace = true } diff --git a/crates/rome_json_factory/Cargo.toml b/crates/rome_json_factory/Cargo.toml index 93ccf463aa1..b6992c5bf8d 100644 --- a/crates/rome_json_factory/Cargo.toml +++ b/crates/rome_json_factory/Cargo.toml @@ -1,15 +1,15 @@ [package] -name = "rome_json_factory" -version = "0.0.1" -edition.workspace = true authors.workspace = true -repository.workspace = true -license.workspace = true description = "Utilities to create JSON AST for rome_json_parser" documentation = "https://rustdocs.rome.tools/rome_json_parser/index.html" +edition.workspace = true +license.workspace = true +name = "rome_json_factory" +repository.workspace = true +version = "0.0.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } rome_json_syntax = { workspace = true } +rome_rowan = { workspace = true } diff --git a/crates/rome_json_formatter/Cargo.toml b/crates/rome_json_formatter/Cargo.toml index d2e9aaa5192..eb3715e1579 100644 --- a/crates/rome_json_formatter/Cargo.toml +++ b/crates/rome_json_formatter/Cargo.toml @@ -1,34 +1,34 @@ [package] -name = "rome_json_formatter" -version = "0.0.1" -edition.workspace = true authors.workspace = true -repository.workspace = true -license.workspace = true categories = ["development-tools"] -documentation = "https://rustdocs.rome.tools/rome_js_formatter/index.html" description = "Rome's JSON formatter" +documentation = "https://rustdocs.rome.tools/rome_js_formatter/index.html" +edition.workspace = true homepage.workspace = true +license.workspace = true +name = "rome_json_formatter" +repository.workspace = true +version = "0.0.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_json_syntax = { workspace = true } rome_formatter = { workspace = true } +rome_json_syntax = { workspace = true } rome_rowan = { workspace = true } [dev-dependencies] -rome_parser = { workspace = true } +countme = { workspace = true, features = ["enable"] } +insta = { workspace = true, features = ["glob"] } +rome_diagnostics = { workspace = true } rome_formatter_test = { workspace = true } rome_fs = { workspace = true } -rome_json_parser = { workspace = true } rome_json_factory = { workspace = true } +rome_json_parser = { workspace = true } +rome_parser = { workspace = true } serde = { version = "1", features = ["derive"] } serde_json = "1" tests_macros = { workspace = true } -insta = { workspace = true, features = ["glob"] } -rome_diagnostics = { workspace = true } -countme = { workspace = true, features = ["enable"] } # cargo-workspaces metadata [package.metadata.workspaces] diff --git a/crates/rome_json_parser/Cargo.toml b/crates/rome_json_parser/Cargo.toml index b2f13adb03d..515e545f0e7 100644 --- a/crates/rome_json_parser/Cargo.toml +++ b/crates/rome_json_parser/Cargo.toml @@ -1,30 +1,30 @@ [package] -name = "rome_json_parser" -version = "0.0.1" -edition.workspace = true authors.workspace = true -repository.workspace = true -license.workspace = true +categories = ["parser-implementations", "development-tools"] description = "An extremely fast JSON parser" documentation = "https://rustdocs.rome.tools/rome_json_parser/index.html" -categories = ["parser-implementations", "development-tools"] +edition.workspace = true homepage.workspace = true +license.workspace = true +name = "rome_json_parser" +repository.workspace = true +version = "0.0.1" [dependencies] -rome_rowan = { workspace = true } rome_console = { workspace = true } rome_diagnostics = { workspace = true } -rome_json_syntax = { workspace = true } -rome_json_factory = { workspace = true } rome_js_unicode_table = { workspace = true } +rome_json_factory = { workspace = true } +rome_json_syntax = { workspace = true } rome_parser = { workspace = true } +rome_rowan = { workspace = true } tracing = { workspace = true } [dev-dependencies] -tests_macros = { workspace = true } +insta = { workspace = true } quickcheck = "1.0.3" quickcheck_macros = "1.0.0" -insta = { workspace = true } +tests_macros = { workspace = true } # cargo-workspaces metadata [package.metadata.workspaces] diff --git a/crates/rome_json_syntax/Cargo.toml b/crates/rome_json_syntax/Cargo.toml index db1b7d2dd7f..87c0246b4c4 100644 --- a/crates/rome_json_syntax/Cargo.toml +++ b/crates/rome_json_syntax/Cargo.toml @@ -1,12 +1,12 @@ [package] -name = "rome_json_syntax" -version = "0.0.1" -edition.workspace = true authors.workspace = true description = "SyntaxKind and common rowan definitions for rome_json_parser" +documentation = "https://rustdocs.rome.tools/rome_json_parser/index.html" +edition.workspace = true license.workspace = true +name = "rome_json_syntax" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_json_parser/index.html" +version = "0.0.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/rome_lsp/Cargo.toml b/crates/rome_lsp/Cargo.toml index 172ef3bc4fd..9d71000b02f 100644 --- a/crates/rome_lsp/Cargo.toml +++ b/crates/rome_lsp/Cargo.toml @@ -1,33 +1,33 @@ [package] -name = "rome_lsp" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_lsp" +repository.workspace = true +version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -serde_json = "1.0.74" -serde = { version = "1.0.133", features = ["derive"] } anyhow = "1.0.52" +futures = "0.3" indexmap = { workspace = true } -rome_fs = { workspace = true } -rome_service = { workspace = true } -rome_js_formatter = { workspace = true } -rome_formatter = { workspace = true } rome_analyze = { workspace = true } +rome_console = { workspace = true } rome_diagnostics = { workspace = true } +rome_formatter = { workspace = true } +rome_fs = { workspace = true } +rome_js_formatter = { workspace = true } rome_rowan = { workspace = true } -rome_console = { workspace = true } +rome_service = { workspace = true } rome_text_edit = { workspace = true } +serde = { version = "1.0.133", features = ["derive"] } +serde_json = "1.0.74" tokio = { workspace = true, features = ["rt", "io-std"] } tower-lsp = { version = "0.19.0" } tracing = { workspace = true, features = ["attributes"] } -futures = "0.3" [dev-dependencies] -tower = { version = "0.4.12", features = ["timeout"] } -tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] } proptest = "1.0.0" +tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] } +tower = { version = "0.4.12", features = ["timeout"] } diff --git a/crates/rome_markup/Cargo.toml b/crates/rome_markup/Cargo.toml index 3477bf7ed39..7237c28155e 100644 --- a/crates/rome_markup/Cargo.toml +++ b/crates/rome_markup/Cargo.toml @@ -1,18 +1,18 @@ [package] -name = "rome_markup" -version = "0.0.1" +authors.workspace = true description = "Macro to write text using a HTML-like syntax" -license.workspace = true +documentation = "https://rustdocs.rome.tools/rome_markup/index.html" edition.workspace = true -authors.workspace = true +license.workspace = true +name = "rome_markup" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_markup/index.html" +version = "0.0.1" [lib] proc-macro = true [dependencies] +proc-macro-error = { version = "1.0.4", default-features = false } proc-macro2 = "1.0.36" quote = "1.0.14" -proc-macro-error = { version = "1.0.4", default-features = false } diff --git a/crates/rome_migrate/Cargo.toml b/crates/rome_migrate/Cargo.toml index 9f24619a677..d61ba17f43e 100644 --- a/crates/rome_migrate/Cargo.toml +++ b/crates/rome_migrate/Cargo.toml @@ -1,16 +1,16 @@ [package] +edition = "2021" name = "rome_migrate" version = "0.1.0" -edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rome_rowan = { workspace = true } -rome_json_syntax = { workspace = true } +lazy_static = { workspace = true } rome_analyze = { workspace = true } rome_diagnostics = { workspace = true } -lazy_static = { workspace = true } +rome_json_syntax = { workspace = true } +rome_rowan = { workspace = true } [dev-dependencies] rome_json_parser = { workspace = true } diff --git a/crates/rome_parser/Cargo.toml b/crates/rome_parser/Cargo.toml index 16fbb419421..85c4569724a 100644 --- a/crates/rome_parser/Cargo.toml +++ b/crates/rome_parser/Cargo.toml @@ -1,16 +1,16 @@ [package] -name = "rome_parser" -version = "0.0.1" -edition.workspace = true authors.workspace = true description = "Shared infrastructure for Rome's parser" -repository.workspace = true documentation = "https://rustdocs.rome.tools/rome_parser/index.html" +edition.workspace = true license.workspace = true +name = "rome_parser" +repository.workspace = true +version = "0.0.1" [dependencies] +drop_bomb = "0.1.5" rome_console = { workspace = true } rome_diagnostics = { workspace = true } rome_rowan = { workspace = true } -drop_bomb = "0.1.5" diff --git a/crates/rome_rowan/Cargo.toml b/crates/rome_rowan/Cargo.toml index 71a102c2bc9..7604ce319a8 100644 --- a/crates/rome_rowan/Cargo.toml +++ b/crates/rome_rowan/Cargo.toml @@ -1,33 +1,33 @@ [package] -name = "rome_rowan" -version = "0.0.1" authors = ["Aleksey Kladov "] -license = "MIT OR Apache-2.0" description = "Library for generic lossless syntax trees" +documentation = "https://rustdocs.rome.tools/rome_rowan/index.html" edition.workspace = true +license = "MIT OR Apache-2.0" +name = "rome_rowan" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_rowan/index.html" +version = "0.0.1" [dependencies] -rustc-hash = { workspace = true } +countme = { workspace = true } hashbrown = { version = "0.12.3", features = ["inline-more"], default-features = false } -rome_text_size = { workspace = true } memoffset = "0.8.0" -countme = { workspace = true } -serde = { version = "1.0.133", optional = true, default-features = false } rome_text_edit = { workspace = true } +rome_text_size = { workspace = true } +rustc-hash = { workspace = true } schemars = { version = "0.8.10", optional = true } +serde = { version = "1.0.133", optional = true, default-features = false } tracing = { workspace = true } [dev-dependencies] +iai = "0.1.1" quickcheck = "1.0.3" quickcheck_macros = "1.0.0" serde_json = "1.0.79" -iai = "0.1.1" [features] serde = ["dep:serde", "schemars", "rome_text_size/serde"] [[bench]] -name = "mutation" harness = false +name = "mutation" diff --git a/crates/rome_service/Cargo.toml b/crates/rome_service/Cargo.toml index ea860e9fc2c..02e85cf2fe8 100644 --- a/crates/rome_service/Cargo.toml +++ b/crates/rome_service/Cargo.toml @@ -1,40 +1,40 @@ [package] -name = "rome_service" -version = "0.0.0" -edition.workspace = true authors.workspace = true -repository.workspace = true +edition.workspace = true license.workspace = true +name = "rome_service" +repository.workspace = true +version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +bpaf = { workspace = true } dashmap = { workspace = true } -serde = { version = "1.0.133", features = ["derive"] } -serde_json = { version = "1.0.74", features = ["raw_value"] } +indexmap = { workspace = true, features = ["serde"] } rome_analyze = { workspace = true, features = ["serde"] } rome_console = { workspace = true } +rome_deserialize = { workspace = true } rome_diagnostics = { workspace = true } +rome_flags = { workspace = true } rome_formatter = { workspace = true, features = ["serde"] } rome_fs = { workspace = true, features = ["serde"] } -rome_flags = { workspace = true } rome_js_analyze = { workspace = true } -rome_js_syntax = { workspace = true, features = ["serde"] } -rome_parser = { workspace = true } -rome_js_parser = { workspace = true } rome_js_factory = { workspace = true, optional = true } rome_js_formatter = { workspace = true, features = ["serde"] } +rome_js_parser = { workspace = true } rome_js_semantic = { workspace = true } +rome_js_syntax = { workspace = true, features = ["serde"] } +rome_json_formatter = { workspace = true } rome_json_parser = { workspace = true } rome_json_syntax = { workspace = true } -rome_json_formatter = { workspace = true } -rome_deserialize = { workspace = true } +rome_parser = { workspace = true } rome_rowan = { workspace = true, features = ["serde"] } rome_text_edit = { workspace = true } -indexmap = { workspace = true, features = ["serde"] } schemars = { version = "0.8.10", features = ["indexmap1"], optional = true } +serde = { version = "1.0.133", features = ["derive"] } +serde_json = { version = "1.0.74", features = ["raw_value"] } tracing = { workspace = true, features = ["attributes"] } -bpaf = { workspace = true } [features] schemars = [ diff --git a/crates/rome_text_edit/Cargo.toml b/crates/rome_text_edit/Cargo.toml index ef59fc95d0f..86d4e91c1f6 100644 --- a/crates/rome_text_edit/Cargo.toml +++ b/crates/rome_text_edit/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "rome_text_edit" -version = "0.0.1" authors.workspace = true +description = "Simple text editing crate ported from rust-analyzer" +documentation = "https://rustdocs.rome.tools/rome_text_edit/index.html" edition.workspace = true license = "MIT OR Apache-2.0" -description = "Simple text editing crate ported from rust-analyzer" +name = "rome_text_edit" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_text_edit/index.html" +version = "0.0.1" [dependencies] rome_text_size = { workspace = true, features = ["serde"] } -serde = { version = "1.0.136", features = ["derive"] } schemars = { version = "0.8.10", optional = true } +serde = { version = "1.0.136", features = ["derive"] } similar = { version = "2.1.0", features = ["unicode"] } [features] diff --git a/crates/rome_text_size/Cargo.toml b/crates/rome_text_size/Cargo.toml index c5f001162e0..d2de2961018 100644 --- a/crates/rome_text_size/Cargo.toml +++ b/crates/rome_text_size/Cargo.toml @@ -1,18 +1,18 @@ [package] +edition = "2018" name = "rome_text_size" version = "0.0.1" -edition = "2018" authors = ["Aleksey Kladov ", "Christopher Durham (CAD97) "] description = "Fork of the crate text_size" +documentation = "https://rustdocs.rome.tools/rome_text_size/index.html" license = "MIT OR Apache-2.0" repository.workspace = true -documentation = "https://rustdocs.rome.tools/rome_text_size/index.html" [dependencies] -serde = { version = "1.0", optional = true, default_features = false } schemars = { version = "0.8.10", optional = true } +serde = { version = "1.0", optional = true, default_features = false } [dev-dependencies] serde_test = "1.0" diff --git a/crates/rome_wasm/Cargo.toml b/crates/rome_wasm/Cargo.toml index 92e10fe960b..031e87c0177 100644 --- a/crates/rome_wasm/Cargo.toml +++ b/crates/rome_wasm/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "rome_wasm" -version = "0.0.0" -edition = "2021" authors = ["Rome Tools Developers and Contributors"] -repository = "https://github.com/rome/tools" description = "WebAssembly bindings to the Rome Workspace API" +edition = "2021" license = "MIT" +name = "rome_wasm" +repository = "https://github.com/rome/tools" +version = "0.0.0" [lib] @@ -15,13 +15,13 @@ crate-type = ["cdylib", "rlib"] default = ["console_error_panic_hook"] [dependencies] -wasm-bindgen = { version = "0.2.82", features = ["serde-serialize"] } -serde = "1.0.136" -serde-wasm-bindgen = "0.4.5" js-sys = "0.3.59" -rome_service = { path = "../../crates/rome_service" } rome_console = { workspace = true } rome_diagnostics = { path = "../../crates/rome_diagnostics" } +rome_service = { path = "../../crates/rome_service" } +serde = "1.0.136" +serde-wasm-bindgen = "0.4.5" +wasm-bindgen = { version = "0.2.82", features = ["serde-serialize"] } # The `console_error_panic_hook` crate provides better debugging of panics by # logging them with `console.error`. This is great for development, but requires @@ -31,10 +31,10 @@ console_error_panic_hook = { version = "0.1.6", optional = true } [build-dependencies] -serde_json = "1.0.79" -rome_service = { workspace = true, features = ["schemars"] } -rome_rowan = { workspace = true } +quote = "1.0.14" rome_js_factory = { workspace = true } rome_js_formatter = { workspace = true } +rome_rowan = { workspace = true } +rome_service = { workspace = true, features = ["schemars"] } schemars = "0.8.10" -quote = "1.0.14" +serde_json = "1.0.79" diff --git a/crates/tests_macros/Cargo.toml b/crates/tests_macros/Cargo.toml index 730a9c95c8b..1e5b513a2df 100644 --- a/crates/tests_macros/Cargo.toml +++ b/crates/tests_macros/Cargo.toml @@ -1,17 +1,17 @@ [package] -name = "tests_macros" -version = "0.0.0" description = "" -license.workspace = true edition.workspace = true +license.workspace = true +name = "tests_macros" +version = "0.0.0" [lib] proc-macro = true [dependencies] -proc-macro2 = "1.0.36" -syn = "1.0.85" -globwalk = "0.8.1" case = "1.0.0" -quote = "1.0.14" +globwalk = "0.8.1" proc-macro-error = "1.0.4" +proc-macro2 = "1.0.36" +quote = "1.0.14" +syn = "1.0.85" diff --git a/justfile b/justfile index e650c7d4da9..9b639b81c73 100644 --- a/justfile +++ b/justfile @@ -3,7 +3,7 @@ _default: alias f := format alias t := test -alias r := check-ready +alias r := ready # Installs the tools needed to develop with Rome @@ -59,9 +59,6 @@ format: cargo format taplo format -# Run tests of all crates -test: - cargo nextest run [unix] @@ -72,6 +69,18 @@ _touch file: _touch file: (gci {{file}}).LastWriteTime = Get-Date +# Run tests of all crates +test: + cargo nextest run + +# Run tests for the crate passed as argument e.g. just test-create rome_cli +test-crate name: + cargo nextest run -E 'package({{name}})' + +# Run doc tests +test-doc: + cargo test --doc + # Tests a lint rule. The name of the rule needs to be camel case test-lintrule name: just _touch crates/rome_js_analyze/tests/spec_tests.rs @@ -80,7 +89,7 @@ test-lintrule name: cargo test -p rome_json_analyze -- {{snakecase(name)}} # When you finished coding, run this command to run the same commands in the CI. -check-ready: +ready: git diff --exit-code --quiet just codegen just documentation diff --git a/taplo.toml b/taplo.toml index 2d9d8802db2..c2f77c0f7ec 100644 --- a/taplo.toml +++ b/taplo.toml @@ -4,3 +4,4 @@ exclude = ["./benchmark/**/*.toml"] [formatting] align_entries = true column_width = 120 +reorder_keys = true