From 44e40bc90a769d1539ff40afc034b514a3df5e75 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Fri, 5 Feb 2016 14:36:41 -0700 Subject: [PATCH] Release version 0.5.0 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 --- CHANGELOG.md | 2 +- README.md | 4 ---- diesel/Cargo.toml | 2 +- diesel_cli/Cargo.toml | 4 ++-- diesel_codegen/Cargo.toml | 4 ++-- diesel_codegen/README.md | 12 ++++-------- 6 files changed, 10 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d18e93d55e93..166b08798124 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 4e0d1c73ec52..cc63ac2a42c4 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/diesel/Cargo.toml b/diesel/Cargo.toml index 0ac4a2b01f1a..76c970e71c40 100644 --- a/diesel/Cargo.toml +++ b/diesel/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "diesel" -version = "0.4.1" +version = "0.5.0" authors = ["Sean Griffin "] license = "MIT OR Apache-2.0" description = "A safe, extensible ORM and Query builder" diff --git a/diesel_cli/Cargo.toml b/diesel_cli/Cargo.toml index 4529e163b951..002de3931f91 100644 --- a/diesel_cli/Cargo.toml +++ b/diesel_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "diesel_cli" -version = "0.4.1" +version = "0.5.0" authors = ["Sean Griffin "] license = "MIT OR Apache-2.0" description = "Provides the CLI for the Diesel crate" @@ -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] diff --git a/diesel_codegen/Cargo.toml b/diesel_codegen/Cargo.toml index 600843b43206..ea4b727a748c 100644 --- a/diesel_codegen/Cargo.toml +++ b/diesel_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "diesel_codegen" -version = "0.4.1" +version = "0.5.0" authors = ["Sean Griffin "] license = "MIT OR Apache-2.0" build = "build.rs" @@ -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"] diff --git a/diesel_codegen/README.md b/diesel_codegen/README.md index 26608c741e98..654547be765e 100644 --- a/diesel_codegen/README.md +++ b/diesel_codegen/README.md @@ -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. @@ -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.