This commit is contained in:
Sean Marshallsay 2016-05-03 08:31:53 +01:00
Родитель a45c899d7d
Коммит d5240717c2
2 изменённых файлов: 17 добавлений и 5 удалений

Просмотреть файл

@ -1,5 +1,14 @@
# [master]
# [0.3.3] - 2016-05-03
## Fixed
- arbitrarily nested `const` pointers are handled correctly
- function declarations can now contain patterns
- such as `fn foo(mut a: ...`
- zero argument functions are now written out as `func(void)`
# [0.3.2] - 2016-03-02
## Changed
@ -49,7 +58,8 @@
- old: `#![plugin(cheddar(path,to,file))]`
- new: `#![plugin(cheddar(dir = "path/to", file = "file.h"))]`
[master]: https://github.com/Sean1708/rusty-cheddar/compare/v0.3.2...HEAD
[master]: https://github.com/Sean1708/rusty-cheddar/compare/v0.3.3...HEAD
[0.3.3]: https://github.com/Sean1708/rusty-cheddar/compare/v0.3.2...v0.3.3
[0.3.2]: https://github.com/Sean1708/rusty-cheddar/compare/v0.3.1...v0.3.2
[0.3.1]: https://github.com/Sean1708/rusty-cheddar/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/Sean1708/rusty-cheddar/compare/v0.2.0...v0.3.0

Просмотреть файл

@ -118,7 +118,7 @@ pub enum Colours {
Yellow,
}
// This would fail if it was #[repr(C)].
// This would fail is it was #[repr(C)].
pub enum Tastes<T> {
Savoury(T),
Sweet,
@ -269,9 +269,11 @@ You must not put types defined in other modules in an exported type signature wi
behind an opaque struct. This is because the C compiler must know the layout of the type and
rusty-cheddar can not yet search other modules.
The very important exception to this rule is `libc`, types used from `libc` _must_ be qualified
(e.g. `libc::c_void`) so that they can be converted properly.
The very important exception to this rule are the C ABI types defined in
the `libc` crate and `std::os::raw`. Types from these two modules _must_
be fully qualified (e.g. `libc::c_void` or `std::os::raw::c_longlong)
so that they can be converted properly. Importing them with a `use`
statement will not work.
[the cargo docs]: http://doc.crates.io/build-script.html
[repo]: https://github.com/Sean1708/rusty-cheddar