From c1d067e8ec03e20bb6f52f7c3ab63cadd2a2b261 Mon Sep 17 00:00:00 2001 From: Nikolai Vazquez Date: Fri, 11 Sep 2020 01:00:42 -0400 Subject: [PATCH] Prepare 0.2.0 release --- CHANGELOG.md | 5 ++++- Cargo.toml | 2 +- README.md | 12 ++++++------ src/lib.rs | 4 ++-- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00bcd76..5f7a014 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ The format is based on [Keep a Changelog] and this project adheres to ## [Unreleased] +## [0.2.0] - 2020-09-11 + ### Changed - **\[breaking\]** Placed each library/framework module behind a feature flag. @@ -34,4 +36,5 @@ Initial release. [#1]: https://github.com/nvzqz/fruity/issues/1 -[Unreleased]: https://github.com/nvzqz/fruity/compare/v0.1.0...HEAD +[Unreleased]: https://github.com/nvzqz/fruity/compare/v0.2.0...HEAD +[0.2.0]: https://github.com/nvzqz/fruity/compare/v0.1.0...v0.2.0 diff --git a/Cargo.toml b/Cargo.toml index 1827854..b9cfb1b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fruity" -version = "0.1.0" +version = "0.2.0" authors = ["Nikolai Vazquez "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/README.md b/README.md index 3ca6aca..a27a380 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ by adding the following to your project's [`Cargo.toml`]: ```toml [dependencies.fruity] -version = "0.1.0" +version = "0.2.0" ``` ### Feature Flags @@ -38,17 +38,17 @@ Each module for a library or framework has its own with the same name. For example, this is how you enable the -[`foundation`](https://docs.rs/fruity/0.1.0/fruity/foundation/index.html) +[`foundation`](https://docs.rs/fruity/0.2.0/fruity/foundation/index.html) module: ```toml [dependencies.fruity] -version = "0.1.0" +version = "0.2.0" features = ["foundation"] ``` This feature transitively enables the -[`objc`](https://docs.rs/fruity/0.1.0/fruity/objc/index.html) +[`objc`](https://docs.rs/fruity/0.2.0/fruity/objc/index.html) feature/module. ## Goals @@ -85,14 +85,14 @@ This is true for the following: - **Getting a static class.** Getters like - [`NSString::class`](https://docs.rs/fruity/0.1.0/fruity/foundation/struct.NSString.html#method.class) + [`NSString::class`](https://docs.rs/fruity/0.2.0/fruity/foundation/struct.NSString.html#method.class) retrieve the class directly through its symbol. This is instantaneous, especially when compared to calling into the Objective-C runtime via [`objc_getClass`](https://developer.apple.com/documentation/objectivec/1418952-objc_getclass). - **Creating an `NSString` from a Rust string literal.** - The [`nsstring!`](https://docs.rs/fruity/0.1.0/fruity/macro.nsstring.html) + The [`nsstring!`](https://docs.rs/fruity/0.2.0/fruity/macro.nsstring.html) macro creates an `NSString` literal (i.e. `@"string"`) at compile time. There is no runtime dispatch/allocation/initialization cost. diff --git a/src/lib.rs b/src/lib.rs index 55faee5..1bf6c85 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,7 +29,7 @@ //! //! ```toml //! [dependencies.fruity] -//! version = "0.1.0" +//! version = "0.2.0" //! ``` //! //! ## Feature Flags @@ -43,7 +43,7 @@ //! //! ```toml //! [dependencies.fruity] -//! version = "0.1.0" +//! version = "0.2.0" //! features = ["foundation"] //! ``` //!