seasick-0.4.0 has been yanked.
Visit the last successful build:
seasick-0.4.7
Write and transcribe C APIs.
&CStr and CString are not FFI safe.
extern "C"
&SeaStr and [SeaString] are FFI-safe equivalents.
extern "C"
They use the non-null niche which is filled by [Option::None].
/** may return null */
char *;
extern "C"
assert_eq!;
[SeaArray] wraps a [c_char; N] array, providing [SeaStr]-like capabilities.
[SeaBox] is an additional owned pointer type, with a pluggable [Allocator].
[till_null] contains iterators for nul-terminated arrays of pointers.
[TransmuteFrom] is a powerful trait and derive macro for writing wrappers
to C types.