Skip to content

Commit

Permalink
0.1.27 release
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydmeta committed Apr 23, 2017
1 parent a008afa commit c9febaa
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sudo: false

rust:
- stable
- nightly
- nightly-2017-04-21

cache: cargo

Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "frunk"
version = "0.1.25"
version = "0.1.27"
authors = ["Lloyd <[email protected]>"]
description = "Frunk provides developers with a number of functional programming tools like HList, Coproduct, Generic, LabelledGeneric, Validated, Monoid, Semigroup and friends."
license = "MIT"
Expand All @@ -16,12 +16,12 @@ time = "0.1.36"

[dependencies.frunk_core]
path = "core"
version = "0.0.13"
version = "0.0.15"

[dependencies.frunk_derives]
path = "derives"
version = "0.0.14"
version = "0.0.16"

[dev-dependencies.frunk_laws]
path = "laws"
version = "0.0.3"
version = "0.0.5"
30 changes: 15 additions & 15 deletions benches/labelled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,21 +309,21 @@ fn big_from_24fields(b: &mut Bencher) {

// Hilariously, uncommenting this out will kill the performance in the above 2 benchmarks

//#[bench]
//fn big_transform_from_25fields(b: &mut Bencher) {
// b.iter(|| {
// let j = BigStruct25FieldsReverse::transform_from(build_big_struct_25fields());
// j
// })
//}
//
//#[bench]
//fn big_from_25fields(b: &mut Bencher) {
// b.iter(|| {
// let j = <BigStruct25FieldsReverse as From<BigStruct25Fields>>::from(build_big_struct_25fields());
// j
// })
//}
#[bench]
fn big_transform_from_25fields(b: &mut Bencher) {
b.iter(|| {
let j = BigStruct25FieldsReverse::transform_from(build_big_struct_25fields());
j
})
}

#[bench]
fn big_from_25fields(b: &mut Bencher) {
b.iter(|| {
let j = <BigStruct25FieldsReverse as From<BigStruct25Fields>>::from(build_big_struct_25fields());
j
})
}



Expand Down
4 changes: 2 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "frunk_core"
version = "0.0.13"
version = "0.0.15"
authors = ["Lloyd <[email protected]>"]
description = "Frunk core provides developers with HList and Generic"
license = "MIT"
Expand All @@ -13,4 +13,4 @@ travis-ci = { repository = "lloydmeta/frunk" }

[dev-dependencies.frunk_derives]
path = "../derives"
version = "0.0.14"
version = "0.0.16"
2 changes: 2 additions & 0 deletions core/src/hlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ pub trait Sculptor<Target, Indices> {
impl<Source> Sculptor<HNil, HNil> for Source {
type Remainder = Source;

#[inline(always)]
fn sculpt(self) -> (HNil, Self::Remainder) {
(HNil, self)
}
Expand All @@ -453,6 +454,7 @@ for HCons<SHead, STail>
{
type Remainder = <<HCons<SHead, STail> as Plucker<THead, IndexHead>>::Remainder as Sculptor<TTail, IndexTail>>::Remainder;

#[inline(always)]
fn sculpt(self) -> (HCons<THead, TTail>, Self::Remainder) {
let (p, r): (THead, <HCons<SHead, STail> as Plucker<THead, IndexHead>>::Remainder) =
self.pluck();
Expand Down
4 changes: 2 additions & 2 deletions derives/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "frunk_derives"
version = "0.0.14"
version = "0.0.16"
authors = ["Lloyd <[email protected]>"]
description = "frunk_derives contains the custom derivations for certain traits in Frunk."
license = "MIT"
Expand All @@ -20,4 +20,4 @@ quote = "0.3.15"

[dependencies.frunk_core]
path = "../core"
version = "0.0.13"
version = "0.0.15"
4 changes: 2 additions & 2 deletions laws/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "frunk_laws"
version = "0.0.3"
version = "0.0.5"
authors = ["Lloyd <[email protected]>"]
description = "frunk_laws contains laws for algebras declared in Frunk."
license = "MIT"
Expand All @@ -13,7 +13,7 @@ travis-ci = { repository = "lloydmeta/frunk" }

[dependencies.frunk]
path = ".."
version = "0.1.25"
version = "0.1.27"

[dependencies]
quickcheck = "0.3"

0 comments on commit c9febaa

Please sign in to comment.