Skip to content

Commit 5400128

Browse files
authored
Update rustyline to v0.11 (#313)
1 parent b40092d commit 5400128

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- --features serde
2424
toolchain:
2525
- stable
26-
- 1.60.0
26+
- 1.62.0
2727
name: test
2828
steps:
2929
- name: Checkout sources
@@ -78,7 +78,7 @@ jobs:
7878
matrix:
7979
toolchain:
8080
- stable
81-
- 1.60.0
81+
- 1.62.0
8282
name: test simple_login command-line example
8383
steps:
8484
- name: install expect
@@ -101,7 +101,7 @@ jobs:
101101
matrix:
102102
toolchain:
103103
- stable
104-
- 1.60.0
104+
- 1.62.0
105105
name: test digital_locker command-line example
106106
steps:
107107
- name: install expect

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "Apache-2.0 OR MIT"
88
name = "opaque-ke"
99
readme = "README.md"
1010
repository = "https://github.com/novifinancial/opaque-ke"
11-
rust-version = "1.60"
11+
rust-version = "1.62"
1212
version = "3.0.0-pre.1"
1313

1414
[features]
@@ -62,7 +62,7 @@ proptest = "1"
6262
rand = "0.8"
6363
regex = "1"
6464
# MSRV
65-
rustyline = "10.1.1"
65+
rustyline = "11"
6666
scrypt = "0.10"
6767
serde_json = "1"
6868

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ opaque-ke = "3.0.0-pre.1"
2727

2828
### Minimum Supported Rust Version
2929

30-
Rust **1.60** or higher.
30+
Rust **1.62** or higher.
3131

3232
Audit
3333
-----

examples/digital_locker.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ use opaque_ke::{
4040
ServerLoginStartParameters, ServerRegistration, ServerRegistrationLen, ServerSetup,
4141
};
4242
use rustyline::error::ReadlineError;
43+
use rustyline::history::DefaultHistory;
4344
use rustyline::Editor;
4445

4546
// The ciphersuite trait allows to specify the underlying primitives that will
@@ -216,7 +217,7 @@ fn main() {
216217
let mut rng = OsRng;
217218
let server_setup = ServerSetup::<DefaultCipherSuite>::new(&mut rng);
218219

219-
let mut rl = Editor::<()>::new().unwrap();
220+
let mut rl = Editor::<(), _>::new().unwrap();
220221
let mut registered_lockers: Vec<Locker> = vec![];
221222
loop {
222223
display_lockers(&registered_lockers);
@@ -323,7 +324,7 @@ fn handle_error(err: ReadlineError) {
323324
fn get_two_strings(
324325
s1: &str,
325326
s2: &str,
326-
rl: &mut Editor<()>,
327+
rl: &mut Editor<(), DefaultHistory>,
327328
string1: Option<String>,
328329
) -> (String, String) {
329330
let query = if string1.is_none() { s1 } else { s2 };

examples/simple_login.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ use opaque_ke::{
3535
ServerLoginStartParameters, ServerRegistration, ServerRegistrationLen, ServerSetup,
3636
};
3737
use rustyline::error::ReadlineError;
38+
use rustyline::history::DefaultHistory;
3839
use rustyline::Editor;
3940

4041
// The ciphersuite trait allows to specify the underlying primitives that will
@@ -160,7 +161,7 @@ fn main() {
160161
let mut rng = OsRng;
161162
let server_setup = ServerSetup::<DefaultCipherSuite>::new(&mut rng);
162163

163-
let mut rl = Editor::<()>::new().unwrap();
164+
let mut rl = Editor::<(), _>::new().unwrap();
164165
let mut registered_users =
165166
HashMap::<String, GenericArray<u8, ServerRegistrationLen<DefaultCipherSuite>>>::new();
166167
loop {
@@ -237,7 +238,7 @@ fn handle_error(err: ReadlineError) {
237238
fn get_two_strings(
238239
s1: &str,
239240
s2: &str,
240-
rl: &mut Editor<()>,
241+
rl: &mut Editor<(), DefaultHistory>,
241242
string1: Option<String>,
242243
) -> (String, String) {
243244
let query = if string1.is_none() { s1 } else { s2 };

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//!
1515
//! ### Minimum Supported Rust Version
1616
//!
17-
//! Rust **1.60** or higher.
17+
//! Rust **1.62** or higher.
1818
//!
1919
//! # Overview
2020
//!

0 commit comments

Comments
 (0)