Skip to content

Commit

Permalink
Update depenendencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwes committed Jul 29, 2019
1 parent 595a094 commit ec1d26d
Show file tree
Hide file tree
Showing 12 changed files with 739 additions and 652 deletions.
1,325 changes: 705 additions & 620 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ tokio-tcp = { version = "0.1", optional = true }
compiletest_rs = { version = "0.3", optional = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
rand = { version = "0.6", optional = true }
rand_xorshift = { version = "0.1", optional = true }
rand = { version = "0.7", optional = true }
rand_xorshift = { version = "0.2", optional = true }

[build-dependencies]
gluon_base = { path = "base", version = "0.12.0" } # GLUON
Expand All @@ -73,7 +73,7 @@ criterion = "0.2"
tensile = "0.4"
collect-mac = "0.1.0"
env_logger = "0.6"
pretty_assertions = "0.5"
pretty_assertions = "0.6"
futures-cpupool = "0.1.8"
tokio = "0.1.7"
tokio-retry = "0.2"
Expand All @@ -88,7 +88,7 @@ serde_derive_state = { version = "0.4.0" }
serde_json = "1.0.0"
bincode = "1"

pulldown-cmark = "0.2"
pulldown-cmark = "0.5"

gluon_completion = { path = "completion", version = "0.12.0" } # GLUON
gluon_codegen = { path = "codegen", version = "0.12.0" } # GLUON
Expand Down
3 changes: 1 addition & 2 deletions base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ ordered-float = "1"
codespan = "0.3"
codespan-reporting = "0.3"
either = "1"
stable_deref_trait = "1"
vec_map = "0.8"

serde = { version = "1.0.0", features = ["rc"], optional = true }
Expand All @@ -38,7 +37,7 @@ serde_derive = { version = "1.0.0", optional = true }
serde_derive_state = { version = "0.4.0", optional = true }

[dev-dependencies]
pretty_assertions = "0.5"
pretty_assertions = "0.6"

[features]
serialization = ["serde", "serde_state", "serde_derive", "serde_derive_state"]
4 changes: 0 additions & 4 deletions base/src/kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ use std::sync::Arc;

use pretty::{Doc, DocAllocator, DocBuilder};

use stable_deref_trait::StableDeref;

use crate::ast::EmptyEnv;
use crate::symbol::{Symbol, SymbolRef};
use crate::types::{ToDoc, Walker};
Expand Down Expand Up @@ -171,8 +169,6 @@ impl ArcKind {
}
}

unsafe impl StableDeref for ArcKind {}

impl Deref for ArcKind {
type Target = Kind;

Expand Down
5 changes: 0 additions & 5 deletions base/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ use pretty::{Arena, Doc, DocAllocator, DocBuilder};

use smallvec::SmallVec;

use stable_deref_trait::StableDeref;

use itertools::Itertools;

use crate::{
Expand Down Expand Up @@ -1353,9 +1351,6 @@ impl<Id> fmt::Pointer for ArcType<Id> {
}
}

// Safe since `Arc` implements it
unsafe impl<Id> StableDeref for ArcType<Id> {}

impl<Id> Borrow<Type<Id, ArcType<Id>>> for ArcType<Id> {
fn borrow(&self) -> &Type<Id, ArcType<Id>> {
self
Expand Down
7 changes: 3 additions & 4 deletions check/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ itertools = "0.8"
union-find = "0.3.1"
pretty = "0.5"
smallvec = "0.6"
rpds = "0.5"
stable_deref_trait = "1"
rpds = "0.6"
quick-error = "1"

codespan = "0.3"
codespan-reporting = "0.3"

strsim = "0.8.0"
strsim = "0.9.0"

gluon_base = { path = "../base", version = "0.12.0" } # GLUON
gluon_codegen = { path = "../codegen", version = "0.12.0" } # GLUON
Expand All @@ -42,5 +41,5 @@ gluon_format = { path = "../format", version = ">=0.9" }

collect-mac = "0.1.0"
difference = "2"
pretty_assertions = "0.5"
pretty_assertions = "0.6"

8 changes: 4 additions & 4 deletions doc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ documentation = "https://docs.rs/gluon"
clap = "2.22.0"
env_logger = "0.6"
failure = { version = "0.1", features = ["backtrace"] }
handlebars = "1.0.0-beta.4"
handlebars = "2"
itertools = "0.8"
lazy_static = "1"
log = "0.4"
opener = "0.3"
opener = "0.4"
pretty = "0.5"
pulldown-cmark = "0.2"
pulldown-cmark = "0.5"
rayon = "1"
regex = "1"
structopt = "0.2"
walkdir = "1"
walkdir = "2"

serde = "1.0.0"
serde_derive = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion format/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gluon_base = { path = "../base", version = "0.12.0" } # GLUON
[dev-dependencies]
env_logger = "0.6"
difference = "2"
pretty_assertions = "0.5"
pretty_assertions = "0.6"
gluon_base = { path = "../base", version = "0.12.0" } # GLUON
gluon = { path = "..", version = ">=0.9" }

Expand Down
2 changes: 1 addition & 1 deletion parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ codespan-reporting = "0.3"
[dev-dependencies]
env_logger = "0.6"
difference = "2"
pretty_assertions = "0.5"
pretty_assertions = "0.6"

[build-dependencies]
lalrpop = "0.17"
6 changes: 3 additions & 3 deletions repl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ structopt = "0.2"
structopt-derive = "0.2"
log = "0.4"
env_logger = { version = "0.6", optional = true }
lazy_static = "0.2.0"
rustyline = "1.0.0"
lazy_static = "1"
rustyline = "5"
walkdir = "2"
codespan = "0.3"
codespan-reporting = "0.3"
Expand All @@ -49,7 +49,7 @@ serde = "1"
serde_derive = "1"

[dev-dependencies]
pretty_assertions = "0.5"
pretty_assertions = "0.6"

[target.'cfg(unix)'.dev-dependencies]
rexpect = "0.3.0"
Expand Down
17 changes: 15 additions & 2 deletions repl/src/repl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,21 @@ fn complete(thread: &Thread, name: &str, fileinput: &str, pos: usize) -> GluonRe

struct Completer(RootedThread);

impl rustyline::Helper for Completer {}

impl rustyline::hint::Hinter for Completer {}

impl rustyline::highlight::Highlighter for Completer {}

impl rustyline::completion::Completer for Completer {
fn complete(&self, line: &str, pos: usize) -> rustyline::Result<(usize, Vec<String>)> {
type Candidate = String;

fn complete(
&self,
line: &str,
pos: usize,
_: &rustyline::Context,
) -> rustyline::Result<(usize, Vec<String>)> {
let result = complete(&self.0, "<repl>", line, pos);

// Get the start of the completed identifier
Expand Down Expand Up @@ -249,7 +262,7 @@ fn new_editor(vm: WithVM<()>) -> IO<Editor> {
if let Err(err) = history_result {
warn!("Unable to load history: {}", err);
}
editor.set_completer(Some(Completer(vm.vm.root_thread())));
editor.set_helper(Some(Completer(vm.vm.root_thread())));
IO::Value(Editor {
editor: Mutex::new(editor),
})
Expand Down
4 changes: 2 additions & 2 deletions vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bitflags = "1.0.0"
codespan = "0.3"
collect-mac = "0.1.0"
crossbeam-utils = "0.6"
frunk_core = "0.2"
frunk_core = "0.3"
futures = "0.1.0"
itertools = "0.8"
log = "0.4"
Expand All @@ -48,7 +48,7 @@ lalrpop = { version = "0.17", optional = true }

[dev-dependencies]
env_logger = "0.6"
pretty_assertions = "0.5"
pretty_assertions = "0.6"

# HACK Trick crates.io into letting letting this be published with a dependency on gluon
# (which requires gluon_vm to be published)
Expand Down

0 comments on commit ec1d26d

Please sign in to comment.