Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move block crate into this repo #18

Merged
merged 127 commits into from
Sep 2, 2021
Merged

Move block crate into this repo #18

merged 127 commits into from
Sep 2, 2021

Commits on Dec 6, 2014

  1. Added WIP block module.

    SSheldon committed Dec 6, 2014
    Configuration menu
    Copy the full SHA
    b496627 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1cece3b View commit details
    Browse the repository at this point in the history
  3. Added a block test.

    SSheldon committed Dec 6, 2014
    Configuration menu
    Copy the full SHA
    42a8f8a View commit details
    Browse the repository at this point in the history
  4. Remove debug print.

    SSheldon committed Dec 6, 2014
    Configuration menu
    Copy the full SHA
    5b6ea39 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2014

  1. Configuration menu
    Copy the full SHA
    046bb79 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2014

  1. Configuration menu
    Copy the full SHA
    ad4f35c View commit details
    Browse the repository at this point in the history
  2. Added new Block struct.

    SSheldon committed Dec 21, 2014
    Configuration menu
    Copy the full SHA
    d6ea817 View commit details
    Browse the repository at this point in the history
  3. Added BlockArguments trait.

    SSheldon committed Dec 21, 2014
    Configuration menu
    Copy the full SHA
    1822be4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    993f5dd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    78c4a00 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7b94de2 View commit details
    Browse the repository at this point in the history
  7. Made creating ConcreteBlocks safer.

    Instead of supplying an extern fn, a simpler native rust fn is supplied
    and the BlockArguments trait is used to get an extern fn that wraps it.
    SSheldon committed Dec 21, 2014
    Configuration menu
    Copy the full SHA
    732b197 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2014

  1. Configuration menu
    Copy the full SHA
    27c5aef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b0c3b4 View commit details
    Browse the repository at this point in the history
  3. Added more block tests.

    SSheldon committed Dec 23, 2014
    Configuration menu
    Copy the full SHA
    45cadbd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    78a4852 View commit details
    Browse the repository at this point in the history
  5. Added crashing test.

    SSheldon committed Dec 23, 2014
    Configuration menu
    Copy the full SHA
    34b5bb4 View commit details
    Browse the repository at this point in the history
  6. Fixed a nasty bug in block_context_copy.

    Previous code was just assigning to an uninitialzed field, so the
    compiler was dropping it; by changing this to a ptr::write the existing
    value is no longer dropped.
    SSheldon committed Dec 23, 2014
    Configuration menu
    Copy the full SHA
    0e03246 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0c2c447 View commit details
    Browse the repository at this point in the history
  8. Rearranged some test code.

    SSheldon committed Dec 23, 2014
    Configuration menu
    Copy the full SHA
    4e26f33 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5d2a103 View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2014

  1. Configuration menu
    Copy the full SHA
    3573f2e View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2014

  1. Configuration menu
    Copy the full SHA
    942de97 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2014

  1. Configuration menu
    Copy the full SHA
    f3119f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    186a4cc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d6670ac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e250b92 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    32001d6 View commit details
    Browse the repository at this point in the history
  6. Changed ConcreteBlock to use a generic closure.

    The old behavior can be replicated by creating a custom closure with a
    context and function.
    SSheldon committed Dec 28, 2014
    Configuration menu
    Copy the full SHA
    8bd035a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    03a04fb View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2014

  1. Configuration menu
    Copy the full SHA
    d3579e8 View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2014

  1. Configuration menu
    Copy the full SHA
    052e479 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2014

  1. Configuration menu
    Copy the full SHA
    be61ff1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eec21a1 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2015

  1. Configuration menu
    Copy the full SHA
    57daad9 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2015

  1. Fixed most issues for the latest rust.

    Disabled the msg_send! and method! macros.
    SSheldon committed Jan 10, 2015
    Configuration menu
    Copy the full SHA
    68d2a5d View commit details
    Browse the repository at this point in the history
  2. Add argument and return types back to ConcreteBlock.

    This reverts commit 3c6d05c.
    SSheldon committed Jan 10, 2015
    Configuration menu
    Copy the full SHA
    c798cd8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    481d374 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9a552ff View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0677664 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    679a8f6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    05c17ed View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5104479 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2015

  1. Configuration menu
    Copy the full SHA
    e609a10 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1efff8 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2015

  1. Configuration menu
    Copy the full SHA
    bcb87e9 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2015

  1. Configuration menu
    Copy the full SHA
    d61568b View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2015

  1. Configuration menu
    Copy the full SHA
    2f7bf9f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    093ea64 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e2be6b7 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2015

  1. Configuration menu
    Copy the full SHA
    efda935 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2015

  1. Configuration menu
    Copy the full SHA
    a159a1b View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2015

  1. Configuration menu
    Copy the full SHA
    a17ef73 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    847aed1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    25345a4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7fc4d69 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0622f6d View commit details
    Browse the repository at this point in the history
  6. Enabled doctests for core.

    SSheldon committed Feb 7, 2015
    Configuration menu
    Copy the full SHA
    f4842a2 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2015

  1. Configuration menu
    Copy the full SHA
    d621f0f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d17a48b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a7a54f3 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2015

  1. Added failing Block test.

    SSheldon committed Feb 11, 2015
    Configuration menu
    Copy the full SHA
    6a8656a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    99d285b View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2015

  1. Created a test_utils module.

    SSheldon committed Feb 14, 2015
    Configuration menu
    Copy the full SHA
    7c28aff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    59d8e46 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2015

  1. Configuration menu
    Copy the full SHA
    9ae5059 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2015

  1. Configuration menu
    Copy the full SHA
    2f8c87f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    580ff1d View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2015

  1. Configuration menu
    Copy the full SHA
    2ac205a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ee154d7 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2015

  1. Configuration menu
    Copy the full SHA
    2d4266d View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2015

  1. Configuration menu
    Copy the full SHA
    313c0a5 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2015

  1. Configuration menu
    Copy the full SHA
    9949d59 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e20aba1 View commit details
    Browse the repository at this point in the history
  3. Update tests for new crate.

    SSheldon committed Apr 17, 2015
    Configuration menu
    Copy the full SHA
    6a82e83 View commit details
    Browse the repository at this point in the history
  4. Added README.

    SSheldon committed Apr 17, 2015
    Configuration menu
    Copy the full SHA
    7831e10 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fe901fe View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b41dc67 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9c5dee5 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2015

  1. Remove objc dependency.

    SSheldon committed Apr 18, 2015
    Configuration menu
    Copy the full SHA
    05004aa View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2015

  1. Configuration menu
    Copy the full SHA
    c93b6a1 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2015

  1. Configuration menu
    Copy the full SHA
    895e712 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2015

  1. Configuration menu
    Copy the full SHA
    7b0fbcd View commit details
    Browse the repository at this point in the history

Commits on May 2, 2015

  1. Added documentation link to Cargo metadata.

    (cherry picked from commit c93b6a1)
    SSheldon committed May 2, 2015
    Configuration menu
    Copy the full SHA
    4426ca1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5111e0 View commit details
    Browse the repository at this point in the history
  3. Bumped to version 0.0.2.

    SSheldon committed May 2, 2015
    Configuration menu
    Copy the full SHA
    0c8b7a9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e2b770e View commit details
    Browse the repository at this point in the history

Commits on May 17, 2015

  1. Configuration menu
    Copy the full SHA
    9c28f61 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8d6da41 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c485b40 View commit details
    Browse the repository at this point in the history
  4. Updated some documentation.

    SSheldon committed May 17, 2015
    Configuration menu
    Copy the full SHA
    00631d5 View commit details
    Browse the repository at this point in the history
  5. Added RcBlock documentation.

    SSheldon committed May 17, 2015
    Configuration menu
    Copy the full SHA
    fc918f4 View commit details
    Browse the repository at this point in the history
  6. Updated README.

    SSheldon committed May 17, 2015
    Configuration menu
    Copy the full SHA
    13cafce View commit details
    Browse the repository at this point in the history
  7. Bumped to version 0.1.0.

    SSheldon committed May 17, 2015
    Configuration menu
    Copy the full SHA
    a4cba0b View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2015

  1. Fix nightly warnings related to lifetimes

    The following warnings appear:
    
    ```
    src/lib.rs:73:5: 73:68 warning: the trait `core::marker::Sized` is not implemented for the type `Self` [E0277]
    src/lib.rs:73     unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R;
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lib.rs:73:5: 73:68 help: run `rustc --explain E0277` to see a detailed explanation
    src/lib.rs:73:5: 73:68 note: `Self` does not have a constant size known at compile-time
    src/lib.rs:73     unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R;
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lib.rs:73:5: 73:68 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
    src/lib.rs:73     unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R;
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lib.rs:73:5: 73:68 note: required by `Block`
    src/lib.rs:73     unsafe fn call_block<R>(self, block: *mut Block<Self, R>) -> R;
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lib.rs:187:5: 187:71 warning: the trait `core::marker::Sized` is not implemented for the type `Self` [E0277]
    src/lib.rs:187     fn into_concrete_block(self) -> ConcreteBlock<A, Self::Ret, Self>;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lib.rs:187:5: 187:71 help: run `rustc --explain E0277` to see a detailed explanation
    src/lib.rs:187:5: 187:71 note: `Self` does not have a constant size known at compile-time
    src/lib.rs:187     fn into_concrete_block(self) -> ConcreteBlock<A, Self::Ret, Self>;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lib.rs:187:5: 187:71 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
    src/lib.rs:187     fn into_concrete_block(self) -> ConcreteBlock<A, Self::Ret, Self>;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/lib.rs:187:5: 187:71 note: required by `ConcreteBlock`
    src/lib.rs:187     fn into_concrete_block(self) -> ConcreteBlock<A, Self::Ret, Self>;
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ```
    
    ...because of:
    
    rust-lang/rfcs#1214
    frewsxcv committed Sep 2, 2015
    Configuration menu
    Copy the full SHA
    5fd52e8 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2015

  1. Bumped to version 0.1.1.

    SSheldon committed Sep 3, 2015
    Configuration menu
    Copy the full SHA
    bd10ada View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2015

  1. Add a Class type to fix the improper_ctypes warning.

    This warning starting appearing from rust-lang/rust#26583.
    SSheldon committed Oct 6, 2015
    Configuration menu
    Copy the full SHA
    a1c5ef6 View commit details
    Browse the repository at this point in the history
  2. Bumped to version 0.1.2.

    SSheldon committed Oct 6, 2015
    Configuration menu
    Copy the full SHA
    0267d5e View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2015

  1. Configuration menu
    Copy the full SHA
    45b644f View commit details
    Browse the repository at this point in the history
  2. Bumped to version 0.1.3.

    SSheldon committed Nov 7, 2015
    Configuration menu
    Copy the full SHA
    d79b428 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2015

  1. Configuration menu
    Copy the full SHA
    d3ff93d View commit details
    Browse the repository at this point in the history
  2. Bumped to version 0.1.4.

    SSheldon committed Nov 12, 2015
    Configuration menu
    Copy the full SHA
    b120714 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2016

  1. Configuration menu
    Copy the full SHA
    12109dc View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2016

  1. Configuration menu
    Copy the full SHA
    88b38f6 View commit details
    Browse the repository at this point in the history
  2. Bumped to version 0.1.5.

    SSheldon committed Apr 4, 2016
    Configuration menu
    Copy the full SHA
    dd2da22 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2016

  1. Added travis config.

    SSheldon committed May 8, 2016
    Configuration menu
    Copy the full SHA
    e1ebad9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8868a8b View commit details
    Browse the repository at this point in the history
  3. Add rust-tests-ios support.

    SSheldon committed May 8, 2016
    Configuration menu
    Copy the full SHA
    b4cb376 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e7b6650 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a5767ce View commit details
    Browse the repository at this point in the history
  6. Add support for Linux.

    Platforms beside OSX and iOS will link to libBlocksRuntime.
    SSheldon committed May 8, 2016
    Configuration menu
    Copy the full SHA
    1499799 View commit details
    Browse the repository at this point in the history
  7. Bumped to version 0.1.6.

    SSheldon committed May 8, 2016
    Configuration menu
    Copy the full SHA
    4717879 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2016

  1. Remove libdispatch-dev package for travis.

    It isn't necessary now that travis-ci/apt-package-safelist#2949 is
    fixed.
    SSheldon committed May 9, 2016
    Configuration menu
    Copy the full SHA
    fb2fbf4 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2016

  1. Configuration menu
    Copy the full SHA
    d14ade0 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2017

  1. Configuration menu
    Copy the full SHA
    4fda032 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2018

  1. Fix markdown warning.

    When updating to current Rust, there is a warning for a change
    in the output due to the change in Markdown implementations.
    waywardmonkeys committed Jan 26, 2018
    Configuration menu
    Copy the full SHA
    642ea4a View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2021

  1. Configuration menu
    Copy the full SHA
    e03b827 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8a4c403 View commit details
    Browse the repository at this point in the history
  3. Run cargo fmt

    madsmtm committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    ce5a9bf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3868950 View commit details
    Browse the repository at this point in the history
  5. Update test_utils to use cc rather than gcc.

    The `gcc` crate has been replaced with `cc`. Additionally, the
    `gcc:Config` was renamed to `gcc::Build`. This updates both of
    those.
    
    Commit taken from SSheldon/rust-block#8
    waywardmonkeys authored and madsmtm committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    d8e1c60 View commit details
    Browse the repository at this point in the history
  6. Fix warnings

    madsmtm committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    b6438c7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3f580b4 View commit details
    Browse the repository at this point in the history
  8. Implement RefEncode for Block and ConcreteBlock

    This also adds A: EncodeArguments and R: Encode bounds on blocks, which is a good idea to require given that the types are being sent to and from Objective-C!
    madsmtm committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    bbf3a4e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2e71917 View commit details
    Browse the repository at this point in the history
  10. Don't depend on objc in objc_encode

    It's also actually nicer to have examples that use the current crate!
    madsmtm committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    4c453dd View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    50704af View commit details
    Browse the repository at this point in the history