Skip to content

Commit

Permalink
Release version 0.5.0
Browse files Browse the repository at this point in the history
This is by far our biggest release yet, including 162 commits by 9
contributors. You can view the full changelog at
https://github.com/sgrif/diesel/blob/v0.5.0/CHANGELOG.md

To coincide with this release, we've launched a new website. Check it
out at http://diesel.rs -- We've also published a new Getting Started
guide.

By far the biggest feature of this release is support for SQLite3 as a
backend. If you'd like to try it out, add `features = ["sqlite"]` to
`diesel` and `diesel_codgen` in your Cargo.toml. PostgreSQL is still
included by default. To remove it, add `default-features = false`.

Additionally, this release adds support for the various types from the
`chrono` crate. Add `features = ["chrono"]` to enable it.

Some of the more minor features include the ability to opt into the
0.2.0 behavior for updates (treating `None` as `NULL` instead of
skipping the field), as well as support for the `sum` and `avg`
functions.

Unfortunately, there were some breaking changes in this release that are
likely to have a broad impact. `diesel::Connection` is now
`diesel::pg::PgConnection`. `load` and `get_results` now return a `Vec`
instead of an `Iterator`. `Queriable` has been renamed to `Queryable`.

This release was a huge group effort to make happen, and we hope you
enjoy it. Happy Dieseling!

Thank you to Diesel core team, and the contributors to this release:

@oursonguimauve
@robertmaloney
@tamird
@tessgriffin
@weiznich
  • Loading branch information
sgrif committed Feb 5, 2016
1 parent 5f214ef commit 44e40bc
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ All user visible changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/), as described
for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md)

## Unreleased
## [0.5.0] 2016-02-05

### Added

Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ Diesel - A safe, extensible ORM and Query Builder for Rust
[![Build Status](https://travis-ci.org/sgrif/diesel.svg)](https://travis-ci.org/sgrif/diesel)
[![Gitter](https://badges.gitter.im/sgrif/diesel.svg)](https://gitter.im/sgrif/diesel?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

## Note: This README is for `master`, not the latest released version. You can find the readme for the latest release [here][latest-release-readme].

[latest-release-readme]: https://github.com/sgrif/diesel/blob/v0.4.1/README.md

[Documentation](http://docs.diesel.rs)

Diesel gets rid of the boilerplate for database interaction and eliminates
Expand Down
2 changes: 1 addition & 1 deletion diesel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "diesel"
version = "0.4.1"
version = "0.5.0"
authors = ["Sean Griffin <sean@seantheprogrammer.com>"]
license = "MIT OR Apache-2.0"
description = "A safe, extensible ORM and Query builder"
Expand Down
4 changes: 2 additions & 2 deletions diesel_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "diesel_cli"
version = "0.4.1"
version = "0.5.0"
authors = ["Sean Griffin <sean@seantheprogrammer.com>"]
license = "MIT OR Apache-2.0"
description = "Provides the CLI for the Diesel crate"
Expand All @@ -15,7 +15,7 @@ name = "diesel"
[dependencies]
chrono = "^0.2.17"
clap = "^1.5.5"
diesel = { path = "../diesel", features = ["postgres", "sqlite"] }
diesel = { version = "0.5.0", features = ["postgres", "sqlite"] }
dotenv = "^0.8.0"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions diesel_codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "diesel_codegen"
version = "0.4.1"
version = "0.5.0"
authors = ["Sean Griffin <sean@seantheprogrammer.com>"]
license = "MIT OR Apache-2.0"
build = "build.rs"
Expand All @@ -17,7 +17,7 @@ syntex_syntax = { version = "^0.26.0", optional = true }
[dependencies]
syntex = { version = "^0.26.0", optional = true }
syntex_syntax = { version = "^0.26.0", optional = true }
diesel = { path = "../diesel", default-features = false }
diesel = { version = "0.5.0", default-features = false }

[features]
default = ["with-syntex", "postgres"]
Expand Down
12 changes: 4 additions & 8 deletions diesel_codegen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@ Provides various macros and annotations for
boilerplate needing to be written. It can be used through `rustc_plugin`, or
`syntex` on stable.

## Note: This README is for `master`, not the latest released version. You can find the readme for the latest release [here][latest-release-readme].

[latest-release-readme]: https://github.com/sgrif/diesel/blob/v0.4.1/diesel_codegen/README.md

Using on nightly
----------------

Make sure you're on a nightly from 2015-11-27 or later, we don't compile on earlier versions. To use with nightly, you'll want to turn off the default features. Add this
Make sure you're on a nightly from 2016-01-23 or later, we don't compile on earlier versions. To use with nightly, you'll want to turn off the default features. Add this
line to your dependencies section in `Cargo.toml`

```toml
diesel_codegen = { version = "^0.4.0", default-features = false, features = ["nightly"] }
diesel_codegen = { version = "0.5.0", default-features = false, features = ["nightly"] }
```

Then you'll need to add two lines to the root of your crate.
Expand All @@ -37,8 +33,8 @@ build any modules using our annotations. Add the following to your
build-dependencies.

```toml
diesel_codegen = "^0.4.0"
syntex = "^0.26.0"
diesel_codegen = "0.5.0"
syntex = "0.26.0"
```

You'll need to move any code using annotations into a different file.
Expand Down

0 comments on commit 44e40bc

Please sign in to comment.