summary refs log tree commit diff
path: root/src/doc/guide-ffi.md
AgeCommit message (Collapse)AuthorLines
2014-09-12Use a space after colons per the Rust coding style:Damien Grassart-2/+2
https://github.com/rust-lang/rust-guidelines/blob/master/style/whitespace.md
2014-09-12The example code uses trigger_callback(), not do_callback().Damien Grassart-1/+1
2014-08-30auto merge of #16393 : SimonSapin/rust/patch-9, r=steveklabnikbors-2/+2
2014-08-30Unify non-snake-case lints and non-uppercase statics lintsP1start-1/+1
This unifies the `non_snake_case_functions` and `uppercase_variables` lints into one lint, `non_snake_case`. It also now checks for non-snake-case modules. This also extends the non-camel-case types lint to check type parameters, and merges the `non_uppercase_pattern_statics` lint into the `non_uppercase_statics` lint. Because the `uppercase_variables` lint is now part of the `non_snake_case` lint, all non-snake-case variables that start with lowercase characters (such as `fooBar`) will now trigger the `non_snake_case` lint. New code should be updated to use the new `non_snake_case` lint instead of the previous `non_snake_case_functions` and `uppercase_variables` lints. All use of the `non_uppercase_pattern_statics` should be replaced with the `non_uppercase_statics` lint. Any code that previously contained non-snake-case module or variable names should be updated to use snake case names or disable the `non_snake_case` lint. Any code with non-camel-case type parameters should be changed to use camel case or disable the `non_camel_case_types` lint. [breaking-change]
2014-08-25Replace mention of ~T by Box<T> in the FFI guide.Simon Sapin-2/+2
2014-08-21Fix FFI guideCorey Richardson-0/+1
2014-08-20docs: don't claim struct layout is specified, but mention reprCorey Richardson-9/+9
2014-08-12Minor changes to `rust.md`, and `guide-ffi.md`.Bheesham Persaud-3/+3
* `rust.md`: whanges for consistency * `guide-ffi.md`: wrapped inline code
2014-07-04doc/guide-ffi: A few minor typo/language fixesAnton Lofgren-7/+7
Signed-off-by: Anton Lofgren <alofgren@op5.com>
2014-06-28Rename all raw pointers as necessaryAlex Crichton-11/+11
2014-06-02docs: Stop using `notrust`Florian Gilcher-2/+2
Now that rustdoc understands proper language tags as the code not being Rust, we can tag everything properly. This change tags examples in other languages by their language. Plain notations are marked as `text`. Console examples are marked as `console`. Also fix markdown.rs to not highlight non-rust code.
2014-05-30Fix outgoing link to snappy in the FFI guideTom Jakubowski-2/+2
Google have migrated snappy to GitHub.
2014-05-30windows: Allow snake_case errors for now.Kevin Butler-0/+1
2014-05-22docs: Add win64 calling conventionRicho Healey-0/+1
2014-05-07auto merge of #13958 : pcwalton/rust/detilde, r=pcwaltonbors-1/+1
for `~str`/`~[]`. Note that `~self` still remains, since I forgot to add support for `Box<self>` before the snapshot. r? @brson or @alexcrichton or whoever
2014-05-06librustc: Remove `~EXPR`, `~TYPE`, and `~PAT` from the language, exceptPatrick Walton-1/+1
for `~str`/`~[]`. Note that `~self` still remains, since I forgot to add support for `Box<self>` before the snapshot. How to update your code: * Instead of `~EXPR`, you should write `box EXPR`. * Instead of `~TYPE`, you should write `Box<Type>`. * Instead of `~PATTERN`, you should write `box PATTERN`. [breaking-change]
2014-05-03rustdoc: Have no_run imply no_transAlex Crichton-21/+11
This allows writing code examples which pass all analysis of the compiler, but don't actually link. A good example is examples that use extern {} blocks. Closes #12903
2014-04-20Fix spelling mistakes in documentation and code.Joseph Crail-1/+1
2014-04-12doc: Un-ignore lots of guide-ffi testsAlex Crichton-23/+58
Using some strategically-placed `#` markers most of the examples are testable (and their contents are nontrivial). Closes #13445
2014-04-10Document the nullable pointer optimization in the FFI guideCorey Richardson-0/+13
Closes #8748
2014-04-04Fix fallout from std::libc separationCorey Richardson-5/+11
2014-03-20rename std::vec -> std::sliceDaniel Micay-3/+3
Closes #12702
2014-03-15docs: begin a "low-level & unsafe code" guide.Huon Wilson-79/+0
This aims to cover the basics of writing safe unsafe code. At the moment it is just designed to be a better place for the `asm!()` docs than the detailed release notes wiki page, and I took the time to write up some other things. More examples are needed, especially of things that can subtly go wrong; and vast areas of `unsafe`-ty aren't covered, e.g. `static mut`s and thread-safety in general.
2014-03-09docs: adjust code blocks to pass with rustdoc.Huon Wilson-2/+6
The changes are basically just because rustdoc runs tests/rendering on more snippets by default (i.e. everything without a `notrust` tag), and not anything significant.
2014-02-15std: clean up ptr a bitCorey Richardson-5/+5
2014-02-13remove duplicate function from std::ptr (is_null, is_not_null, offset, ↵JeremyLetang-1/+1
mut_offset)
2014-02-09std: Add move_val_init to mem. Replace direct intrinsic usageBrian Anderson-2/+1
2014-02-09std: Add init and uninit to mem. Replace direct intrinsic usageBrian Anderson-1/+2
2014-02-06Update link_name=... -> link(name=...Cole Mickens-1/+1
2014-02-02Move doc/ to src/doc/Alex Crichton-0/+567
We generate documentation into the doc/ directory, so we shouldn't be intermingling source files with generated files