From 214cc934239f2454f5f91dd635aa94364a5b2278 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sun, 30 Jun 2019 11:23:13 +0100 Subject: [PATCH] Update versions and changelog for v2.0.0 --- CHANGELOG.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- ffi/Cargo.toml | 2 +- 3 files changed, 54 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c9e173..ee1c311 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,57 @@ # Changelog +## [2.0.0] - 2019-06-30 + +### Added + +- A cbindgen configuration file at `ffi/cbindgen.toml` so that cbindgen can now + be run as `cbindgen ffi/ -o ffi/include/loot_condition_interpreter.h`. + +### Changed + +- The `ParsingError` enum has been renamed to `ParsingErrorKind`, and its + `Unknown(u32)` variant has been replaced by a `GenericParserError(String)` + variant. +- The `Error::GenericParsingError` and `Error::CustomParsingError` variants have + been combined into a single `Error::ParsingError(String, ParsingErrorKind)` + variant. +- `GameType` variants have been renamed to use fewer acronyms: + - `Tes4` -> `Oblivion` + - `Tes5` -> `Skyrim` + - `Tes5se` -> `SkyrimSE` + - `Tes5vr` -> `SkyrimVR` + - `Fo3` -> `Fallout3` + - `Fonv` -> `FalloutNV` + - `Fo4` -> `Fallout4` + - `Fo4vr` -> `Fallout4VR` + - `Tes3` -> `Morrowind` +- The `LCI_GAME_*` constants have been renamed to match the new `GameType` + names: + - `LCI_GAME_TES4` -> `LCI_GAME_OBLIVION` + - `LCI_GAME_TES5` -> `LCI_GAME_SKYRIM` + - `LCI_GAME_TES5SE` -> `LCI_GAME_SKYRIM_SE` + - `LCI_GAME_TES5VR` -> `LCI_GAME_SKYRIM_VR` + - `LCI_GAME_FO3` -> `LCI_GAME_FALLOUT_3` + - `LCI_GAME_FNV` -> `LCI_GAME_FALLOUT_NV` + - `LCI_GAME_FO4` -> `LCI_GAME_FALLOUT_4` + - `LCI_GAME_FO4VR` -> `LCI_GAME_FALLOUT_4_VR` + - `LCI_GAME_TES3` -> `LCI_GAME_MORROWIND` +- The C header generated by cbindgen can now be used from C++. +- Updated nom to v5. +- Updated cbindgen to v0.9. +- Updated code to Rust 2018 syntax. + +### Removed + +- The C++ header `loot_condition_interpreter.hpp` is no longer generated by + cbindgen. Include `loot_condition_interpreter.h` instead. + +### Fixed + +- Evaluating `version()` and `product_version()` conditions will no longer error + if the given executable has no version fields. Instead, it will be evaluated + as having no version. + ## [1.3.0] - 2019-04-07 ### Added diff --git a/Cargo.toml b/Cargo.toml index 649f00b..f8e8b0f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "loot-condition-interpreter" -version = "1.3.0" +version = "2.0.0" authors = ["Oliver Hamlet "] license = "MIT" edition = "2018" diff --git a/ffi/Cargo.toml b/ffi/Cargo.toml index 5cb6087..8588035 100644 --- a/ffi/Cargo.toml +++ b/ffi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "loot-condition-interpreter-ffi" -version = "1.3.0" +version = "2.0.0" authors = ["Oliver Hamlet "] license = "MIT" build = "build.rs"