diff --git a/blog/package.json b/blog/package.json index 2d984deeb744..3953b943730f 100644 --- a/blog/package.json +++ b/blog/package.json @@ -12,7 +12,7 @@ "dependencies": { "@mdx-js/loader": "^2.3.0", "@mdx-js/react": "^2.3.0", - "@next/mdx": "^13.2.4", + "@next/mdx": "^13.5.4", "autoprefixer": "^10.4.7", "dd-trace": "^3.16.0", "clsx": "^1.2.0", @@ -21,7 +21,7 @@ "mdast-util-to-string": "^3.2.0", "mdx-annotations": "^0.1.3", "motion": "^10.15.5", - "next": "13.4.2", + "next": "13.5.4", "next-themes": "^0.2.1", "postcss-focus-visible": "^6.0.4", "react": "18.2.0", diff --git a/core/Cargo.lock b/core/Cargo.lock index 43b9134d5030..077c1a01038b 100644 --- a/core/Cargo.lock +++ b/core/Cargo.lock @@ -259,17 +259,6 @@ version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1181e1e0d1fce796a03db1ae795d67167da795f9cf4a39c37589e85ef57f26d3" -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi 0.1.19", - "libc", - "winapi", -] - [[package]] name = "autocfg" version = "1.1.0" @@ -589,45 +578,6 @@ dependencies = [ "phf_codegen", ] -[[package]] -name = "clap" -version = "3.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ea181bf566f71cb9a5d17a59e1871af638180a18fb0035c92ae62b705207123" -dependencies = [ - "atty", - "bitflags", - "clap_derive", - "clap_lex", - "indexmap", - "once_cell", - "strsim", - "termcolor", - "textwrap", -] - -[[package]] -name = "clap_derive" -version = "3.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae6371b8bdc8b7d3959e9cf7b22d4435ef3e79e138688421ec654acf8c81b008" -dependencies = [ - "heck", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "clap_lex" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" -dependencies = [ - "os_str_bytes", -] - [[package]] name = "cloud-storage" version = "0.11.1" @@ -651,17 +601,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "colored" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3616f750b84d8f0de8a58bda93e08e2a81ad3f523089b05f1dffecab48c6cbd" -dependencies = [ - "atty", - "lazy_static", - "winapi", -] - [[package]] name = "concurrent-queue" version = "2.2.0" @@ -915,9 +854,7 @@ dependencies = [ "blake3", "bstr 0.2.17", "chrono", - "clap", "cloud-storage", - "colored", "deno_core", "dns-lookup", "eventsource-client", @@ -1302,15 +1239,6 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" -[[package]] -name = "hermit-abi" -version = "0.1.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" -dependencies = [ - "libc", -] - [[package]] name = "hermit-abi" version = "0.2.6" @@ -1907,12 +1835,6 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "os_str_bytes" -version = "6.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d5d9eb14b174ee9aa2ef96dc2b94637a2d4b6e7cb873c7e171f0c20c6cf3eac" - [[package]] name = "overload" version = "0.1.1" @@ -2185,30 +2107,6 @@ dependencies = [ "toml_edit", ] -[[package]] -name = "proc-macro-error" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" -dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "syn 1.0.109", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" -dependencies = [ - "proc-macro2", - "quote", - "version_check", -] - [[package]] name = "proc-macro2" version = "1.0.66" @@ -2876,12 +2774,6 @@ dependencies = [ "unicode-normalization", ] -[[package]] -name = "strsim" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" - [[package]] name = "strum" version = "0.25.0" @@ -2975,21 +2867,6 @@ dependencies = [ "unic-segment", ] -[[package]] -name = "termcolor" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "textwrap" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" - [[package]] name = "thiserror" version = "1.0.40" diff --git a/core/Cargo.toml b/core/Cargo.toml index 9f0830801642..97c5baaf3175 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -13,8 +13,6 @@ serde = { version = "1.0", features = ["rc", "derive"] } serde_json = "1.0" pest = "2.0" pest_derive = "2.0" -clap = { version = "3.2", features = ["derive"] } -colored = "2.0" shellexpand = "2.1" blake3 = "1.3" async-trait = "0.1" diff --git a/core/src/utils.rs b/core/src/utils.rs index e40a7917518d..4cdf6116ec75 100644 --- a/core/src/utils.rs +++ b/core/src/utils.rs @@ -1,6 +1,5 @@ use anyhow::Result; use async_std::path::PathBuf; -use colored::Colorize; use std::io::Write; use uuid::Uuid; @@ -83,23 +82,23 @@ pub fn utc_date_from(millis: u64) -> String { // TODO(spolu): maybe make async eventually pub fn info(msg: &str) { - println!("{} {}", "[i]".yellow(), msg); + println!("{} {}", "[i]", msg); } pub fn action(msg: &str) { - println!("{} {}", "[·]".blue(), msg); + println!("{} {}", "[·]", msg); } pub fn error(msg: &str) { - println!("{} {}", "[!]".red(), msg); + println!("{} {}", "[!]", msg); } pub fn done(msg: &str) { - println!("{} {}", "[✓]".green(), msg); + println!("{} {}", "[✓]", msg); } pub fn confirm(msg: &str) -> Result { - print!("{} {} Confirm ([y]/n) ? ", "[?]".cyan(), msg); + print!("{} {} Confirm ([y]/n) ? ", "[?]", msg); std::io::stdout().flush()?; let mut input = String::new();