rust/src
bors aedf567a95 auto merge of #10943 : fhahn/rust/issue-7313-replace-c-types, r=alexcrichton
I've started working on a patch for #7313 . So far I tried to replace C types in `src/libstd/unstable/*` and related files.

So far, I have two questions. Is there a convention for passing pointers around in `std` as Rust types? Sometimes pointers are passed around as `*c_char` (which seems to be an `*i8`), `*c_void` or `*u8`, which leads to a lot of casts. E.g: [`exchange_malloc`](https://github.com/fhahn/rust/compare/issue-7313-replace-c-types?expand=1#diff-39f44b8c3f4496abab854b3425ac1617R60) used to return a `*c_char` but the function in turn only calls `malloc_raw` which returns a `*c_void`.
Is there a specific reason for this?

The second question is about `CString` and related functions like `with_c_str`. At the moment these functions use `*c_char*`. Should I replace it with `*u8` or keep it, because it's an wrapper around classical C strings?
2014-01-22 11:06:24 -08:00
..
compiletest [std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old from_utf8_owned() behavior 2014-01-21 15:48:48 -08:00
driver Register new snapshots 2014-01-06 09:26:47 -08:00
etc auto merge of #11311 : hdima/rust/vim-syntax-spell-check, r=cmr 2014-01-18 19:06:37 -08:00
gyp@1e46da1000 Update bundled gyp 2013-12-28 10:42:25 -08:00
libextra [std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old from_utf8_owned() behavior 2014-01-21 15:48:48 -08:00
libgreen [std::vec] Rename .remove_opt() to .remove(), drop the old .remove() behavior 2014-01-21 15:48:47 -08:00
libnative Remove unnecessary parentheses. 2014-01-21 22:00:18 +11:00
librustc auto merge of #11129 : SimonSapin/rust/foo-vs-foo_opt, r=alexcrichton 2014-01-21 15:56:16 -08:00
librustdoc [std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old from_utf8_owned() behavior 2014-01-21 15:48:48 -08:00
librustpkg auto merge of #11500 : jhasse/rust/patch-rlib, r=alexcrichton 2014-01-21 17:26:14 -08:00
librustuv [std::str] Rename from_utf8_opt() to from_utf8(), drop the old from_utf8() behavior 2014-01-21 15:48:48 -08:00
libstd Replace C types with Rust types in libstd, closes #7313 2014-01-22 19:20:47 +01:00
libsyntax Allow trailing commas in argument lists and tuple patterns 2014-01-23 01:55:53 +09:00
libuv@fd5308383c Attempt to fix the segfaulting osx bots 2013-12-21 20:17:23 -08:00
llvm@8841dcef35 Update llvm. 2013-12-29 23:38:43 -05:00
rt rustuv: Re-work sockaddr glue to not use malloc 2014-01-20 13:32:45 -08:00
rustllvm Issue #3511 - Rationalize temporary lifetimes. 2014-01-15 18:34:38 -05:00
test Allow trailing commas in argument lists and tuple patterns 2014-01-23 01:55:53 +09:00
README.md Trim src/ README, bring back version_info everywhere 2014-01-11 19:55:24 +01:00
snapshots.txt Register new snapshots 2014-01-20 19:45:38 -08:00

This is a preliminary version of the Rust compiler, libraries and tools.

Source layout:

Path Description
librustc/ The self-hosted compiler
libstd/ The standard library (imported and linked by default)
libextra/ The "extras" library (slightly more peripheral code)
libgreen/ The M:N runtime library
libnative/ The 1:1 runtime library
libsyntax/ The Rust parser and pretty-printer
------------------- ---------------------------------------------------------
rt/ The runtime system
rt/rust_*.c - Some of the runtime services
rt/vg - Valgrind headers
rt/msvc - MSVC support
rt/sundown - The Markdown library used by rustdoc
------------------- ---------------------------------------------------------
compiletest/ The test runner
test/ Testsuite
test/codegen - Tests for the LLVM IR infrastructure
test/compile-fail - Tests that should fail to compile
test/debug-info - Tests for the debuginfo tool
test/run-fail - Tests that should compile, run and fail
test/run-make - Tests that depend on a Makefile infrastructure
test/run-pass - Tests that should compile, run and succeed
test/bench - Benchmarks and miscellaneous
test/pretty - Pretty-printer tests
test/auxiliary - Dependencies of tests
------------------- ---------------------------------------------------------
librustdoc/ The Rust API documentation tool
librustpkg/ The package manager and build system
libuv/ The libuv submodule
------------------- ---------------------------------------------------------
llvm/ The LLVM submodule
rustllvm/ LLVM support code
------------------- ---------------------------------------------------------
etc/ Scripts, editors support, misc