diff options
15 files changed, 11 insertions, 25 deletions
| diff --git a/validator/Cargo.toml b/validator/Cargo.toml index 5698e7a..35d8037 100644 --- a/validator/Cargo.toml +++ b/validator/Cargo.toml @@ -9,7 +9,7 @@ repository = "https://github.com/Keats/validator"  keywords = ["validation", "api", "validator"]  [dependencies] -url = "1.3" +url = "1"  regex = "0.2"  lazy_static = "0.2"  idna = "0.1" diff --git a/validator_derive/Cargo.toml b/validator_derive/Cargo.toml index 3cbe9a8..b68ae49 100644 --- a/validator_derive/Cargo.toml +++ b/validator_derive/Cargo.toml @@ -12,13 +12,13 @@ keywords = ["validation", "api", "validator"]  proc-macro = true  [dependencies] -syn = "0.10" +syn = "0.11"  quote = "0.3"  [dev-dependencies] -serde = "0.8" -serde_derive = "0.8" -serde_json = "0.8" +serde = "0.9" +serde_derive = "0.9" +serde_json = "0.9"  compiletest_rs = "0.2"  regex = "0.2"  lazy_static = "0.2" diff --git a/validator_derive/tests/compile-fail/custom_not_string.rs b/validator_derive/tests/compile-fail/custom_not_string.rs index e576c5c..827264d 100644 --- a/validator_derive/tests/compile-fail/custom_not_string.rs +++ b/validator_derive/tests/compile-fail/custom_not_string.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro, attr_literals)] +#![feature(attr_literals)]  #[macro_use] extern crate validator_derive;  extern crate validator; diff --git a/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs b/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs index cc6654c..240fb64 100644 --- a/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs +++ b/validator_derive/tests/compile-fail/length/equal_and_min_max_set.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro, attr_literals)] +#![feature(attr_literals)]  #[macro_use] extern crate validator_derive;  extern crate validator; diff --git a/validator_derive/tests/compile-fail/length/no_args.rs b/validator_derive/tests/compile-fail/length/no_args.rs index 35a44df..bd54d78 100644 --- a/validator_derive/tests/compile-fail/length/no_args.rs +++ b/validator_derive/tests/compile-fail/length/no_args.rs @@ -1,5 +1,3 @@ -#![feature(proc_macro, attr_literals)] -  #[macro_use] extern crate validator_derive;  extern crate validator;  use validator::Validate; diff --git a/validator_derive/tests/compile-fail/length/unknown_arg.rs b/validator_derive/tests/compile-fail/length/unknown_arg.rs index d8e6185..da57749 100644 --- a/validator_derive/tests/compile-fail/length/unknown_arg.rs +++ b/validator_derive/tests/compile-fail/length/unknown_arg.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro, attr_literals)] +#![feature(attr_literals)]  #[macro_use] extern crate validator_derive;  extern crate validator; diff --git a/validator_derive/tests/compile-fail/length/wrong_type.rs b/validator_derive/tests/compile-fail/length/wrong_type.rs index 12dbb61..3103ecc 100644 --- a/validator_derive/tests/compile-fail/length/wrong_type.rs +++ b/validator_derive/tests/compile-fail/length/wrong_type.rs @@ -1,5 +1,3 @@ -#![feature(proc_macro, attr_literals)] -  #[macro_use] extern crate validator_derive;  extern crate validator;  use validator::Validate; diff --git a/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs b/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs index 03828e2..7c07c70 100644 --- a/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs +++ b/validator_derive/tests/compile-fail/must_match/field_doesnt_exist.rs @@ -1,5 +1,3 @@ -#![feature(proc_macro, attr_literals)] -  #[macro_use] extern crate validator_derive;  extern crate validator;  use validator::Validate; diff --git a/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs b/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs index 61c0847..946edc7 100644 --- a/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs +++ b/validator_derive/tests/compile-fail/must_match/field_type_doesnt_match.rs @@ -1,5 +1,3 @@ -#![feature(proc_macro, attr_literals)] -  #[macro_use] extern crate validator_derive;  extern crate validator;  use validator::Validate; diff --git a/validator_derive/tests/compile-fail/no_validations.rs b/validator_derive/tests/compile-fail/no_validations.rs index 0a65bdd..e8281b4 100644 --- a/validator_derive/tests/compile-fail/no_validations.rs +++ b/validator_derive/tests/compile-fail/no_validations.rs @@ -1,5 +1,3 @@ -#![feature(proc_macro, attr_literals)] -  #[macro_use] extern crate validator_derive;  extern crate validator;  use validator::Validate; diff --git a/validator_derive/tests/compile-fail/range/missing_arg.rs b/validator_derive/tests/compile-fail/range/missing_arg.rs index 94913cf..9f8a537 100644 --- a/validator_derive/tests/compile-fail/range/missing_arg.rs +++ b/validator_derive/tests/compile-fail/range/missing_arg.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro, attr_literals)] +#![feature(attr_literals)]  #[macro_use] extern crate validator_derive;  extern crate validator; diff --git a/validator_derive/tests/compile-fail/range/no_args.rs b/validator_derive/tests/compile-fail/range/no_args.rs index 0532cc0..cef93fe 100644 --- a/validator_derive/tests/compile-fail/range/no_args.rs +++ b/validator_derive/tests/compile-fail/range/no_args.rs @@ -1,5 +1,3 @@ -#![feature(proc_macro, attr_literals)] -  #[macro_use] extern crate validator_derive;  extern crate validator;  use validator::Validate; diff --git a/validator_derive/tests/compile-fail/range/unknown_arg.rs b/validator_derive/tests/compile-fail/range/unknown_arg.rs index 7d2ac57..e20be74 100644 --- a/validator_derive/tests/compile-fail/range/unknown_arg.rs +++ b/validator_derive/tests/compile-fail/range/unknown_arg.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro, attr_literals)] +#![feature(attr_literals)]  #[macro_use] extern crate validator_derive;  extern crate validator; diff --git a/validator_derive/tests/compile-fail/range/wrong_type.rs b/validator_derive/tests/compile-fail/range/wrong_type.rs index e341364..50c253d 100644 --- a/validator_derive/tests/compile-fail/range/wrong_type.rs +++ b/validator_derive/tests/compile-fail/range/wrong_type.rs @@ -1,4 +1,4 @@ -#![feature(proc_macro, attr_literals)] +#![feature(attr_literals)]  #[macro_use] extern crate validator_derive;  extern crate validator; diff --git a/validator_derive/tests/compile-fail/schema/missing_function.rs b/validator_derive/tests/compile-fail/schema/missing_function.rs index cacb328..6991f0d 100644 --- a/validator_derive/tests/compile-fail/schema/missing_function.rs +++ b/validator_derive/tests/compile-fail/schema/missing_function.rs @@ -1,5 +1,3 @@ -#![feature(proc_macro, attr_literals)] -  #[macro_use] extern crate validator_derive;  extern crate validator;  use validator::Validate; | 
