Skip to content

Commit 736dc75

Browse files
authored
Merge pull request #175 from madsmtm/proc-macros
Add empty proc-macro `objc2-proc-macros` for use in the future
2 parents a301d25 + 0e7162f commit 736dc75

File tree

5 files changed

+76
-0
lines changed

5 files changed

+76
-0
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ members = [
44
"objc-sys",
55
"objc2-encode",
66
"objc2-foundation",
7+
"objc2-proc-macros",
78
"block2",
89
"block-sys",
910
"tests",

objc2-proc-macros/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changelog
2+
3+
Notable changes to this crate will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6+
7+
## Unreleased - YYYY-MM-DD
8+
9+
10+
## 0.0.0 - 2022-06-16
11+
12+
Initial empty release.

objc2-proc-macros/Cargo.toml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[package]
2+
name = "objc2-proc-macros"
3+
# Remember to update html_root_url in lib.rs
4+
version = "0.0.0"
5+
authors = ["Mads Marquart <[email protected]>"]
6+
edition = "2021"
7+
8+
description = "Procedural macros for the objc2 project"
9+
keywords = ["objective-c", "macos", "ios", "proc-macro"]
10+
categories = [
11+
"development-tools",
12+
"os::macos-apis",
13+
]
14+
readme = "README.md"
15+
repository = "https://github.com/madsmtm/objc2"
16+
documentation = "https://docs.rs/objc2-proc-macros/"
17+
license = "MIT"
18+
19+
[lib]
20+
proc-macro = true
21+
22+
[features]
23+
default = ["apple"]
24+
25+
# Runtime selection (for future compatibility)
26+
apple = []
27+
gnustep-1-7 = []
28+
gnustep-1-8 = ["gnustep-1-7"]
29+
gnustep-1-9 = ["gnustep-1-8"]
30+
gnustep-2-0 = ["gnustep-1-9"]
31+
gnustep-2-1 = ["gnustep-2-0"]
32+
33+
[package.metadata.docs.rs]
34+
default-target = "x86_64-apple-darwin"

objc2-proc-macros/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# `objc2-proc-macros`
2+
3+
[![Latest version](https://badgen.net/crates/v/objc2-proc-macros)](https://crates.io/crates/objc2-proc-macros)
4+
[![License](https://badgen.net/badge/license/MIT/blue)](../LICENSE.txt)
5+
[![Documentation](https://docs.rs/objc2-proc-macros/badge.svg)](https://docs.rs/objc2-proc-macros/)
6+
[![CI](https://github.com/madsmtm/objc2/actions/workflows/ci.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/ci.yml)
7+
8+
Procedural macros for the [`objc2` project](https://github.com/madsmtm/objc2).
9+
10+
You should not need to use this crate directly, all its public items are
11+
exported in other crates.

objc2-proc-macros/src/lib.rs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//! Procedural macros for the [`objc2` project](https://github.com/madsmtm/objc2).
2+
//!
3+
//! You should not need to use this crate directly, all its public items are
4+
//! exported in other crates.
5+
6+
#![warn(elided_lifetimes_in_paths)]
7+
#![warn(missing_docs)]
8+
#![deny(non_ascii_idents)]
9+
#![warn(unreachable_pub)]
10+
#![deny(unsafe_op_in_unsafe_fn)]
11+
#![warn(clippy::cargo)]
12+
#![warn(clippy::ptr_as_ptr)]
13+
// Update in Cargo.toml as well.
14+
#![doc(html_root_url = "https://docs.rs/objc2-proc-macros/0.0.0")]
15+
16+
#[cfg(doctest)]
17+
#[doc = include_str!("../README.md")]
18+
extern "C" {}

0 commit comments

Comments
 (0)