aboutsummaryrefslogtreecommitdiff
path: root/src/rust/external
AgeCommit message (Collapse)Author
2019-01-16Bump copyright date to 2019Nick Mathewson
2018-10-30Merge remote-tracking branch 'tor-github/pr/381' into maint-0.3.5Nick Mathewson
2018-10-01Remove rlib+staticlib configuration for Rust cratesAlex Crichton
Only the final crate needs to be a `staticlib`, no need for all the intermediate steps to produce staticlibs!
2018-10-01Fix segfaults related to sanitizers+jemallocAlex Crichton
It looks to be the case that Rust's standard allocator, jemalloc, is incompatible with sanitizers. The incompatibility, for whatever reason, seems to cause segfaults at runtime when jemalloc is linked with sanitizers. Without actually trying to figure out what's going on here this commit instead takes the hammer of "let's remove jemalloc when testing". The `tor_allocate` crate now by default switches to the system allocator (eventually this will want to be the tor allocator). Most crates then link to `tor_allocate` ot pick this up, but the `smartlist` crate had to manually switch to the system allocator in testing and the `external` crate had to be sure to link to `tor_allocate`. The final gotcha here is that this patch also switches to unconditionally passing `--target` to Cargo. For weird and arcane reasons passing `--target` with the host target of the compiler (which Cargo otherwise uses as the default) is different than not passing `--target` at all. This ensure that our custom `RUSTFLAGS` with sanitizer options doesn't make its way into build scripts, just the final testing artifacts.
2018-09-24rust: run rustfmtcypherpunks
2018-09-16Don't try to link C from rust doctests for nss detectionNick Mathewson
This is really annoying, since we can't use cfg(test) for doctests.
2018-09-16When Tor is compiled with NSS, don't claim support for LinkAuth=1Nick Mathewson
Closes ticket 27288
2018-08-16rust: run rustfmtcypherpunks
2018-07-05Fix everything that previously referred to src/orNick Mathewson
2018-06-21Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20Fix memory leak in CryptoDigest typeNick Mathewson
If you're owning a C pointer, you need to implement Drop.
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-06-15rust: Remove unused N_DIGEST_ALGORITHMS constant from crypto_digest.rs.Isis Lovecruft
In the C code, this constant is only ever used in src/test/bench.c. * FIXES part of #26245: https://bugs.torproject.org/26245
2018-06-15rust: Add comment and pragma on "unused" smartlist_t type.Isis Lovecruft
* FIXES part of #26245: https://bugs.torproject.org/26245
2018-05-15rust: Export crypto_rand::* functions from our external crate.Isis Lovecruft
2018-05-08rust: Add crypto crate and implement Rust wrappers for SHA2 code.Isis Lovecruft
* FIXES #24659: https://bugs.torproject.org/24659
2018-05-02rust: Expose crypto_rand() as an impl of rand_core::RngCore.Isis Lovecruft
2018-04-20rust: Expose our (P)RNGs in Rust and provide safe wrappers.Isis Lovecruft
* FIXES #24660: https://bugs.torproject.org/24660
2018-03-21maint: Update Rust libc dependency from 0.2.22 to 0.2.39.Isis Lovecruft
Requires the update/libc-0.2.39 branch from https://github.com/isislovecruft/tor-rust-dependencies to be merged first.
2017-10-27Add missing copyright/license statements on all .rs filesNick Mathewson
(Yes, I have Chelsea's permission.)
2017-10-27use tor allocator for string allocation in rustChelsea Holland Komlo
2017-10-27minimize scope for unsafeChelsea Holland Komlo
update documentation missing check for null
2017-10-27rust implementation of protoverChelsea Holland Komlo