Debian Codegraph @

third_party/rust/objc/CHANGELOG.md

raw
1 ## 0.2.7
2
3 ### Fixed
4
5 * Uses of `msg_send!` will now correctly fail to compile if no return type
6 can be inferred, instead of relying on an edge case of the compiler
7 that will soon change and silently cause undefined behavior.
8
9 ## 0.2.6
10
11 ### Fixed
12
13 * Suppressed a deprecation warning in `sel!`, `msg_send!`, and `class!`.
14
15 ## 0.2.5
16
17 ### Added
18
19 * `autoreleasepool` returns the value returned by its body closure.
20
21 ## 0.2.4
22
23 ### Added
24
25 * Added an `rc` module with reference counting utilities:
26 `StrongPtr`, `WeakPtr`, and `autoreleasepool`.
27
28 * Added some reference counting ABI foreign functions to the `runtime` module.
29
30 ### Fixed
31
32 * Messaging nil under GNUstep now correctly returns zeroed results for all
33 return types.
34
35 ## 0.2.3
36
37 ### Added
38
39 * Added a `class!` macro for getting statically-known classes. The result is
40 non-optional (avoiding a need to unwrap) and cached so each usage will only
41 look up the class once.
42
43 * Added caching to the `sel!` macro so that each usage will only register the
44 selector once.
45
46 ### Fixed
47
48 * Fixed the implementation of `objc::runtime` structs so there can't be unsound
49 references to uninhabited types.
50
51 ## 0.2.2
52
53 ### Added
54
55 * Implemented `Sync` and `Send` for `Sel`.
56
57 ## 0.2.1
58
59 ### Added
60
61 * Added support for working with protocols with the `Protocol` struct.
62 The protocols a class conforms to can be examined with the new
63 `Class::adopted_protocols` and `Class::conforms_to` methods.
64
65 * Protocols can be declared using the new `ProtocolDecl` struct.
66
67 ## 0.2.0
68
69 ### Added
70
71 * Added verification for the types used when sending messages.
72 This can be enabled for all messages with the `"verify_message"` feature,
73 or you can test before sending specific messages with the
74 `Message::verify_message` method. Verification errors are reported using the
75 new `MessageError` struct.
76
77 * Added support for the GNUstep runtime!
78 Operating systems besides OSX and iOS will fall back to the GNUstep runtime.
79
80 * Root classes can be declared by using the `ClassDecl::root` constructor.
81
82 ### Changed
83
84 * C types are now used from `std::os::raw` rather than `libc`. This means
85 `Encode` may not be implemented for `libc` types; switch them to the
86 `std::os::raw` equivalents instead. This avoids an issue that would arise
87 from simultaneously using different versions of the libc crate.
88
89 * Dynamic messaging was moved into the `Message` trait; instead of
90 `().send(obj, sel!(description))`, use
91 `obj.send_message(sel!(description), ())`.
92
93 * Rearranged the parameters to `ClassDecl::new` for consistency; instead of
94 `ClassDecl::new(superclass, "MyObject")`, use
95 `ClassDecl::new("MyObject", superclass)`.
96
97 * Overhauled the `MethodImplementation` trait. Encodings are now accessed
98 through the `MethodImplementation::Args` associated type. The `imp_for`
99 method was replaced with `imp` and no longer takes a selector or returns an
100 `UnequalArgsError`, although `ClassDecl::add_method` still validates the
101 number of arguments.
102
103 * Updated the definition of `Imp` to not use the old dispatch prototypes.
104 To invoke an `Imp`, it must first be transmuted to the correct type.
105
106 * Removed `objc_msgSend` functions from the `runtime` module; the availability
107 of these functions varies and they shouldn't be called without trasmuting,
108 so they are now hidden as an implementation detail of messaging.
109
110 ### Fixed
111
112 * Corrected alignment of ivars in `ClassDecl`; declared classes may now have a
113 smaller size.
114
115 * With the `"exception"` or `"verify_message"` feature enabled, panics from
116 `msg_send!` will now be triggered from the line and file where the macro is
117 used, rather than from within the implementation of messaging.