Skip to content

Commit

Permalink
Release v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Jul 23, 2020
1 parent f6cc161 commit eef50cc
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 19 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.


## [Unreleased]
[Unreleased]: https://github.com/fastobo/fastobo/compare/v0.1.1...HEAD
[Unreleased]: https://github.com/fastobo/fastobo/compare/v0.1.2...HEAD

## [v0.1.2] - 2020-07-22
[v0.1.2]: https://github.com/fastobo/fastobo/compare/v0.1.1...v0.1.2
### Changed
- `syn` now only compiles with [`full`](https://docs.rs/syn/latest/syn/#optional-features)
feature in release mode.
### Removed
- Unused `darling` dependency.

## [v0.1.1] - 2020-07-22
[v0.1.1]: https://github.com/fastobo/fastobo/compare/v0.1.0...v0.1.1
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blanket"
version = "0.1.1"
version = "0.1.2"
authors = ["Martin Larralde <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down Expand Up @@ -41,7 +41,6 @@ impls = "1.0"
static_assertions = "1.1"
[dev-dependencies.syn]
version = "1.0"
default-features = false
features = ["full", "extra-traits"]

[features]
Expand Down
32 changes: 19 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@

The Rust standard library has plenty of traits, but they shine in how well
they integrate with new types. Declare an implementation of
[`std::io::Write`](https://doc.rust-lang.org/std/io/trait.Write.html) for
a type `T`, and you also get it for `&mut T` and `Box<T>`! This however
translates into a [lot of boilerplate code](https://doc.rust-lang.org/src/std/io/impls.rs.html#49-79)
that can be hard to maintain, which is why many crates don't over the same
convenience implementations.
[`std::io::Write`] for
a type `W`, and you also get it for [`&mut W`] and [`Box<W>`]! This however
translates into a [lot of boilerplate code]
that can be hard to maintain, which is why many crates don't bother
providing the same convenience implementations.

[`std::io::Write`]: https://doc.rust-lang.org/std/io/trait.Write.html
[lot of boilerplate code]: https://doc.rust-lang.org/src/std/io/impls.rs.html#49-79
[`&mut W`]: https://doc.rust-lang.org/std/io/trait.Write.html#impl-Write-17
[`Box<W>`]: https://doc.rust-lang.org/std/io/trait.Write.html#impl-Write-19

This is where `blanket` comes in! This crate helps you build the same kind
of blanket implementations for your own traits with as least additional code
Expand Down Expand Up @@ -131,14 +136,15 @@ trait Visitor {

## 📝 To-Do

- ✔ Delegation of default method to external functions.
- ✔ Support for traits with generic arguments.
-`#[derive(Ref)]`
-`#[derive(Mut)]`
-`#[derive(Box)]`
-`#[derive(Rc)]`
- ✘ Update `Box` to allow unsized types if possible.
-`#[derive(Arc)]`
-Delegation of default method to external functions.
-Support for traits with generic arguments.
-`#[derive(Ref)]`
-`#[derive(Mut)]`
-`#[derive(Box)]`
-`#[derive(Rc)]`
- ✗ Update `Box` derive to allow unsized types if possible.
-`#[derive(Arc)]`
-`#[derive(Cow)]`

## 📋 Changelog

Expand Down
6 changes: 3 additions & 3 deletions ci/travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# only test without coverage in nightly since the span of diagnositcs is
# currently not for the nightly and the other channels, most likely because
# of `proc-macro2`
if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
log Testing without measuring coverage
cargo test
fi
Expand All @@ -16,15 +16,15 @@ fi
# --- Test without coverage --------------------------------------------------

log Testing with coverage
cargo tarpaulin -v --out Xml --ciserver travis-ci
cargo tarpaulin --lib -v --out Xml --ciserver travis-ci


# --- Check code format ------------------------------------------------------

# only test without coverage in nightly since the span of diagnositcs is
# currently not for the nightly and the other channels, most likely because
# of `proc-macro2`
if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
log Checking Rust code format with \`cargo fmt\`
cargo fmt -- --check
fi

0 comments on commit eef50cc

Please sign in to comment.