aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Prouillet2018-04-14 12:41:42 +0200
committerVincent Prouillet2018-04-14 12:41:42 +0200
commit4658e5303d3dc5aa3579119b0d0724cab3e98308 (patch)
treec1be8f117390e11bd5835b6e7e46ae8b5aea6385
parent5158f40f29b5feb420207c73fef18d320f38857a (diff)
downloadvalidator-4658e5303d3dc5aa3579119b0d0724cab3e98308.tar.bz2
Update syn and quote
-rw-r--r--README.md11
-rw-r--r--validator_derive/Cargo.toml6
2 files changed, 11 insertions, 6 deletions
diff --git a/README.md b/README.md
index 3f8d4d1..b1153e3 100644
--- a/README.md
+++ b/README.md
@@ -163,9 +163,9 @@ Examples:
```
### phone
-Tests whether the String is a valid phone number (in international format, ie.
-containing the country indicator like `+14152370800` for an US number — where `4152370800`
-is the national number equivalent, which is seen as invalid).
+Tests whether the String is a valid phone number (in international format, ie.
+containing the country indicator like `+14152370800` for an US number — where `4152370800`
+is the national number equivalent, which is seen as invalid).
To use this validator, you must enable the `phone` feature for the `validator_derive` crate.
This validator doesn't take any arguments: `#[validate(phone)]`;
@@ -237,6 +237,11 @@ For example, the following attributes all work:
### validator_derive
+#### 0.6.5 (2018/04/14)
+
+- Fix path for regex starting with `::`
+- Update syn and quote
+
#### 0.6.4 (2018/03/20)
- Support `Option<Option<T>>` types
diff --git a/validator_derive/Cargo.toml b/validator_derive/Cargo.toml
index 12930fc..b52c8b5 100644
--- a/validator_derive/Cargo.toml
+++ b/validator_derive/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "validator_derive"
-version = "0.6.4"
+version = "0.6.5"
authors = ["Vincent Prouillet <vincent@wearewizards.io>"]
license = "MIT"
description = "Macros 1.1 implementation of #[derive(Validate)]"
@@ -15,8 +15,8 @@ proc-macro = true
phone = ["validator/phone"]
[dependencies]
-syn = { version = "0.12", features = ["extra-traits"] }
-quote = "0.4"
+syn = { version = "0.13", features = ["extra-traits"] }
+quote = "0.5"
if_chain = "0"
validator = { version = "0.6", path = "../validator"}