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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#![allow(deprecated)]
|
||||
|
||||
#[cfg(test)]
|
||||
mod foundation {
|
||||
mod nsstring {
|
||||
|
||||
Reference in New Issue
Block a user