Commit Graph

37 Commits (f17a018b9989430967d1c58e9a12c51169abc744)

Author SHA1 Message Date
Noah Snelson 1a79ab1920
Add "C" ABI to FFI example
7 days ago
Yuki Okushi aad0fd9046
Apply suggestions from code review
2 months ago
RoggeOhta ed039e48fe Fix space character problem
2 months ago
RoggeOhta 6be1fec00c Add build script part to FFI chapter for more clear and smooth learn experience
2 months ago
Mats Jun Larsen 891932e3da
Remove double wording in opaque type chapter
5 months ago
Bennet Bleßmann 57bbc12176
remove `rust-intrinsic` ABI
5 months ago
printfn 60ed8f3bb9 Update to 2024 edition
6 months ago
Thiago Trannin 38f5394280 Use `()` instead of `[u8; 0]` in opaque type
7 months ago
Eric Huss 388750b081
Merge pull request #311 from DrMeepster/abi_thiscall
2 years ago
Matt Harding 51bb051414
Change incorrect reference to "above" in ffi.md
3 years ago
Kyle J Strand d1a59f543e Re-word: only "most" ABIs have `-unwind`
3 years ago
Tyler Mandry 94bb6a629b
Copyedits to FFI and unwinding section
3 years ago
Niki4tap 734ca5e3f7 Don't try to work with invalid values on non-null types, always do what nomicon says
3 years ago
Kyle J Strand 3a43983b76
Changes for `c_unwind` (#365)
3 years ago
Qingyou Meng f6d6126fc9
ffi: explicitly declare hello_from_rust for C99 (#343)
4 years ago
Alan Wu 0e5a200124
Make C code more recognizably C (#331)
4 years ago
khollbach 66d097d3d8
Fix typo / type error in FFI code example (#327)
4 years ago
DrMeepster dcd6c28312
add thiscall abi
4 years ago
Yuki Okushi 88b2dbcce6
Apply review comments
4 years ago
Yuki Okushi 543c9b1bd7
Show the output
4 years ago
Yuki Okushi 044051c0ed
Move the section higher
4 years ago
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.
5 years ago
amosonn 4d2d275997 Fix example in FFI, section NPO
5 years ago
amosonn 6e93a7cbf8
Fix example in FFI section Calling Rust from C
6 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 _
8 years ago
Simon Sapin 36a7633208
Don’t recommend empty enums for opaque types
8 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