From 4a7cd50e4b4c16b33dc57a81151a85e52934e44f Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Sun, 17 Mar 2019 14:50:57 -0600 Subject: [PATCH] use new readline crate --- Cargo.lock | 8 ++++---- Cargo.toml | 5 +---- src/main.rs | 2 +- src/prolog/read.rs | 2 +- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a24efcdd..4672122a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,9 +97,9 @@ dependencies = [ ] [[package]] -name = "readline-sys" +name = "readline-rs" version = "0.1.0" -source = "git+https://github.com/mthom/readline-sys#e529b03ae3c723fc45b06784b1c67aa0b4c322ae" +source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "redox_syscall" @@ -122,7 +122,7 @@ dependencies = [ "num 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "ordered-float 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "prolog_parser 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", - "readline-sys 0.1.0 (git+https://github.com/mthom/readline-sys)", + "readline-rs 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -162,7 +162,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1" "checksum ordered-float 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7eb5259643245d3f292c7a146b2df53bba24d7eab159410e648eb73dc164669d" "checksum prolog_parser 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6da85e0cfa5a604edf65f753e629db37bfd04af93a09a1df5576d2197a2f7af3" -"checksum readline-sys 0.1.0 (git+https://github.com/mthom/readline-sys)" = "" +"checksum readline-rs 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "eff1a6cf9fa562f0c40ec31d3f50b2e2a1924801926e706c932d616037fe199d" "checksum redox_syscall 0.1.51 (registry+https://github.com/rust-lang/crates.io-index)" = "423e376fffca3dfa06c9e9790a9ccd282fafb3cc6e6397d01dbf64f9bacc6b85" "checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76" "checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096" diff --git a/Cargo.toml b/Cargo.toml index 558ebefb..e31d436a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,10 +11,7 @@ downcast = "0.9.1" num = "0.2" ordered-float = "0.5.0" prolog_parser = "0.8.1" -readline-sys = "0.1.0" - -[patch.crates-io] -readline-sys = { git = 'https://github.com/mthom/readline-sys' } +readline_rs = { package = "readline-rs", version = "*" } [dependencies.termion] version = "1.4.0" \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index d04dbc69..ca214421 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ #[macro_use] extern crate downcast; #[macro_use] extern crate prolog_parser; -extern crate readline_sys; +extern crate readline_rs; extern crate termion; mod prolog; diff --git a/src/prolog/read.rs b/src/prolog/read.rs index 309e0f7d..6416ce1f 100644 --- a/src/prolog/read.rs +++ b/src/prolog/read.rs @@ -11,7 +11,7 @@ use prolog::machine::machine_state::MachineState; use std::collections::VecDeque; use std::io::Read; -use readline_sys::readline::*; +use readline_rs::readline::*; type SubtermDeque = VecDeque<(usize, usize)>; -- 2.54.0