Skip to content

Commit e9d9702

Browse files
authored
Merge pull request #54 from madsmtm/improve-readme
Improve READMEs
2 parents 1ddd898 + 3ac6212 commit e9d9702

File tree

14 files changed

+62
-23
lines changed

14 files changed

+62
-23
lines changed

README.md

+35-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
1-
# [![Rust + \[Obj-C\]](assets/logo-small.png)](https://github.com/madsmtm/objc2) Objective-C in Rust
1+
# [![Rust + \[Obj-C\]](assets/logo-small.png)](https://github.com/madsmtm/objc2) <br> Objective-C in Rust
22

33
[![License](https://badgen.net/badge/license/MIT/blue)](../LICENSE.txt)
44
[![Apple CI](https://github.com/madsmtm/objc2/actions/workflows/apple.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/apple.yml)
55
[![GNUStep CI](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml)
6+
7+
# DISCLAIMER! These crates are work in progress, and should not be used in production environments. Use the battle-tested `objc` family instead!
8+
9+
10+
## License
11+
12+
This project is licensed under the MIT license, see [`LICENSE.txt`].
13+
14+
Work is in progress to make it dual-licensed under the Apache License
15+
(Version 2.0) as well, see [this][#23].
16+
17+
[`LICENSE.txt`]: https://github.com/madsmtm/objc2/blob/master/LICENSE.txt
18+
[#23]: https://github.com/madsmtm/objc2/issues/23
19+
20+
21+
## Acknowledgements
22+
23+
This repository is originally a fork of [`objc`], with the following
24+
projects merged into it (see reasoning for the fork [here][origin-issue-101]):
25+
- [`objc-encode`](https://github.com/SSheldon/rust-objc-encode)
26+
- [`objc_exception`](https://github.com/SSheldon/rust-objc-exception)
27+
- [`objc_id`](https://github.com/SSheldon/rust-objc-id)
28+
- [`objc-foundation`](https://github.com/SSheldon/rust-objc-foundation)
29+
- [`block`](https://github.com/SSheldon/rust-block)
30+
31+
These were created almost solely by [@SSheldon](https://github.com/SSheldon),
32+
so a huge thanks for their fantastic work on these crates!
33+
34+
This project also draws heavy inspiration from [`fruity`] and [`objrs`].
35+
36+
[`objc`]: https://github.com/SSheldon/rust-objc
37+
[origin-issue-101]: https://github.com/SSheldon/rust-objc/issues/101
38+
[`fruity`]: https://github.com/nvzqz/fruity
39+
[`objrs`]: https://gitlab.com/objrs/objrs

objc2/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Apple CI](https://github.com/madsmtm/objc2/actions/workflows/apple.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/apple.yml)
77
[![GNUStep CI](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml)
88

9-
Objective-C Runtime bindings and wrapper for Rust.
9+
Objective-C runtime bindings and interface for Rust.
1010

1111
## Messaging objects
1212

objc2_block/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version = "0.1.6"
55
authors = ["Steven Sheldon", "Mads Marquart <mads@marquart.dk>"]
66
edition = "2018"
77

8-
description = "Interface for Apple's C language extension of blocks."
8+
description = "Apple's C language extension of blocks"
99
keywords = ["objective-c", "macos", "ios", "blocks"]
1010
categories = [
1111
"api-bindings",

objc2_block/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Apple CI](https://github.com/madsmtm/objc2/actions/workflows/apple.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/apple.yml)
77
[![GNUStep CI](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml)
88

9-
Rust interface for Apple's C language extension of blocks.
9+
Apple's C language extension of blocks in Rust.
1010

1111
For more information on the specifics of the block implementation, see
1212
Clang's documentation: http://clang.llvm.org/docs/Block-ABI-Apple.html

objc2_block_sys/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Apple CI](https://github.com/madsmtm/objc2/actions/workflows/apple.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/apple.yml)
77
[![GNUStep CI](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml)
88

9-
Raw Rust bindings to Apple's C language extension of blocks
9+
Raw Rust bindings to Apple's C language extension of blocks.
1010

1111
## Runtime Support
1212

objc2_encode/README.md

+9-13
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# `objc2_encode` - Objective-C type-encoding in Rust
1+
# `objc2_encode`
22

33
[![Latest version](https://badgen.net/crates/v/objc2_encode)](https://crates.io/crates/objc2_encode)
44
[![License](https://badgen.net/badge/license/MIT/blue)](../LICENSE.txt)
55
[![Documentation](https://docs.rs/objc2_encode/badge.svg)](https://docs.rs/objc2_encode/)
66
[![Apple CI](https://github.com/madsmtm/objc2/actions/workflows/apple.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/apple.yml)
77
[![GNUStep CI](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml)
88

9+
Objective-C type-encoding in Rust.
10+
911
The Objective-C directive `@encode` encodes types as strings for usage in
1012
various places in the runtime.
1113

@@ -19,7 +21,8 @@ references (and `EncodeArguments` for function arguments).
1921
These types are exported under the `objc2` crate as well, so usually you would
2022
just use that.
2123

22-
# Examples
24+
25+
## Examples
2326

2427
Implementing `Encode` and `RefEncode`:
2528

@@ -66,19 +69,12 @@ assert_eq!(i32::ENCODING.to_string(), "i");
6669

6770
See the [`examples`] folder for more complex usage.
6871

69-
# Installation
72+
[`examples`]: https://github.com/madsmtm/objc2/tree/master/objc2_encode/examples
73+
74+
75+
## Installation
7076

7177
```toml
7278
[dependencies]
7379
objc2_encode = "1.1.0"
7480
```
75-
76-
# License
77-
78-
This project is licensed under the MIT license, see [`../LICENSE.txt`].
79-
80-
Work is in progress to make it dual-licensed under the Apache License
81-
(Version 2.0) as well.
82-
83-
[`examples`]: https://github.com/madsmtm/objc2/tree/master/objc2_encode/examples
84-
[`../LICENSE.txt`]: https://github.com/madsmtm/objc2/blob/master/LICENSE.txt

objc2_exception/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.2" # Remember to update html_root_url in lib.rs
44
authors = ["Steven Sheldon", "Mads Marquart <mads@marquart.dk>"]
55
edition = "2018"
66

7-
description = "Objective-C's throw and try/catch statements."
7+
description = "Objective-C's @throw and @try/@catch statements"
88
keywords = ["objective-c", "macos", "ios", "try", "catch"]
99
categories = [
1010
"api-bindings",

objc2_exception/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
[![Documentation](https://docs.rs/objc2_exception/badge.svg)](https://docs.rs/objc2_exception/)
66
[![Apple CI](https://github.com/madsmtm/objc2/actions/workflows/apple.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/apple.yml)
77
[![GNUStep CI](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml)
8+
9+
Objective-C's @throw and @try/@catch statements in Rust.

objc2_foundation/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.1" # Remember to update html_root_url in lib.rs
44
authors = ["Steven Sheldon", "Mads Marquart <mads@marquart.dk>"]
55
edition = "2018"
66

7-
description = "Bindings to the Objective-C Foundation framework."
7+
description = "Bindings to the Objective-C Foundation framework"
88
keywords = ["objective-c", "macos", "ios", "cocoa", "uikit"]
99
categories = [
1010
"api-bindings",

objc2_foundation/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
[![Documentation](https://docs.rs/objc2_foundation/badge.svg)](https://docs.rs/objc2_foundation/)
66
[![Apple CI](https://github.com/madsmtm/objc2/actions/workflows/apple.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/apple.yml)
77
[![GNUStep CI](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml)
8+
9+
Bindings to the Objective-C `Foundation` framework in Rust.

objc2_foundation_derive/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.0.1" # Remember to update html_root_url in lib.rs
44
authors = ["Steven Sheldon", "Mads Marquart <mads@marquart.dk>"]
55
edition = "2018"
66

7-
description = "Procedural macros for deriving traits from objc2_foundation."
7+
description = "Procedural macros for deriving traits from objc2_foundation"
88
keywords = ["objective-c", "macos", "ios", "cocoa", "uikit"]
99
categories = [
1010
"api-bindings",

objc2_foundation_derive/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
[![Documentation](https://docs.rs/objc2_foundation_derive/badge.svg)](https://docs.rs/objc2_foundation_derive/)
66
[![Apple CI](https://github.com/madsmtm/objc2/actions/workflows/apple.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/apple.yml)
77
[![GNUStep CI](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml)
8+
9+
WIP!
10+
11+
This crate will be exposed under a `derive` flag in `objc2_foundation`, and so
12+
should not need to be used directly.

objc2_sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.0.0" # Remember to update html_root_url in lib.rs
44
authors = ["Mads Marquart <mads@marquart.dk>"]
55
edition = "2018"
66

7-
description = "Raw bindings to Objective-C runtimes"
7+
description = "Raw bindings to the Objective-C runtime and ABI"
88
keywords = ["objective-c", "macos", "ios", "objc_msgSend", "sys"]
99
categories = [
1010
"external-ffi-bindings",

objc2_sys/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Apple CI](https://github.com/madsmtm/objc2/actions/workflows/apple.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/apple.yml)
77
[![GNUStep CI](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/gnustep.yml)
88

9-
Raw Rust bindings to core Objective-C runtimes and ABIs.
9+
Raw Rust bindings to the Objective-C runtime and ABI.
1010

1111
## Runtime Support
1212

0 commit comments

Comments
 (0)