-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into paste_refresh
- Loading branch information
Showing
31 changed files
with
783 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "rustyline" | ||
version = "12.0.0" | ||
version = "14.0.0" | ||
authors = ["Katsu Kawakami <[email protected]>"] | ||
edition = "2021" | ||
description = "Rustyline, a readline implementation based on Antirez's Linenoise" | ||
|
@@ -23,39 +23,39 @@ maintenance = { status = "actively-developed" } | |
members = ["rustyline-derive"] | ||
|
||
[dependencies] | ||
bitflags = "2.0" | ||
bitflags = "2.6" | ||
cfg-if = "1.0" | ||
# For file completion | ||
home = { version = "0.5.4", optional = true } | ||
# For History | ||
fd-lock = { version = "4.0.0", optional = true } | ||
rusqlite = { version = "0.29.0", optional = true, default-features = false, features = ["bundled", "backup"] } | ||
libc = "0.2" | ||
log = "0.4" | ||
unicode-width = "0.1" | ||
rusqlite = { version = "0.32.0", optional = true, default-features = false, features = ["bundled", "backup"] } | ||
libc = "0.2.155" | ||
log = "0.4.22" | ||
unicode-width = "0.1.13" | ||
unicode-segmentation = "1.0" | ||
memchr = "2.0" | ||
memchr = "2.7" | ||
# For custom bindings | ||
radix_trie = { version = "0.2", optional = true } | ||
regex = { version = "1.5.5", optional = true } | ||
regex = { version = "1.10", optional = true } | ||
# For derive | ||
rustyline-derive = { version = "0.9.0", optional = true, path = "rustyline-derive" } | ||
rustyline-derive = { version = "0.10.0", optional = true, path = "rustyline-derive" } | ||
|
||
[target.'cfg(unix)'.dependencies] | ||
nix = { version = "0.27", default-features = false, features = ["fs", "ioctl", "poll", "signal", "term"] } | ||
nix = { version = "0.29", default-features = false, features = ["fs", "ioctl", "poll", "signal", "term"] } | ||
utf8parse = "0.2" | ||
skim = { version = "0.10", optional = true, default-features = false } | ||
signal-hook = { version = "0.3", optional = true, default-features = false } | ||
termios = "0.3.3" | ||
termios = { version = "0.3.3", optional = true } | ||
buffer-redux = { version = "1.0", optional = true, default-features = false } | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
winapi = { version = "0.3", features = ["consoleapi", "handleapi", "synchapi", "minwindef", "processenv", "std", "synchapi", "winbase", "wincon", "winerror", "winuser"] } | ||
scopeguard = "1.1" | ||
clipboard-win = "4.5" | ||
windows-sys = { version = "0.59.0", features = ["Win32_Foundation", "Win32_System_Console", "Win32_Security", "Win32_System_Threading", "Win32_UI_Input_KeyboardAndMouse"] } | ||
clipboard-win = "5.0" | ||
|
||
[dev-dependencies] | ||
doc-comment = "0.3" | ||
env_logger = { version = "0.10", default-features = false } | ||
env_logger = { version = "0.11", default-features = false } | ||
tempfile = "3.1.0" | ||
rand = "0.8" | ||
assert_matches = "1.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Mapping between linenoise API and rustyline API | ||
|
||
| linenoise | rustyline | Remarks | | ||
|--------------------------------|------------------------------|---------------------------| | ||
| linenoiseState | State | | | ||
| *Blocking API* | | ||
| linenoise | Editor::readline | | ||
| linenoiseFree | _ | RAII | | ||
| *Non blocking API* | | | ||
| linenoiseEditStart | _ | | ||
| linenoiseEditFeed | _ | | ||
| linenoiseEditStop | _ | | ||
| linenoiseHide | Renderer::clear_rows | | ||
| linenoiseShow | State::refresh_line | | ||
| *Completion API* | | ||
| linenoiseCompletions | Vec<Candidate> | | ||
| linenoiseCompletionCallback | Completer | | ||
| linenoiseAddCompletion | _ | std Vec::add | | ||
| linenoiseSetCompletionCallback | Editor::set_helper | | ||
| linenoiseHintsCallback | Hinter | | ||
| linenoiseSetHintsCallback | Editor::set_helper | | ||
| linenoiseFreeHintsCallback | _ | RAII | | ||
| linenoiseSetFreeHintsCallback | _ | RAII | | ||
| *History API* | | ||
| linenoiseHistoryAdd | Editor::add_history_entry | | ||
| linenoiseHistorySetMaxLen | Editor::set_max_history_size | | ||
| linenoiseHistorySave | Editor::save_history | | ||
| linenoiseHistoryLoad | Editor::load_history | | ||
| *Other utilities* | | ||
| linenoiseClearScreen | Editor::clear_screen | | ||
| linenoiseSetMultiLine | _ | Always activated | | ||
| linenoisePrintKeyCodes | _ | debug logs | | ||
| linenoiseMaskModeEnable | _ | see read_password example | | ||
| linenoiseMaskModeDisable | _ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.