[package]
name = "elastic_types"
version = "0.3.0"
authors = ["Ashley Mannix <ashleymannix@live.com.au>"]
license = "Apache-2.0"
description = "A strongly-typed implementation of Elasticsearch core types and Mapping API."
documentation = "http://kodraus.github.io/rustdoc/elastic_types/"
repository = "https://github.com/KodrAus/elasticsearch-rs"
build = "build.rs"

[features]
nightly = [
  "serde_macros",
  "elastic_date_macros/nightly"
]
default = [
  "serde_codegen",
  "elastic_date_macros"
]
nightly-testing = [
  "nightly",
  "clippy",
  "elastic_types_macros"
]

[dependencies]
serde = "~0.7.0"
serde_json = "~0.7.0"
chrono = { version = "~0.2.20", features = [ "serde" ]}
geo = "~0.0.7"
geohash = "~0.2.7"
geojson = { version = "~0.2.1", features = [ "with-serde" ] }

elastic_date_macros = { version = "~0.2.1", optional = true }
clippy = { version = "^0.*", optional = true }
serde_macros = { version = "~0.7.0", optional = true }
elastic_types_macros = { version = "~0.3.1", optional = true }

[build-dependencies]
serde_codegen = { version = "^0.*", optional = true }

[dev-dependencies]
json_str = "^0.*"
maplit = "^0.*"
