Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add empty proc-macro objc2-proc-macros for use in the future #175

Merged
merged 1 commit into from
Jun 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ members = [
"objc-sys",
"objc2-encode",
"objc2-foundation",
"objc2-proc-macros",
"block2",
"block-sys",
"tests",
Expand Down
12 changes: 12 additions & 0 deletions objc2-proc-macros/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog

Notable changes to this crate will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased - YYYY-MM-DD


## 0.0.0 - 2022-06-16

Initial empty release.
34 changes: 34 additions & 0 deletions objc2-proc-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[package]
name = "objc2-proc-macros"
# Remember to update html_root_url in lib.rs
version = "0.0.0"
authors = ["Mads Marquart <[email protected]>"]
edition = "2021"

description = "Procedural macros for the objc2 project"
keywords = ["objective-c", "macos", "ios", "proc-macro"]
categories = [
"development-tools",
"os::macos-apis",
]
readme = "README.md"
repository = "https://github.com/madsmtm/objc2"
documentation = "https://docs.rs/objc2-proc-macros/"
license = "MIT"

[lib]
proc-macro = true

[features]
default = ["apple"]

# Runtime selection (for future compatibility)
apple = []
gnustep-1-7 = []
gnustep-1-8 = ["gnustep-1-7"]
gnustep-1-9 = ["gnustep-1-8"]
gnustep-2-0 = ["gnustep-1-9"]
gnustep-2-1 = ["gnustep-2-0"]

[package.metadata.docs.rs]
default-target = "x86_64-apple-darwin"
11 changes: 11 additions & 0 deletions objc2-proc-macros/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# `objc2-proc-macros`

[![Latest version](https://badgen.net/crates/v/objc2-proc-macros)](https://crates.io/crates/objc2-proc-macros)
[![License](https://badgen.net/badge/license/MIT/blue)](../LICENSE.txt)
[![Documentation](https://docs.rs/objc2-proc-macros/badge.svg)](https://docs.rs/objc2-proc-macros/)
[![CI](https://github.com/madsmtm/objc2/actions/workflows/ci.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/ci.yml)

Procedural macros for the [`objc2` project](https://github.com/madsmtm/objc2).

You should not need to use this crate directly, all its public items are
exported in other crates.
18 changes: 18 additions & 0 deletions objc2-proc-macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//! Procedural macros for the [`objc2` project](https://github.com/madsmtm/objc2).
//!
//! You should not need to use this crate directly, all its public items are
//! exported in other crates.

#![warn(elided_lifetimes_in_paths)]
#![warn(missing_docs)]
#![deny(non_ascii_idents)]
#![warn(unreachable_pub)]
#![deny(unsafe_op_in_unsafe_fn)]
#![warn(clippy::cargo)]
#![warn(clippy::ptr_as_ptr)]
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2-proc-macros/0.0.0")]

#[cfg(doctest)]
#[doc = include_str!("../README.md")]
extern "C" {}