Skip to content

Commit

Permalink
Bump versions to 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
myrrlyn committed Feb 24, 2018
1 parent 27a625e commit f5b3f26
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 3 deletions.
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Changelog

## 0.4.0

### Added

- re-export the `#[derive(Endian)]` macro from `endian_trait_derive`
- CI and tests
- This changelog
- `Endian` can now derive on discriminant-only (C-like) enums with integer
representation. It cannot derive on `#[repr(C)]` enums or data-carrying
enums.

### Changed

- pinned Rust version to 1.20.0

### Removed

- implementations of `Endian` for `isize` and `usize`.

## 0.3.0

### Added

- implement `Endian` on `i128`, `u128`, and `[T; N]` for arrays of zero through
256

## 0.2.0

### Added

- implement `Endian` on `bool`, `char`, `f32`, `f64`

### Changed

- use stable Rust instead of nightly

## 0.1.1

### Added

- crates.io metadata in `Cargo.toml`

## 0.1.0

### Added

- `Endian` trait, implemented on the integer primitives
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "endian_trait"
version = "0.3.0"
version = "0.4.0"
authors = [
"myrrlyn <myrrlyn@outlook.com>",
]
Expand All @@ -17,7 +17,7 @@ exclude = [

[dependencies.endian_trait_derive]
path = "endian_trait_derive"
version = "0.3.0"
version = "0.4.0"

[features]
arrays = []
Expand Down
25 changes: 25 additions & 0 deletions endian_trait_derive/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@

List of notable changes to the custom-derive macro for the `Endian` trait.

## 0.4.0

### Added

- Derive macro now supports bare enums with integer representation.

The Endian trait can only be derived on enums that are tagged with one
`#[repr()]` attribute, and that attribute must be one of the integer
primitive types. Any other repr value, or a missing repr, or multiple, will
cause a failure.

Attempting to derive Endian on a bodied enum, such as

```rust
#[repr(i32)]
#[derive(Endian)]
enum Bodied {
A(i32)
}
```

will abort with an error about a mismatched transmute call.

TODO: Refine that error message.

## 0.3.2

### Added
Expand Down
2 changes: 1 addition & 1 deletion endian_trait_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "endian_trait_derive"
version = "0.3.2"
version = "0.4.0"
authors = [
"myrrlyn <myrrlyn@outlook.com>",
]
Expand Down

0 comments on commit f5b3f26

Please sign in to comment.