Deprecate cocoa, cocoa-foundation and io-surface and link to objc2 crates instead (#731)

* Deprecate cocoa-foundation

* Deprecate cocoa

* Deprecate io-surface
This commit is contained in:
Mads Marquart
2025-05-16 18:46:10 +02:00
committed by GitHub
parent 0e783c6355
commit 61b90e72da
17 changed files with 23 additions and 26 deletions
+1
View File
@@ -6,6 +6,7 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![deprecated = "use the objc2 crate instead"]
use objc::runtime;
+1 -1
View File
@@ -6,7 +6,7 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![deprecated = "use the objc2-foundation crate instead"]
#![allow(non_upper_case_globals)]
use crate::base::{id, nil, BOOL, NO, SEL};
+2 -1
View File
@@ -7,7 +7,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(non_snake_case)]
//! This crate has been deprecated in favour of the `objc2-foundation` crate.
#![allow(non_snake_case, deprecated)]
pub mod base;
pub mod foundation;
+2
View File
@@ -1,3 +1,5 @@
#![allow(deprecated)]
#[cfg(test)]
mod foundation {
mod nsstring {