From 5f050f0e4c3e7aaa6a5ad131e184136d95b1fbcb Mon Sep 17 00:00:00 2001 From: Robbepop Date: Fri, 10 Feb 2017 17:56:39 +0100 Subject: [PATCH] fixed dependencies --- Cargo.lock | 10 ++++++++++ Cargo.toml | 3 ++- src/main.rs | 1 + src/parser/Cargo.toml | 3 +-- src/parser/lexer.rs | 2 ++ src/parser/lib.rs | 1 - 6 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3da7770..6f87fd0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,6 +4,7 @@ version = "0.1.0" dependencies = [ "cionc_parser 0.0.1", "clap 2.20.3 (registry+https://github.com/rust-lang/crates.io-index)", + "string-interner 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -19,6 +20,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "cionc_parser" version = "0.0.1" +dependencies = [ + "string-interner 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", +] [[package]] name = "clap" @@ -49,6 +53,11 @@ name = "libc" version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "string-interner" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "strsim" version = "0.6.0" @@ -95,6 +104,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum clap 2.20.3 (registry+https://github.com/rust-lang/crates.io-index)" = "f89819450aa94325998aa83ce7ea142db11ad24c725d6bc48459845e0d6d9f18" "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" "checksum libc 0.2.20 (registry+https://github.com/rust-lang/crates.io-index)" = "684f330624d8c3784fb9558ca46c4ce488073a8d22450415c5eb4f4cfb0d11b5" +"checksum string-interner 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "99db7652b84954cca29f4b3988399023015530ef5b63a9613a56ae2d30cea9a2" "checksum strsim 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b4d15c810519a91cf877e7e36e63fe068815c678181439f2f29e2562147c3694" "checksum term_size 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "71662702fe5cd2cf95edd4ad655eea42f24a87a0e44059cbaa4e55260b7bc331" "checksum unicode-segmentation 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "18127285758f0e2c6cf325bb3f3d138a12fee27de4f23e146cd6a179f26c2cf3" diff --git a/Cargo.toml b/Cargo.toml index 4c12cd0..1eace65 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,8 @@ name = "cionc" path = "src/parser" [dependencies] -clap = "2.20" +clap = "2.2" +string-interner = "0.2.1" [[test]] name = "test_cionc_parser" diff --git a/src/main.rs b/src/main.rs index 8660c1e..dcedf9f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ extern crate clap; extern crate cionc_parser; +extern crate string_interner; use clap::{Arg, App}; diff --git a/src/parser/Cargo.toml b/src/parser/Cargo.toml index 00c9b0b..4c9c702 100644 --- a/src/parser/Cargo.toml +++ b/src/parser/Cargo.toml @@ -8,5 +8,4 @@ name = "cionc_parser" path = "lib.rs" [dependencies] -string-interner = "0.2" -num-traits = "0" \ No newline at end of file +string-interner = "0.2.1" diff --git a/src/parser/lexer.rs b/src/parser/lexer.rs index c8aedba..daadc86 100644 --- a/src/parser/lexer.rs +++ b/src/parser/lexer.rs @@ -1276,6 +1276,7 @@ mod tests { } #[test] + #[allow(non_snake_case)] fn binary_integer_literals() { use token::Token::{Literal, Whitespace}; use token::LiteralToken::Integer; @@ -1306,6 +1307,7 @@ mod tests { } #[test] + #[allow(non_snake_case)] fn octal_integer_literals() { use token::Token::{Literal, Whitespace}; use token::LiteralToken::Integer; diff --git a/src/parser/lib.rs b/src/parser/lib.rs index a6c2172..ffa6179 100644 --- a/src/parser/lib.rs +++ b/src/parser/lib.rs @@ -1,5 +1,4 @@ extern crate string_interner; -extern crate num_traits; pub mod name; pub mod token;