#rocket #cors

rocket_cors

Cross-origin resource sharing (CORS) for Rocket.rs applications

15 unstable releases (4 breaking)

✓ Uses Rust 2018 edition

0.4.0 Dec 13, 2018
0.4.0-rc.2 Nov 21, 2018
0.3.0 Jul 18, 2018
0.2.3 Feb 14, 2018
0.2.0 Jul 24, 2017

#22 in Web programming

Download history 221/week @ 2018-10-25 345/week @ 2018-11-01 397/week @ 2018-11-08 410/week @ 2018-11-15 418/week @ 2018-11-22 462/week @ 2018-11-29 432/week @ 2018-12-06 633/week @ 2018-12-13 377/week @ 2018-12-20 271/week @ 2018-12-27 252/week @ 2019-01-03 225/week @ 2019-01-10 118/week @ 2019-01-17

1,623 downloads per month
Used in 4 crates

MIT/Apache

117KB
2K SLoC

rocket_cors

Build Status Dependency Status Repository Crates.io

Cross-origin resource sharing (CORS) for Rocket applications

Requirements

  • Nightly Rust
  • Rocket >= 0.4

If you are using Rocket 0.3, use the 0.3.0 version of this crate.

Nightly Rust

Rocket requires nightly Rust. You should probably install Rust with rustup, then override the code directory to use nightly instead of stable. See installation instructions.

In particular, rocket_cors is currently targetted for the latest nightly. Older nightlies might work, but they are subject to the minimum that Rocket sets.

Installation

Add the following to Cargo.toml:

rocket_cors = "0.4.0"

To use the latest master branch, for example:

rocket_cors = { git = "https://github.com/lawliet89/rocket_cors", branch = "master" }

Reference

License

rocket_cors is licensed under either of the following, at your option:

Dependencies

~9MB
~218K SLoC