All Versions
10
Latest Version
Avg Release Cycle
165 days
Latest Release
944 days ago

Changelog History

  • v0.2.7 Changes

    October 16, 2019

    ๐Ÿ›  Fixed

    • ๐Ÿ‘‰ Uses of msg_send! will now correctly fail to compile if no return type can be inferred, instead of relying on an edge case of the compiler that will soon change and silently cause undefined behavior.
  • v0.2.6 Changes

    March 25, 2019

    ๐Ÿ›  Fixed

    • ๐Ÿ—„ Suppressed a deprecation warning in sel!, msg_send!, and class!.
  • v0.2.5 Changes

    July 24, 2018

    โž• Added

    • ๐Ÿš€ autoreleasepool returns the value returned by its body closure.
  • v0.2.4 Changes

    July 22, 2018

    โž• Added

    • โž• Added an rc module with reference counting utilities: StrongPtr, WeakPtr, and autoreleasepool.

    • โž• Added some reference counting ABI foreign functions to the runtime module.

    ๐Ÿ›  Fixed

    • Messaging nil under GNUstep now correctly returns zeroed results for all return types.
  • v0.2.3 Changes

    July 07, 2018

    โž• Added

    • โž• Added a class! macro for getting statically-known classes. The result is non-optional (avoiding a need to unwrap) and cached so each usage will only look up the class once.

    • โž• Added caching to the sel! macro so that each usage will only register the selector once.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed the implementation of objc::runtime structs so there can't be unsound references to uninhabited types.
  • v0.2.2 Changes

    October 30, 2016

    โž• Added

    • ๐Ÿ”€ Implemented Sync and Send for Sel.
  • v0.2.1 Changes

    April 23, 2016

    โž• Added

    • โž• Added support for working with protocols with the Protocol struct. The protocols a class conforms to can be examined with the new Class::adopted_protocols and Class::conforms_to methods.

    • Protocols can be declared using the new ProtocolDecl struct.

  • v0.2.0 Changes

    March 20, 2016

    โž• Added

    • โž• Added verification for the types used when sending messages. This can be enabled for all messages with the "verify_message" feature, or you can test before sending specific messages with the Message::verify_message method. Verification errors are reported using the new MessageError struct.

    • โž• Added support for the GNUstep runtime! Operating systems besides OSX and iOS will fall back to the GNUstep runtime.

    • Root classes can be declared by using the ClassDecl::root constructor.

    ๐Ÿ”„ Changed

    • C types are now used from std::os::raw rather than libc. This means Encode may not be implemented for libc types; switch them to the std::os::raw equivalents instead. This avoids an issue that would arise from simultaneously using different versions of the libc crate.

    • ๐Ÿšš Dynamic messaging was moved into the Message trait; instead of ().send(obj, sel!(description)), use obj.send_message(sel!(description), ()).

    • Rearranged the parameters to ClassDecl::new for consistency; instead of ClassDecl::new(superclass, "MyObject"), use ClassDecl::new("MyObject", superclass).

    • Overhauled the MethodImplementation trait. Encodings are now accessed through the MethodImplementation::Args associated type. The imp_for method was replaced with imp and no longer takes a selector or returns an UnequalArgsError, although ClassDecl::add_method still validates the number of arguments.

    • โšก๏ธ Updated the definition of Imp to not use the old dispatch prototypes. To invoke an Imp, it must first be transmuted to the correct type.

    • โœ‚ Removed objc_msgSend functions from the runtime module; the availability of these functions varies and they shouldn't be called without trasmuting, so they are now hidden as an implementation detail of messaging.

    ๐Ÿ›  Fixed

    • Corrected alignment of ivars in ClassDecl; declared classes may now have a smaller size.

    • ๐Ÿ‘ป With the "exception" or "verify_message" feature enabled, panics from msg_send! will now be triggered from the line and file where the macro is used, rather than from within the implementation of messaging.

  • v0.1.8

    November 06, 2015
  • v0.1.7

    September 23, 2015