mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-27 04:42:40 +00:00
c45a83897f
In particular, 'FromFormField' and 'UriDisplayQuery' now allow any number of form 'field' attributes. For the former, multiple 'value's are allowed, all of which are used to match against incoming fields - any match wins. For the latter, multiple 'name' and 'value's are allowed; the first of each is used to render the query value. Additionally, 'UriDisplayQuery' can now be derived for C-like enums. This brings the derive to parity with 'FromFormValue' and allows their unified application on C-like enums. Resolves #843.
29 lines
854 B
TOML
29 lines
854 B
TOML
[package]
|
|
name = "rocket_contrib_codegen"
|
|
version = "0.5.0-dev"
|
|
authors = ["Sergio Benitez <sb@sergio.bz>"]
|
|
description = "Procedural macros for the Rocket contrib libraries."
|
|
documentation = "https://api.rocket.rs/master/rocket_contrib/"
|
|
homepage = "https://rocket.rs"
|
|
repository = "https://github.com/SergioBenitez/Rocket"
|
|
readme = "../../README.md"
|
|
keywords = ["rocket", "contrib", "code", "generation", "proc-macro"]
|
|
license = "MIT OR Apache-2.0"
|
|
edition = "2018"
|
|
|
|
[features]
|
|
database_attribute = []
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
quote = "1.0"
|
|
devise = { git = "https://github.com/SergioBenitez/Devise.git", rev = "df00b5" }
|
|
|
|
[dev-dependencies]
|
|
rocket = { version = "0.5.0-dev", path = "../../core/lib" }
|
|
rocket_contrib = { version = "0.5.0-dev", path = "../lib", features = ["diesel_sqlite_pool"] }
|
|
trybuild = "1.0"
|
|
version_check = "0.9"
|