Linus Färnstrand
b8a4536eac
Implement From<&str> for CFString
2017-11-22 14:57:31 +01:00
bors-servo
491d6f782e
Auto merge of #126 - ratake:date, r=jdm
...
Add CFDate, CFTimeZone and make them work with chrono
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/126 )
<!-- Reviewable:end -->
2017-11-13 09:49:13 -06:00
ratake
be2dd253be
Make CFDate and CFTimeZone interoperable with the chrono crate
2017-11-12 17:43:31 -08:00
ratake
7b6fbdb1a1
Added support for CFTimeZone objects
2017-11-12 17:43:31 -08:00
ratake
79cd89bd5d
Added support for CFDate objects
2017-11-12 17:43:31 -08:00
ratake
e3fc4fe3e4
Implement Debug for all types
2017-11-12 17:41:29 -08:00
bors-servo
fda0928c53
Auto merge of #124 - ratake:uuid-crate, r=jdm
...
Made CFUUID interoperable with the uuid crate
Behind the `with-uuid` feature
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/124 )
<!-- Reviewable:end -->
2017-11-08 07:58:55 -06:00
bors-servo
fe0900d73c
Auto merge of #123 - ratake:clone-ord-eq, r=jdm
...
Implement Clone + Eq for all types, Ord for CFNumber
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/123 )
<!-- Reviewable:end -->
2017-11-08 07:35:03 -06:00
bors-servo
223a0d3a0a
Auto merge of #125 - ratake:exact-iterator, r=jdm
...
Implement ExactSizeIterator for CFArrayIterator
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/125 )
<!-- Reviewable:end -->
2017-11-08 07:18:08 -06:00
ratake
8759071ea7
Implement ExactSizeIterator for CFArrayIterator
2017-11-07 20:58:27 -08:00
ratake
b81cfce569
Made CFUUID interoperable with the uuid crate
2017-11-07 20:49:25 -08:00
ratake
2e2e6af6d8
Implement Ord for CFNumber
2017-11-07 20:44:13 -08:00
ratake
933b235901
Implement Clone for all types
...
Not just CFString
2017-11-07 20:44:13 -08:00
ratake
d20b8abc9c
Implement Eq for all types
2017-11-07 20:44:12 -08:00
bors-servo
a1125852db
Auto merge of #122 - jrmuizel:to-path, r=jdm
...
Implement to_path() to convert CFURLs to PathBufs.
This lets us roundtrip Paths through CFURLs
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/122 )
<!-- Reviewable:end -->
2017-10-20 13:44:36 -05:00
Jeff Muizelaar
21a2dde8c6
Implement to_path() to convert CFURLs to PathBufs.
...
This lets us roundtrip Paths through CFURLs
2017-10-20 14:39:45 -04:00
bors-servo
2ceebd44fe
Auto merge of #121 - jrmuizel:uuid, r=jdm
...
Add support for CFUUID
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/121 )
<!-- Reviewable:end -->
2017-10-20 10:46:12 -05:00
bors-servo
dd3b248259
Auto merge of #119 - jrmuizel:cfurl-fs, r=jdm
...
Add CFURLGetFileSystemRepresentation
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/119 )
<!-- Reviewable:end -->
2017-10-20 07:49:22 -05:00
bors-servo
f3a0624bf5
Auto merge of #120 - jrmuizel:path-buf2, r=SimonSapin
...
Support converting non-utf8 paths to CFURLs
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/120 )
<!-- Reviewable:end -->
2017-10-20 02:34:58 -05:00
Jeff Muizelaar
6ca30dd9a8
Add support for CFUUID
2017-10-19 22:29:25 -04:00
Jeff Muizelaar
a6dc32cf50
Support converting non-utf8 paths to CFURLs
2017-10-19 18:17:26 -04:00
Jeff Muizelaar
04fd67e25b
Add CFURLGetFileSystemRepresentation
2017-10-19 17:36:54 -04:00
bors-servo
b9245f7e9b
Auto merge of #118 - ratake:master, r=jdm
...
Filling in more of the API surface
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/118 )
<!-- Reviewable:end -->
2017-10-13 00:38:01 -05:00
ratake
0dd90e84ae
Complete the CFAllocator reference
2017-10-12 21:48:29 -07:00
ratake
a622566dc4
Correct the definition for CFStringCreateWithBytes
2017-10-12 21:48:29 -07:00
ratake
7b0544fef6
Add support for f32 to CFNumber
2017-10-12 21:48:29 -07:00
ratake
dcc0a07776
Complete the types for CFArrayCallBacks and CFDictionaryCallBacks
2017-10-12 21:48:29 -07:00
bors-servo
dc4599d817
Auto merge of #114 - pornel:master, r=emilio
...
Don't break the build on other OSes
Unfortunately `#[cfg(target_os = "macos")] extern crate` is not enough for cross-platform compatibility, because the build is executed unconditionally.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/114 )
<!-- Reviewable:end -->
2017-08-09 08:22:56 -05:00
Kornel
3542722369
Bump version
2017-08-09 13:10:40 +01:00
Kornel
b92e86c77f
Prevent build error on Linux
2017-08-09 13:07:55 +01:00
bors-servo
1a4fac5df0
Auto merge of #113 - pornel:master, r=jdm
...
Bump version number
Closes #112
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/113 )
<!-- Reviewable:end -->
2017-08-08 18:04:25 -05:00
Kornel
5a83faa547
Bump version number
2017-08-08 23:54:15 +01:00
bors-servo
0301bd08b0
Auto merge of #111 - pornel:urlfrompath, r=jdm
...
URL from path
and small fixes
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/111 )
<!-- Reviewable:end -->
2017-08-08 10:21:25 -05:00
Kornel
dfd168f5a0
CFURL from Path
2017-08-08 15:53:55 +01:00
Kornel
fe6edb78b9
Fix return types
2017-08-08 15:06:15 +01:00
bors-servo
2990a43ea9
Auto merge of #110 - pornel:108, r=jdm
...
Optional 10.8 support
Closes #109
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/110 )
<!-- Reviewable:end -->
2017-08-08 08:43:24 -05:00
Kornel
ba3e78cd3e
Add 10.8-only constant
2017-08-08 14:31:38 +01:00
Kornel
d32bc9ea23
10.7/10.8 compatibility features
2017-08-08 14:31:38 +01:00
bors-servo
7b76f3dff9
Auto merge of #108 - pornel:master, r=jdm
...
Added some CFURL functions and constants
I've checked all are available on 10.7.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/108 )
<!-- Reviewable:end -->
2017-08-08 07:36:43 -05:00
Kornel
d0e0b1a34d
Add CFURL functions
2017-08-08 13:12:25 +01:00
Kornel
7fc7348821
Non-deprecated constants for 10.7+
2017-08-08 13:12:01 +01:00
Kornel
a9cee95b3c
CFURLSetResourcePropertyForKey
2017-08-08 12:58:39 +01:00
bors-servo
589527458e
Auto merge of #107 - rthomas:106-warnings, r=jdm
...
Remove zero-sized struct warning. #106 .
This change will fix the remaining warnings in servo/core-text-rs#62 when it is released and the core-text crate is updated.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/107 )
<!-- Reviewable:end -->
2017-07-27 15:53:18 -05:00
Ryan Thomas
a37ecf56bb
Wrap the test in unsafe to prevent E0133.
...
E0133 has gone from warning to error on nightly now, this fix allows the
tests to pass on nightly.
2017-07-27 21:52:27 +01:00
Ryan Thomas
4c8373363f
Bump version number to 0.4.2.
2017-07-27 20:23:55 +01:00
Ryan Thomas
b67ccaff4c
Remove zero-sized struct warning. #106 .
2017-07-27 20:08:41 +01:00
bors-servo
4c380a67b4
Auto merge of #103 - nikhilm:frameworks-path, r=jdm
...
Add CFBundle::private_frameworks_url() exposing CFBundleCopyPrivateFr…
…ameworksURL().
If this is merged, would it be possible to cut a release after?
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/103 )
<!-- Reviewable:end -->
2017-06-16 11:17:18 -07:00
Nikhil Marathe
650d7a0245
Bump version to 0.4.1
2017-06-16 11:01:07 -07:00
Nikhil Marathe
d58b72d211
Add CFBundle::private_frameworks_url() exposing CFBundleCopyPrivateFrameworksURL().
2017-06-16 09:19:05 -07:00
bors-servo
5a90926ad4
Auto merge of #102 - servo:jdm-patch-1, r=KiChjang
...
Prepare to publish newest changes
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/102 )
<!-- Reviewable:end -->
2017-06-01 17:44:17 -07:00