Commit Graph

119 Commits

Author SHA1 Message Date
Lars Bergstrom ea3dda06fc Upgrade to rust 2014-04-11 17:33:18 -05:00
Jack Moffitt 566a1dee24 Merge pull request #30 from larsbergstrom/rustup
Generate both dylib and rlib for rustup
2014-04-04 09:12:42 -06:00
Lars Bergstrom 67628775b3 Generate both dylib and rlib for rustup 2014-04-04 09:52:47 -05:00
Jack Moffitt ea69bffe08 Merge pull request #29 from larsbergstrom/rustup_20140321
Rust upgrade
2014-04-04 08:18:55 -06:00
Lars Bergstrom b59c77c3e7 Rust upgrade 2014-04-04 09:16:32 -05:00
Josh Matthews a6db2397eb Merge pull request #28 from larsbergstrom/clean_rlib
Clean rlib files
2014-03-19 14:51:53 -04:00
Lars Bergstrom bfd82f969b Clean rlib files 2014-03-19 13:48:52 -05:00
Jack Moffitt 18577a8825 Merge pull request #27 from larsbergstrom/rust_20140224
Rust upgrade
2014-03-18 09:45:07 -06:00
Lars Bergstrom a28323ddab Rust upgrade 2014-03-04 08:47:44 -08:00
Josh Matthews e855f9e03d Merge pull request #26 from metajack/rustup-20141219
Upgrade to latest Rust.
2014-01-09 10:43:53 -08:00
Jack Moffitt 6c8c2a75b8 Upgrade to latest Rust. 2014-01-03 10:02:20 -07:00
Jack Moffitt 0a9090b60d More fixes for tests. 2013-12-26 23:41:36 -07:00
Jack Moffitt 16fda8b2ab Fix tests for bindings changes. 2013-12-26 23:07:23 -07:00
yichoi 8445f0e447 Merge pull request #25 from metajack/unrustpkg
Build with make instead of rustpkg.
2013-12-26 19:00:34 -08:00
Jack Moffitt 5edda19f20 Build with make instead of rustpkg. 2013-12-26 19:45:17 -07:00
Jack Moffitt b41b972fbd Merge pull request #23 from mozilla-servo/revamp
Revamp and modernize the Core Foundation APIs.
2013-11-14 17:15:27 -08:00
Patrick Walton dc1184ebe2 Revamp and modernize the Core Foundation APIs.
This change redoes the way Core Foundation works to make the API
smaller, safer, and easier to use. In particular:

* Deriving custom types is now based on `struct`s, not on making a
  type alias of `CFWrapper`.

* The attempts at type safety for `CFArray` and `CFDictionary` were
  removed as not pulling their weight (IMHO).

* Methods that are really unsafe (in particular `wrap_owned` and
  `wrap_shared`) are now marked `unsafe`.

* `wrap_owned` has been renamed to `wrap_under_create_rule` and
  `wrap_shared` has been renamed to `wrap_under_get_rule`, to match
  Apple's documentation.

* `borrow_ref` and friends have been simplified into
  `as_concrete_TypeRef()` and `as_TypeRef()`.

* Dictionaries, arrays, and sets now assume that their elements are
  Core Foundation objects. The old code tried not to assume that,
  but ended up assuming that anyway in a couple of places.

* `CFString`s can be converted from Rust types with the `FromStr`
  trait. `CFNumber`s can be converted to and from Rust types with
  `ToPrimitive` and `FromPrimitive`, eliminating the duplication of
  functionality inside this module.
2013-11-15 09:46:49 +09:00
Jack Moffitt a137ef8440 Merge pull request #24 from kmcallister/rustpkg
Rustpkg
2013-11-07 17:07:57 -08:00
Keegan McAllister 329e5165e8 Remove old build system 2013-11-06 17:49:18 -08:00
Jack Moffitt 8aab601a46 Convert to rustpkg format. 2013-11-04 14:45:49 -08:00
Jack Moffitt b5ddb54271 Merge pull request #21 from SimonSapin/master
Fix "&KeyRefType does not implement Default"
2013-10-31 08:22:37 -07:00
Simon Sapin d01395388e Fix "&KeyRefType does not implement Default" 2013-10-31 14:33:08 +00:00
Jack Moffitt 3317ae82cf Merge pull request #20 from kmcallister/rust-upgrade
Rust upgrade
2013-10-30 14:58:55 -07:00
Keegan McAllister 576c920990 fmt! -> format! 2013-10-28 20:08:55 -07:00
Patrick Walton b0565c60dc Update for language changes 2013-10-03 15:20:48 -07:00
Jack Moffitt c8a4f4fda2 Upgrade Rust. 2013-09-27 15:34:19 -06:00
Brian Anderson e5dfaffd54 Merge pull request #19 from brson/master
Fix bool casts
2013-09-06 17:00:18 -07:00
Brian Anderson 7d71796ef2 Fix bool casts 2013-09-06 17:39:05 -07:00
Jack Moffitt fca80285d3 Merge pull request #18 from SimonSapin/rust-upgrade
Upgrade to rustc 0.8-pre (0ac3e02 2013-08-30 05:45:45 -0700)
2013-09-03 13:12:34 -07:00
Simon Sapin e0efe40213 Add a FIXME comment for the dummy parameter work around. See #17 2013-09-03 19:32:32 +01:00
Simon Sapin 95f2f30981 Upgrade to rustc 0.8-pre (0ac3e02 2013-08-30 05:45:45 -0700) 2013-09-02 17:13:27 +01:00
Jack Moffitt 1f43d00330 Merge pull request #16 from brson/master
Update for language changes
2013-08-29 15:24:53 -07:00
Brian Anderson 9755a007a0 Update for language changes 2013-08-29 15:33:30 -07:00
Jack Moffitt c5dafee99a Revert --out-dir on tests. 2013-08-16 16:40:42 -06:00
Keegan McAllister 27050029b7 Merge pull request #15 from metajack/rust-upgrade-mac
More changes for new rust.
2013-08-16 11:17:18 -07:00
Jack Moffitt 850203e1e8 Switch from -o to --out-dir. 2013-08-16 12:15:02 -06:00
Jack Moffitt d6ea3eca04 Update make file to remove rustc warning. 2013-08-16 11:03:06 -06:00
Jack Moffitt cfabac1e68 Fix string usage now that rust has dropped trailing nulls. 2013-08-16 11:02:38 -06:00
Jack Moffitt 22e29ddc68 Rename iterators. 2013-08-16 11:02:21 -06:00
Jack Moffitt f9954a903b Fix warnings. 2013-08-16 11:02:08 -06:00
Jack Moffitt 16e61df6d1 Fix test failures. 2013-08-16 11:01:52 -06:00
Keegan McAllister 839fc639b4 Rewrite CFArray::each as an external iterator 2013-08-15 21:19:10 -07:00
Keegan McAllister 6c4c4790c3 Merge pull request #14 from metajack/rustup
Upgrade to latest rust.
2013-08-15 17:51:15 -07:00
Jack Moffitt cb48972c1d Upgrade to latest rust. 2013-08-15 18:45:17 -06:00
Josh Matthews 77e9ed24ca Merge pull request #13 from metajack/rust-up
Upgrade to latest Rust.
2013-07-08 09:56:05 -07:00
Jack Moffitt 6648fac82c Upgrade to latest Rust. 2013-07-08 10:50:46 -06:00
Brian Anderson ea8d2bd026 Update for language changes 2013-06-25 19:45:15 -07:00
Patrick Walton 40b2a4eaf8 Merge pull request #12 from metajack/for-protocol
Update for new for protocol.
2013-05-15 18:10:50 -07:00
Jack Moffitt 34970b962a Update for new for protocol. 2013-05-15 19:09:12 -06:00
Brian Anderson 5647befc43 Merge pull request #9 from metajack/unused-mut
Fix C FFI to use *mut pointers correctly and update code.
2013-05-09 18:51:22 -07:00