Don't depend on num and ordered-float in the db and query crates, r=ncalexan (#223)
Signed-off-by: Victor Porof <victor.porof@gmail.com>
This commit is contained in:
parent
4d83aafa2a
commit
c585715224
8 changed files with 7 additions and 19 deletions
|
@ -5,9 +5,6 @@ version = "0.0.1"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
error-chain = "0.8.0"
|
error-chain = "0.8.0"
|
||||||
lazy_static = "0.2.2"
|
lazy_static = "0.2.2"
|
||||||
# TODO: don't depend on num and ordered-float; expose helpers in edn abstracting necessary constructors.
|
|
||||||
num = "0.1.35"
|
|
||||||
ordered-float = "0.4.0"
|
|
||||||
|
|
||||||
[dependencies.rusqlite]
|
[dependencies.rusqlite]
|
||||||
version = "0.9.3"
|
version = "0.9.3"
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
extern crate error_chain;
|
extern crate error_chain;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
extern crate num;
|
|
||||||
extern crate ordered_float;
|
|
||||||
extern crate rusqlite;
|
extern crate rusqlite;
|
||||||
|
|
||||||
extern crate edn;
|
extern crate edn;
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
use std::collections::{BTreeMap};
|
use std::collections::{BTreeMap};
|
||||||
|
use edn::OrderedFloat;
|
||||||
use ordered_float::{OrderedFloat};
|
|
||||||
|
|
||||||
extern crate mentat_core;
|
extern crate mentat_core;
|
||||||
|
|
||||||
|
|
|
@ -21,5 +21,7 @@ pub mod parse {
|
||||||
include!(concat!(env!("OUT_DIR"), "/edn.rs"));
|
include!(concat!(env!("OUT_DIR"), "/edn.rs"));
|
||||||
}
|
}
|
||||||
|
|
||||||
pub use self::types::Value;
|
pub use ordered_float::OrderedFloat;
|
||||||
pub use self::symbols::{Keyword, NamespacedKeyword, PlainSymbol, NamespacedSymbol};
|
pub use num::BigInt;
|
||||||
|
pub use types::Value;
|
||||||
|
pub use symbols::{Keyword, NamespacedKeyword, PlainSymbol, NamespacedSymbol};
|
||||||
|
|
|
@ -5,7 +5,6 @@ version = "0.0.1"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
combine = "2.1.1"
|
combine = "2.1.1"
|
||||||
matches = "0.1"
|
matches = "0.1"
|
||||||
ordered-float = "0.4.0"
|
|
||||||
|
|
||||||
[dependencies.edn]
|
[dependencies.edn]
|
||||||
path = "../edn"
|
path = "../edn"
|
||||||
|
|
|
@ -244,10 +244,9 @@ mod test {
|
||||||
extern crate combine;
|
extern crate combine;
|
||||||
extern crate edn;
|
extern crate edn;
|
||||||
extern crate mentat_query;
|
extern crate mentat_query;
|
||||||
extern crate ordered_float;
|
|
||||||
|
|
||||||
use self::combine::Parser;
|
use self::combine::Parser;
|
||||||
use self::ordered_float::OrderedFloat;
|
use self::edn::OrderedFloat;
|
||||||
use self::mentat_query::{
|
use self::mentat_query::{
|
||||||
Element,
|
Element,
|
||||||
FindSpec,
|
FindSpec,
|
||||||
|
|
|
@ -3,8 +3,6 @@ name = "mentat_query"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
num = "0.1.35"
|
|
||||||
ordered-float = "0.4.0"
|
|
||||||
|
|
||||||
[dependencies.edn]
|
[dependencies.edn]
|
||||||
path = "../edn"
|
path = "../edn"
|
||||||
|
|
|
@ -31,12 +31,8 @@
|
||||||
///! a tradeoff against well-typed function signatures and other such boundaries.
|
///! a tradeoff against well-typed function signatures and other such boundaries.
|
||||||
|
|
||||||
extern crate edn;
|
extern crate edn;
|
||||||
extern crate num;
|
|
||||||
extern crate ordered_float;
|
|
||||||
|
|
||||||
use num::BigInt;
|
use edn::{BigInt, OrderedFloat, NamespacedKeyword, PlainSymbol};
|
||||||
use ordered_float::OrderedFloat;
|
|
||||||
use edn::{NamespacedKeyword, PlainSymbol};
|
|
||||||
|
|
||||||
pub type SrcVarName = String; // Do not include the required syntactic '$'.
|
pub type SrcVarName = String; // Do not include the required syntactic '$'.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue