diff --git a/Cargo.lock b/Cargo.lock index fd83fbeab3c..f25d3963755 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -146,9 +146,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.2.1" +version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24a6904aef64d73cf10ab17ebace7befb918b82164785cb89907993be7f83813" +checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42" [[package]] name = "bpaf" @@ -925,9 +925,9 @@ dependencies = [ [[package]] name = "insta" -version = "1.28.0" +version = "1.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea5b3894afe466b4bcf0388630fc15e11938a6074af0cd637c825ba2ec8a099" +checksum = "28491f7753051e5704d4d0ae7860d45fae3238d7d235bc4289dcd45c48d3cec3" dependencies = [ "console", "globset", @@ -1461,9 +1461,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.26" +version = "1.0.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc" +checksum = "573015e8ab27661678357f27dc26460738fd2b6c86e46f386fde94cb5d913105" dependencies = [ "proc-macro2", ] @@ -1650,7 +1650,7 @@ dependencies = [ name = "rome_analyze" version = "0.0.0" dependencies = [ - "bitflags 2.2.1", + "bitflags 2.3.3", "rome_console", "rome_diagnostics", "rome_rowan", @@ -1690,7 +1690,6 @@ dependencies = [ "lazy_static", "libc", "mimalloc", - "pico-args", "rayon", "rome_console", "rome_deserialize", @@ -1774,9 +1773,8 @@ name = "rome_diagnostics" version = "0.0.1" dependencies = [ "backtrace", - "bitflags 1.3.2", + "bitflags 2.3.3", "bpaf", - "pico-args", "rome_console", "rome_diagnostics_categories", "rome_diagnostics_macros", @@ -1948,7 +1946,7 @@ dependencies = [ name = "rome_js_parser" version = "0.0.2" dependencies = [ - "bitflags 2.2.1", + "bitflags 2.3.3", "cfg-if", "drop_bomb", "expect-test", @@ -2340,9 +2338,9 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.153" +version = "1.0.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a382c72b4ba118526e187430bb4963cd6d55051ebf13d9b25574d379cc98d20" +checksum = "9e8c8cf938e98f769bc164923b06dce91cea1751522f46f8466461af04c9027d" dependencies = [ "serde_derive", ] @@ -2360,13 +2358,13 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.153" +version = "1.0.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ef476a5790f0f6decbc66726b6e5d63680ed518283e64c7df415989d880954f" +checksum = "d9735b638ccc51c28bf6914d90a2e9725b377144fc612c49a611fddd1b631d68" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.15", ] [[package]] @@ -2382,9 +2380,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.94" +version = "1.0.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c533a59c9d8a93a09c6ab31f0fd5e5f4dd1b8fc9434804029839884765d04ea" +checksum = "46266871c240a00b8f503b877622fe33430b3c7d963bdc0f2adc511e54a1eae3" dependencies = [ "itoa", "ryu", diff --git a/Cargo.toml b/Cargo.toml index e3a84512933..cf5feeef91e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,17 +24,7 @@ debug = true inherits = "release" [workspace.dependencies] -countme = "3.0.1" -dashmap = "5.4.0" -indexmap = "1.9.3" -rustc-hash = "1.1.0" -tracing = { version = "0.1.31", default-features = false, features = ["std"] } -# pinning to version 1.18 to avoid multiple versions of windows-sys as dependency -bitflags = "2.2.1" -bpaf = { version = "0.8.0", features = ["derive"] } -insta = "1.21.2" -lazy_static = "1.4.0" -quote = { version = "1.0.21" } +# Internal crates rome_analyze = { path = "./crates/rome_analyze" } rome_aria = { path = "./crates/rome_aria" } rome_aria_metadata = { path = "./crates/rome_aria_metadata" } @@ -69,19 +59,34 @@ 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" } + +# Crates needed in the workspace +bitflags = "2.3.1" +bpaf = { version = "0.8.0", features = ["derive"] } +countme = "3.0.1" +dashmap = "5.4.0" +indexmap = "1.9.3" +insta = "1.29.0" +lazy_static = "1.4.0" +quote = { version = "1.0.28" } +rustc-hash = "1.1.0" +schemars = { version = "0.8.12" } +serde = { version = "1.0.163", features = ["derive"], default-features = false } +serde_json = "1.0.96" +smallvec = { version = "1.10.0", features = ["union", "const_new"] } +tracing = { version = "0.1.37", default-features = false, features = ["std"] } +# pinning to version 1.18 to avoid multiple versions of windows-sys as dependency +tokio = { version = "~1.18.5" } [profile.dev.package.rome_wasm] debug = true -opt-level = 1 +opt-level = "s" [profile.test.package.rome_wasm] debug = true -opt-level = 1 +opt-level = "s" [profile.release.package.rome_wasm] debug = false diff --git a/crates/rome_analyze/Cargo.toml b/crates/rome_analyze/Cargo.toml index 92f194aeaa3..30ac3466b44 100644 --- a/crates/rome_analyze/Cargo.toml +++ b/crates/rome_analyze/Cargo.toml @@ -9,14 +9,14 @@ version = "0.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bitflags.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"] } -tracing = { workspace = true } +bitflags = { workspace = true } +rome_console = { workspace = true } +rome_diagnostics = { workspace = true } +rome_rowan = { workspace = true } +rustc-hash = { workspace = true } +schemars = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"] } +tracing = { workspace = true } [features] diff --git a/crates/rome_cli/Cargo.toml b/crates/rome_cli/Cargo.toml index 61627de2dc2..2337b54ce7d 100644 --- a/crates/rome_cli/Cargo.toml +++ b/crates/rome_cli/Cargo.toml @@ -19,7 +19,6 @@ dashmap = { 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 } @@ -36,8 +35,8 @@ rome_rowan = { 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" } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } tokio = { workspace = true, features = ["io-std", "io-util", "net", "time", "rt", "sync", "rt-multi-thread", "macros"] } tracing = { workspace = true } tracing-appender = "0.2" diff --git a/crates/rome_cli/src/diagnostics.rs b/crates/rome_cli/src/diagnostics.rs index 6da7013d1b9..39cb9bc0529 100644 --- a/crates/rome_cli/src/diagnostics.rs +++ b/crates/rome_cli/src/diagnostics.rs @@ -1,6 +1,6 @@ use rome_console::fmt::{Display, Formatter}; use rome_console::markup; -use rome_diagnostics::adapters::{BpafError, IoError, PicoArgsError}; +use rome_diagnostics::adapters::{BpafError, IoError}; use rome_diagnostics::{ Advices, Category, Diagnostic, DiagnosticTags, Error, Location, LogCategory, MessageAndDescription, Severity, Visit, @@ -346,14 +346,6 @@ impl CliDiagnostic { }) } - /// To throw when there's been an error while parsing an argument - pub fn parse_error(argument: impl Into, source: pico_args::Error) -> Self { - Self::ParseError(ParseDiagnostic { - source: Some(Error::from(PicoArgsError::from(source))), - message: MessageAndDescription::from(argument.into()), - }) - } - /// To throw when there's been an error while parsing an argument pub fn parse_error_bpaf(source: bpaf::ParseFailure) -> Self { Self::ParseError(ParseDiagnostic { diff --git a/crates/rome_cli/src/lib.rs b/crates/rome_cli/src/lib.rs index 831f732078c..9e6fef69767 100644 --- a/crates/rome_cli/src/lib.rs +++ b/crates/rome_cli/src/lib.rs @@ -6,7 +6,6 @@ //! to parse commands and arguments, redirect the execution of the commands and //! execute the traversal of directory and files, based on the command that were passed. -pub use pico_args::Arguments; use rome_console::{ColorMode, Console}; use rome_fs::OsFileSystem; use rome_service::{App, DynRef, Workspace, WorkspaceRef}; diff --git a/crates/rome_console/Cargo.toml b/crates/rome_console/Cargo.toml index 9a1b30fcde0..7ae46b7d5ff 100644 --- a/crates/rome_console/Cargo.toml +++ b/crates/rome_console/Cargo.toml @@ -13,8 +13,8 @@ version = "0.0.1" 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"] } +schemars = { workspace = true, optional = true } +serde = { workspace = true, optional = true, features = ["derive"] } termcolor = "1.1.2" unicode-width = "0.1.9" diff --git a/crates/rome_deserialize/Cargo.toml b/crates/rome_deserialize/Cargo.toml index ece473184d6..8e668e491dc 100644 --- a/crates/rome_deserialize/Cargo.toml +++ b/crates/rome_deserialize/Cargo.toml @@ -15,6 +15,6 @@ rome_diagnostics = { workspace = true } rome_json_parser = { workspace = true } rome_json_syntax = { workspace = true } rome_rowan = { workspace = true } -serde = "1.0.150" -serde_json = "1.0.89" +serde = { workspace = true } +serde_json = { workspace = true } tracing = { workspace = true } diff --git a/crates/rome_diagnostics/Cargo.toml b/crates/rome_diagnostics/Cargo.toml index e8e4e44dd81..0d2cc037c94 100644 --- a/crates/rome_diagnostics/Cargo.toml +++ b/crates/rome_diagnostics/Cargo.toml @@ -26,17 +26,16 @@ test = true [dependencies] backtrace = "0.3.66" -bitflags = "1.3.2" +bitflags = { workspace = true } bpaf = { workspace = true } -pico-args = "0.5.0" rome_console = { workspace = true, features = ["serde_markup"] } 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 } -schemars = { version = "0.8.10", optional = true } -serde = { version = "1.0.133", features = ["derive"] } +schemars = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"] } termcolor = "1.1.2" unicode-width = "0.1.9" @@ -44,5 +43,5 @@ unicode-width = "0.1.9" schema = ["schemars", "rome_text_edit/schemars", "rome_diagnostics_categories/schemars"] [dev-dependencies] -serde_json = "1.0.74" +serde_json = { workspace = true } trybuild = "1.0.80" diff --git a/crates/rome_diagnostics/src/adapters.rs b/crates/rome_diagnostics/src/adapters.rs index 5afffdb5ab9..97fde9aef9a 100644 --- a/crates/rome_diagnostics/src/adapters.rs +++ b/crates/rome_diagnostics/src/adapters.rs @@ -71,37 +71,6 @@ impl Diagnostic for IoError { } } -/// Implements [Diagnostic] over for [pico_args::Error]. -#[derive(Debug)] -pub struct PicoArgsError { - error: pico_args::Error, -} - -impl From for PicoArgsError { - fn from(error: pico_args::Error) -> Self { - Self { error } - } -} - -impl Diagnostic for PicoArgsError { - fn category(&self) -> Option<&'static Category> { - Some(category!("flags/invalid")) - } - - fn tags(&self) -> DiagnosticTags { - DiagnosticTags::FIXABLE - } - - fn description(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(fmt, "{}", self.error) - } - - fn message(&self, fmt: &mut fmt::Formatter<'_>) -> io::Result<()> { - let error = self.error.to_string(); - fmt.write_str(&error) - } -} - /// Implements [Diagnostic] over for [pico_args::Error]. #[derive(Debug)] pub struct BpafError { diff --git a/crates/rome_diagnostics/src/diagnostic.rs b/crates/rome_diagnostics/src/diagnostic.rs index 8aabc29c5ca..708e91c773b 100644 --- a/crates/rome_diagnostics/src/diagnostic.rs +++ b/crates/rome_diagnostics/src/diagnostic.rs @@ -137,6 +137,7 @@ pub(super) enum DiagnosticTag { } bitflags! { + #[derive(Default, Debug, Copy, Clone, Eq, PartialEq)] pub struct DiagnosticTags: u8 { /// This diagnostic has a fix suggestion. const FIXABLE = 1 << DiagnosticTag::Fixable as u8; diff --git a/crates/rome_diagnostics_categories/Cargo.toml b/crates/rome_diagnostics_categories/Cargo.toml index ef4ed3e8974..28b27e119b1 100644 --- a/crates/rome_diagnostics_categories/Cargo.toml +++ b/crates/rome_diagnostics_categories/Cargo.toml @@ -9,8 +9,8 @@ repository.workspace = true version = "0.0.1" [dependencies] -schemars = { version = "0.8.10", optional = true } -serde = { version = "1.0.136", optional = true } +schemars = { workspace = true, optional = true } +serde = { workspace = true, optional = true } [build-dependencies] quote = "1.0.14" diff --git a/crates/rome_formatter/Cargo.toml b/crates/rome_formatter/Cargo.toml index cba75f7b30f..589a7c81020 100644 --- a/crates/rome_formatter/Cargo.toml +++ b/crates/rome_formatter/Cargo.toml @@ -20,8 +20,8 @@ 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 } +schemars = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"], optional = true } tracing = { workspace = true } unicode-width = "0.1.9" diff --git a/crates/rome_formatter_test/Cargo.toml b/crates/rome_formatter_test/Cargo.toml index 9f72b0f76b0..9333fb98ad2 100644 --- a/crates/rome_formatter_test/Cargo.toml +++ b/crates/rome_formatter_test/Cargo.toml @@ -18,7 +18,7 @@ rome_parser = { workspace = true } rome_rowan = { workspace = true } rome_service = { workspace = true } serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde_json = { workspace = true } similar = "2.1.0" similar-asserts = "1.2.0" diff --git a/crates/rome_fs/Cargo.toml b/crates/rome_fs/Cargo.toml index 4bcaacbf943..0b65ad08a6b 100644 --- a/crates/rome_fs/Cargo.toml +++ b/crates/rome_fs/Cargo.toml @@ -15,8 +15,8 @@ parking_lot = { version = "0.12.0", features = ["arc_lock"] } rayon = "1.5.1" rome_console = { workspace = true } rome_diagnostics = { workspace = true } -schemars = { version = "0.8.10", optional = true } -serde = { version = "1.0.136", features = ["derive"], optional = true } +schemars = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"], optional = true } tracing = { workspace = true } [features] diff --git a/crates/rome_js_analyze/Cargo.toml b/crates/rome_js_analyze/Cargo.toml index 8f8767a95b4..bd5d8997506 100644 --- a/crates/rome_js_analyze/Cargo.toml +++ b/crates/rome_js_analyze/Cargo.toml @@ -26,8 +26,8 @@ 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" } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } smallvec = { workspace = true } [dev-dependencies] diff --git a/crates/rome_js_formatter/Cargo.toml b/crates/rome_js_formatter/Cargo.toml index d6657ea69f5..e864958cd03 100644 --- a/crates/rome_js_formatter/Cargo.toml +++ b/crates/rome_js_formatter/Cargo.toml @@ -21,8 +21,8 @@ rome_js_syntax = { workspace = true } rome_json_syntax = { workspace = true } rome_rowan = { workspace = true } rome_text_size = { workspace = true } -schemars = { version = "0.8.10", optional = true } -serde = { version = "1.0.136", features = ["derive"], optional = true } +schemars = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"], optional = true } tracing = { workspace = true } unicode-width = "0.1.9" @@ -39,7 +39,7 @@ rome_js_factory = { workspace = true } rome_js_parser = { workspace = true } rome_parser = { workspace = true } serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde_json = { workspace = true } tests_macros = { workspace = true } [[bench]] diff --git a/crates/rome_js_parser/Cargo.toml b/crates/rome_js_parser/Cargo.toml index 77e32e77158..993de5ca18c 100644 --- a/crates/rome_js_parser/Cargo.toml +++ b/crates/rome_js_parser/Cargo.toml @@ -11,7 +11,7 @@ repository.workspace = true version = "0.0.2" [dependencies] -bitflags.workspace = true +bitflags = { workspace = true } cfg-if = "1.0.0" drop_bomb = "0.1.5" indexmap = { workspace = true } diff --git a/crates/rome_js_syntax/Cargo.toml b/crates/rome_js_syntax/Cargo.toml index 95e877e9f5a..baa193d5efe 100644 --- a/crates/rome_js_syntax/Cargo.toml +++ b/crates/rome_js_syntax/Cargo.toml @@ -12,8 +12,8 @@ version = "0.0.2" rome_console = { workspace = 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 } +schemars = { workspace = true, optional = true } +serde = { workspace = true, features = ["derive"], optional = true } [dev-dependencies] rome_js_factory = { workspace = true } diff --git a/crates/rome_json_formatter/Cargo.toml b/crates/rome_json_formatter/Cargo.toml index eb3715e1579..fb7150a0fba 100644 --- a/crates/rome_json_formatter/Cargo.toml +++ b/crates/rome_json_formatter/Cargo.toml @@ -27,7 +27,7 @@ rome_json_factory = { workspace = true } rome_json_parser = { workspace = true } rome_parser = { workspace = true } serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde_json = { workspace = true } tests_macros = { workspace = true } # cargo-workspaces metadata diff --git a/crates/rome_lsp/Cargo.toml b/crates/rome_lsp/Cargo.toml index 9d71000b02f..82542d39721 100644 --- a/crates/rome_lsp/Cargo.toml +++ b/crates/rome_lsp/Cargo.toml @@ -21,8 +21,8 @@ rome_js_formatter = { workspace = true } rome_rowan = { workspace = true } rome_service = { workspace = true } rome_text_edit = { workspace = true } -serde = { version = "1.0.133", features = ["derive"] } -serde_json = "1.0.74" +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } tokio = { workspace = true, features = ["rt", "io-std"] } tower-lsp = { version = "0.19.0" } tracing = { workspace = true, features = ["attributes"] } diff --git a/crates/rome_rowan/Cargo.toml b/crates/rome_rowan/Cargo.toml index 7604ce319a8..9f7800b562f 100644 --- a/crates/rome_rowan/Cargo.toml +++ b/crates/rome_rowan/Cargo.toml @@ -15,15 +15,15 @@ memoffset = "0.8.0" 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 } +schemars = { workspace = true, optional = true } +serde = { workspace = true, 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" +serde_json = { workspace = true } [features] serde = ["dep:serde", "schemars", "rome_text_size/serde"] diff --git a/crates/rome_service/Cargo.toml b/crates/rome_service/Cargo.toml index f940f25bb67..7cc6793c6dd 100644 --- a/crates/rome_service/Cargo.toml +++ b/crates/rome_service/Cargo.toml @@ -32,9 +32,9 @@ rome_json_syntax = { workspace = true } rome_parser = { workspace = true } rome_rowan = { workspace = true, features = ["serde"] } rome_text_edit = { workspace = true } -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"] } +schemars = { workspace = true, features = ["indexmap1"], optional = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true, features = ["raw_value"] } tracing = { workspace = true, features = ["attributes"] } [features] diff --git a/crates/rome_text_edit/Cargo.toml b/crates/rome_text_edit/Cargo.toml index 86d4e91c1f6..f0ab1996790 100644 --- a/crates/rome_text_edit/Cargo.toml +++ b/crates/rome_text_edit/Cargo.toml @@ -10,8 +10,8 @@ version = "0.0.1" [dependencies] rome_text_size = { workspace = true, features = ["serde"] } -schemars = { version = "0.8.10", optional = true } -serde = { version = "1.0.136", features = ["derive"] } +schemars = { workspace = true, optional = true } +serde = { workspace = true, 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 d2de2961018..179d1f5f8e9 100644 --- a/crates/rome_text_size/Cargo.toml +++ b/crates/rome_text_size/Cargo.toml @@ -11,8 +11,8 @@ repository.workspace = true [dependencies] -schemars = { version = "0.8.10", optional = true } -serde = { version = "1.0", optional = true, default_features = false } +schemars = { workspace = true, optional = true } +serde = { workspace = true, 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 031e87c0177..fce0dda6d24 100644 --- a/crates/rome_wasm/Cargo.toml +++ b/crates/rome_wasm/Cargo.toml @@ -19,7 +19,7 @@ js-sys = "0.3.59" rome_console = { workspace = true } rome_diagnostics = { path = "../../crates/rome_diagnostics" } rome_service = { path = "../../crates/rome_service" } -serde = "1.0.136" +serde = { workspace = true } serde-wasm-bindgen = "0.4.5" wasm-bindgen = { version = "0.2.82", features = ["serde-serialize"] } @@ -36,5 +36,5 @@ rome_js_factory = { workspace = true } rome_js_formatter = { workspace = true } rome_rowan = { workspace = true } rome_service = { workspace = true, features = ["schemars"] } -schemars = "0.8.10" -serde_json = "1.0.79" +schemars = { workspace = true } +serde_json = { workspace = true } diff --git a/justfile b/justfile index eb0e6554ec1..cf4c106445f 100644 --- a/justfile +++ b/justfile @@ -4,6 +4,7 @@ _default: alias f := format alias t := test alias r := ready +alias l := lint # Installs the tools needed to develop with Rome @@ -89,6 +90,10 @@ test-lintrule name: cargo test -p rome_js_analyze -- {{snakecase(name)}} cargo test -p rome_json_analyze -- {{snakecase(name)}} +# Alias for `cargo lint`, it runs clippy on the whole codebase +lint: + cargo lint + # When you finished coding, run this command to run the same commands in the CI. ready: git diff --exit-code --quiet