Yong Wen Chua
fa54988e45
Fix build issues for Rocket 0.4.2
...
- Fix clippy lints
- Bump minimum Rust version
2019-11-13 10:08:21 +08:00
Yong Wen Chua
f438d5538e
Better Opaque Exact Match Error Handling and Docs ( #64 )
...
* Add notes about Opaque Origins
* Improve error handling for Opaque Exact matches
* Cleanups
* Add more test condition
2019-03-19 10:19:10 +08:00
Yong Wen Chua
6ac56f54c6
Fix issue validating opaque origins ( #63 )
...
* Fix issue validating opaque origins
* Remove commented line
* Separate lifetimes for `AllowedOrigins::some`
* Add targets
2019-03-18 09:55:16 +08:00
Yong Wen Chua
6f56109d77
Support Regex in origins configuration ( #62 )
...
* Refactor Origin
* Fix tests
* Fix tests
* Add JSON deserialization test
* Support regex
* Fix wording
* Fix wording
2019-03-12 15:05:40 +08:00
Yong Wen Chua
f9bffe77d6
Refactor Origins to better support additional use cases ( #59 )
...
* Specify an internal structure for Cors
* Use type alias
* Refactor Origin validation
* Separate out `Origin`
* Add tests
2019-03-12 09:58:51 +08:00
Yong Wen Chua
13a3f7368e
Upgrade to Rust 2018 to fix Macro use and import issues ( #52 )
...
* Upgrade to Rust 2018 to fix Macro use and import issues
Fixes #51
* Cargo fmt
2018-11-21 12:17:40 +08:00
Yong Wen Chua
b80c1939d4
Remove `macro_use` on `extern crate` ( #47 )
...
* Remove macro_use from examples
* Remove macro_use from log and rocket
* Remove macro_use for serde_derive
* Remove from examples
* Fix no-default features build failure
2018-10-31 10:59:01 +08:00
Yong Wen Chua
086f018bb9
cargo fix --edition
2018-10-31 10:31:16 +08:00
Yong Wen Chua
4dda14373a
cargo fmt
2018-10-31 10:30:10 +08:00
Eric Dattore
0b73773692
Update library to 0.4 and support Rocket 0.4 ( #46 )
...
* Update Cargo.toml for Rocket `master`
* Prepare library for Rocket 0.4
TODO: check line 62 in `fairing.rs` to find better way than unwrapping
* Bump minimum nightly for Rocket 0.4
2018-10-31 10:25:10 +08:00
Yong Wen Chua
7954d9d078
Cargo fmt ( #42 )
2018-07-18 13:26:33 +08:00
Yong Wen Chua
ff1deabf55
Rustfmt fix
...
- Bump to 0.2.2
- Add Travis cargo cache
2018-02-14 13:22:43 +08:00
Yong Wen Chua
715913a6b3
Gate serde behind a feature flag ( #25 )
...
* Gate serde behind a feature flag
Fixes #16
* Fix travis build configuration
2017-09-05 14:11:28 +08:00
Yong Wen Chua
35e9665628
Add remaining missing unit tests ( #12 )
2017-07-18 13:11:30 +08:00
Yong Wen Chua
eb98ae33bc
Implement Serde (De)serialization for `Cors` struct ( #7 )
...
* Add serde support for Method
* "Turn on" serde
* Add Serde support for UniCase
* Fix merge error
* Add default tests
2017-07-17 16:22:45 +08:00
Yong Wen Chua
6f1a24e12d
Move some code to headers module
2017-07-15 11:18:37 +08:00