mirror of https://github.com/rwf2/Rocket.git
5.4 KiB
5.4 KiB
Version 0.1.2 (Dec 24, 2016)
Codegen
- Fix
get_raw_segments
index argument in route codegen (#41). - Segments params (
<param..>
) respect prefixes.
Contrib
- Fix nested template name resolution (#42).
Infrastructure
- New script (
publish.sh
) automates publishing to crates.io. - New script (
bump_version.sh
) automates version bumps.
Version 0.1.1 (Dec 23, 2016)
Core
NamedFile
Responder
lost its body in the shuffle; it's back!
Version 0.1.0 (Dec 23, 2016)
This is the first public release of Rocket!
Breaking
All of the mentions to hyper
types in core Rocket types are no more. Rocket
now implements its own Request
and Response
types.
ContentType
uses associated constants instead of static methods.StatusCode
removed in favor of newStatus
type.Response
type alias superceded byResponse
type.Responder::respond
no longer takes in hyper type.Responder::respond
returnsResponse
, takesself
by move.Handler
returnsOutcome
instead ofResponse
type alias.ErrorHandler
returnsResult
.- All
Hyper*
types were moved to unprefixed versions inhyper::
. MockRequest::dispatch
now returns aResponse
type.URIBuf
removed in favor of unifiedURI
.- Rocket panics when an illegal, dynamic mount point is used.
Core
- Rocket handles
HEAD
requests automatically. - New
Response
andResponseBuilder
types. - New
Request
,Header
,Status
, andContentType
types.
Testing
MockRequest
allows any type of header.MockRequest
allows cookies.
Codegen
- Debug output disabled by default.
- The
ROCKET_CODEGEN_DEBUG
environment variables enables codegen logging.
Version 0.0.11 (Dec 11, 2016)
Streaming Requests
All incoming request data is now streamed. This resulted in a major change to the Rocket APIs. They are summarized through the following API changes:
- The
form
route parameter has been removed. - The
data
route parameter has been introduced. - Forms are now handled via the
data
parameter andForm
type. - Removed the
data
parameter fromRequest
. - Added
FromData
conversion trait and default implementation. FromData
is used to automatically derive thedata
parameter.Responder
s are now final: they cannot forward to other requests.Responser
s may only forward to catchers.
Breaking
- Request
uri
parameter is private. Useuri()
method instead. form
module moved underrequest
module.response::data
was renamed toresponse::content
.- Introduced
Outcome
withSuccess
,Failure
, andForward
variants. outcome
module moved to top-level.Response
is now a type alias toOutcome
.Empty
Responder
was removed.StatusResponder
removed in favor ofresponse::status
module.
Codegen
- Error handlers can now take 0, 1, or 2 parameters.
FromForm
derive now works on empty structs.- Lifetimes are now properly stripped in code generation.
- Any valid ident is now allowed in single-parameter route parameters.
Core
- Route is now cloneable.
Request
no longer has any lifetime parameters.Handler
type now includes aData
parameter.http
module is public.Responder
implemented for()
type as an empty response.- Add
config::get()
for global config access. - Introduced
testing
module. Rocket.toml
allows global configuration via[global]
table.
Docs
- Added a
raw_upload
example. - Added a
pastebin
example. - Documented all public APIs.
Testing
- Now building and running tests with
--all-features
flag. - Added appveyor config for Windows CI testing.
Version 0.0.10 (Oct 03, 2016)
Breaking
- Remove
Rocket::new
in favor ofignite
method. - Remove
Rocket::mount_and_launch
in favor of chainingmount(..).launch()
. mount
andcatch
takeRocket
type by value.- All types related to HTTP have been moved into
http
module. Template::render
incontrib
now takes context by reference.
Core
- Rocket now parses option
Rocket.toml
for configuration, defaulting to sane values. ROCKET_ENV
environment variable can be used to specify running environment.
Docs
- Document
ContentType
. - Document
Request
. - Add script that builds docs.
Testing
- Scripts can now be run from any directory.
- Cache Cargo directories in Travis for faster testing.
- Check that library version numbers match in testing script.
Version 0.0.9 (Sep 29, 2016)
Breaking
- Rename
response::data_type
toresponse::data
.
Core
- Rocket interprets
_method
field in forms as the incoming request's method. - Add
Outcome::Bad
to signify responses that failed internally. - Add a
NamedFile
Responder
type that uses a file's extension for the response's content type. - Add a
Stream
Responder
for streaming responses.
Contrib
- Introduce the
contrib
crate. - Add JSON support via
JSON
, which implementsFromRequest
andResponder
. - Add templating support via
Template
which implementsResponder
.
Docs
- Initial guide-like documentation.
- Add documentation, testing, and contributing sections to README.
Testing
- Add a significant number of codegen tests.