Skip to content

Commit f7dbd4f

Browse files
committed
Deprecate cocoa-foundation
1 parent 0e783c6 commit f7dbd4f

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

cocoa-foundation/src/base.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
77
// option. This file may not be copied, modified, or distributed
88
// except according to those terms.
9+
#![deprecated = "use the objc2 crate instead"]
910

1011
use objc::runtime;
1112

cocoa-foundation/src/foundation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
77
// option. This file may not be copied, modified, or distributed
88
// except according to those terms.
9-
9+
#![deprecated = "use the objc2-foundation crate instead"]
1010
#![allow(non_upper_case_globals)]
1111

1212
use crate::base::{id, nil, BOOL, NO, SEL};

cocoa-foundation/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
// option. This file may not be copied, modified, or distributed
88
// except according to those terms.
99

10-
#![allow(non_snake_case)]
10+
//! This crate has been deprecated in favour of the `objc2-foundation` crate.
11+
#![allow(non_snake_case, deprecated)]
1112

1213
pub mod base;
1314
pub mod foundation;

cocoa-foundation/tests/foundation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(deprecated)]
2+
13
#[cfg(test)]
24
mod foundation {
35
mod nsstring {

0 commit comments

Comments
 (0)