Commit Graph

16 Commits (64553aa569e781db46dfa5508b8913cdd999091c)

Author SHA1 Message Date
Yuki Okushi 64553aa569
Write a basic "call Rust from C" example
4 years ago
Yuki Okushi c42314b09b
Remove unnecessary `extern crate`s
4 years ago
Yuki Okushi 5e789618d9
Audit `ignore` annotations
4 years ago
Jason Heeris b9ca313e68 The #[repr(C)] attribute on the callback example is not necessary, since the type is not used in C.
4 years ago
Eric Huss 2e159b0d30
Merge pull request #273 from JohnTitor/mention-extern-types
4 years ago
Yuki Okushi 538345ab83
Turn explanation into a sidenote
4 years ago
Yuki Okushi 9387d35984 Mention "extern types" on the opaque structs section
4 years ago
Yuki Okushi 1fe5457479 Fix minor style issues
4 years ago
Florian Gilcher 90811705ca Fix opaque type representation.
4 years ago
amosonn 4d2d275997 Fix example in FFI, section NPO
5 years ago
amosonn 6e93a7cbf8
Fix example in FFI section Calling Rust from C
5 years ago
Ralf Jung b3d532f55b explain the empty type better, and explain to NOT use enums
7 years ago
Simon Sapin 5b45a89c37
Prefix private fields with _
7 years ago
Simon Sapin 36a7633208
Don’t recommend empty enums for opaque types
7 years ago
projektir 8acf410db2 Fixing link to Drop trait and catch_unwind; closes rust-lang/rust#42064
8 years ago
projektir d0f2868141 Adding the FFI chapter from the first edition of TRPL to nomicon rust-lang/rust#42064
8 years ago