Update rustyline to v0.11 (#313)
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
|||||||
- --features serde
|
- --features serde
|
||||||
toolchain:
|
toolchain:
|
||||||
- stable
|
- stable
|
||||||
- 1.60.0
|
- 1.62.0
|
||||||
name: test
|
name: test
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
@@ -78,7 +78,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
toolchain:
|
toolchain:
|
||||||
- stable
|
- stable
|
||||||
- 1.60.0
|
- 1.62.0
|
||||||
name: test simple_login command-line example
|
name: test simple_login command-line example
|
||||||
steps:
|
steps:
|
||||||
- name: install expect
|
- name: install expect
|
||||||
@@ -101,7 +101,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
toolchain:
|
toolchain:
|
||||||
- stable
|
- stable
|
||||||
- 1.60.0
|
- 1.62.0
|
||||||
name: test digital_locker command-line example
|
name: test digital_locker command-line example
|
||||||
steps:
|
steps:
|
||||||
- name: install expect
|
- name: install expect
|
||||||
|
|||||||
+2
-2
@@ -8,7 +8,7 @@ license = "Apache-2.0 OR MIT"
|
|||||||
name = "opaque-ke"
|
name = "opaque-ke"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/novifinancial/opaque-ke"
|
repository = "https://github.com/novifinancial/opaque-ke"
|
||||||
rust-version = "1.60"
|
rust-version = "1.62"
|
||||||
version = "3.0.0-pre.1"
|
version = "3.0.0-pre.1"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
@@ -62,7 +62,7 @@ proptest = "1"
|
|||||||
rand = "0.8"
|
rand = "0.8"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
# MSRV
|
# MSRV
|
||||||
rustyline = "10.1.1"
|
rustyline = "11"
|
||||||
scrypt = "0.10"
|
scrypt = "0.10"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ opaque-ke = "3.0.0-pre.1"
|
|||||||
|
|
||||||
### Minimum Supported Rust Version
|
### Minimum Supported Rust Version
|
||||||
|
|
||||||
Rust **1.60** or higher.
|
Rust **1.62** or higher.
|
||||||
|
|
||||||
Audit
|
Audit
|
||||||
-----
|
-----
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ use opaque_ke::{
|
|||||||
ServerLoginStartParameters, ServerRegistration, ServerRegistrationLen, ServerSetup,
|
ServerLoginStartParameters, ServerRegistration, ServerRegistrationLen, ServerSetup,
|
||||||
};
|
};
|
||||||
use rustyline::error::ReadlineError;
|
use rustyline::error::ReadlineError;
|
||||||
|
use rustyline::history::DefaultHistory;
|
||||||
use rustyline::Editor;
|
use rustyline::Editor;
|
||||||
|
|
||||||
// The ciphersuite trait allows to specify the underlying primitives that will
|
// The ciphersuite trait allows to specify the underlying primitives that will
|
||||||
@@ -216,7 +217,7 @@ fn main() {
|
|||||||
let mut rng = OsRng;
|
let mut rng = OsRng;
|
||||||
let server_setup = ServerSetup::<DefaultCipherSuite>::new(&mut rng);
|
let server_setup = ServerSetup::<DefaultCipherSuite>::new(&mut rng);
|
||||||
|
|
||||||
let mut rl = Editor::<()>::new().unwrap();
|
let mut rl = Editor::<(), _>::new().unwrap();
|
||||||
let mut registered_lockers: Vec<Locker> = vec![];
|
let mut registered_lockers: Vec<Locker> = vec![];
|
||||||
loop {
|
loop {
|
||||||
display_lockers(®istered_lockers);
|
display_lockers(®istered_lockers);
|
||||||
@@ -323,7 +324,7 @@ fn handle_error(err: ReadlineError) {
|
|||||||
fn get_two_strings(
|
fn get_two_strings(
|
||||||
s1: &str,
|
s1: &str,
|
||||||
s2: &str,
|
s2: &str,
|
||||||
rl: &mut Editor<()>,
|
rl: &mut Editor<(), DefaultHistory>,
|
||||||
string1: Option<String>,
|
string1: Option<String>,
|
||||||
) -> (String, String) {
|
) -> (String, String) {
|
||||||
let query = if string1.is_none() { s1 } else { s2 };
|
let query = if string1.is_none() { s1 } else { s2 };
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ use opaque_ke::{
|
|||||||
ServerLoginStartParameters, ServerRegistration, ServerRegistrationLen, ServerSetup,
|
ServerLoginStartParameters, ServerRegistration, ServerRegistrationLen, ServerSetup,
|
||||||
};
|
};
|
||||||
use rustyline::error::ReadlineError;
|
use rustyline::error::ReadlineError;
|
||||||
|
use rustyline::history::DefaultHistory;
|
||||||
use rustyline::Editor;
|
use rustyline::Editor;
|
||||||
|
|
||||||
// The ciphersuite trait allows to specify the underlying primitives that will
|
// The ciphersuite trait allows to specify the underlying primitives that will
|
||||||
@@ -160,7 +161,7 @@ fn main() {
|
|||||||
let mut rng = OsRng;
|
let mut rng = OsRng;
|
||||||
let server_setup = ServerSetup::<DefaultCipherSuite>::new(&mut rng);
|
let server_setup = ServerSetup::<DefaultCipherSuite>::new(&mut rng);
|
||||||
|
|
||||||
let mut rl = Editor::<()>::new().unwrap();
|
let mut rl = Editor::<(), _>::new().unwrap();
|
||||||
let mut registered_users =
|
let mut registered_users =
|
||||||
HashMap::<String, GenericArray<u8, ServerRegistrationLen<DefaultCipherSuite>>>::new();
|
HashMap::<String, GenericArray<u8, ServerRegistrationLen<DefaultCipherSuite>>>::new();
|
||||||
loop {
|
loop {
|
||||||
@@ -237,7 +238,7 @@ fn handle_error(err: ReadlineError) {
|
|||||||
fn get_two_strings(
|
fn get_two_strings(
|
||||||
s1: &str,
|
s1: &str,
|
||||||
s2: &str,
|
s2: &str,
|
||||||
rl: &mut Editor<()>,
|
rl: &mut Editor<(), DefaultHistory>,
|
||||||
string1: Option<String>,
|
string1: Option<String>,
|
||||||
) -> (String, String) {
|
) -> (String, String) {
|
||||||
let query = if string1.is_none() { s1 } else { s2 };
|
let query = if string1.is_none() { s1 } else { s2 };
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@
|
|||||||
//!
|
//!
|
||||||
//! ### Minimum Supported Rust Version
|
//! ### Minimum Supported Rust Version
|
||||||
//!
|
//!
|
||||||
//! Rust **1.60** or higher.
|
//! Rust **1.62** or higher.
|
||||||
//!
|
//!
|
||||||
//! # Overview
|
//! # Overview
|
||||||
//!
|
//!
|
||||||
|
|||||||
Reference in New Issue
Block a user