From 5d00ab85ee61d6f94dd9ed9d4d5fd9df1aadc2b0 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 30 Mar 2022 12:08:30 +0800 Subject: [PATCH] Move `rustyline` patch to [patch] section. --- Cargo.toml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f78f6541..c103eabf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,9 +31,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo serde_json = { version = "1.0", default-features = false, features = ["alloc"], optional = true } unicode-xid = { version = "0.2", default-features = false, optional = true } rust_decimal = { version = "1.16", default-features = false, features = ["maths"], optional = true } -# notice that a custom modified version of `rustyline` is used which supports bracketed paste on Windows -# this can be moved to the official version when bracketed paste is added -rustyline = { version = "9", optional = true, git = "https://github.com/schungx/rustyline" } +rustyline = { version = "9", optional = true } [dev-dependencies] serde_bytes = "0.11" @@ -91,3 +89,8 @@ instant = { version = "0.1.10" } # WASM implementation of std::time::Instant [package.metadata.docs.rs] features = ["metadata", "serde", "internals", "decimal", "debugging"] + +[patch.crates-io] +# Notice that a custom modified version of `rustyline` is used which supports bracketed paste on Windows. +# This can be moved to the official version when bracketed paste is added. +rustyline = { git = "https://github.com/schungx/rustyline" }