Skip to content

Commit

Permalink
Prepare 0.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nvzqz committed Sep 11, 2020
1 parent d535c0e commit c1d067e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fruity"
version = "0.1.0"
version = "0.2.0"
authors = ["Nikolai Vazquez <hello@nikolaivazquez.com>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
//!
//! ```toml
//! [dependencies.fruity]
//! version = "0.1.0"
//! version = "0.2.0"
//! ```
//!
//! ## Feature Flags
Expand All @@ -43,7 +43,7 @@
//!
//! ```toml
//! [dependencies.fruity]
//! version = "0.1.0"
//! version = "0.2.0"
//! features = ["foundation"]
//! ```
//!
Expand Down

0 comments on commit c1d067e

Please sign in to comment.