Age | Commit message (Collapse) | Author |
|
|
|
|
|
Only the final crate needs to be a `staticlib`, no need for all the
intermediate steps to produce staticlibs!
|
|
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.
|
|
|
|
This is really annoying, since we can't use cfg(test) for doctests.
|
|
Closes ticket 27288
|
|
|
|
|
|
|
|
If you're owning a C pointer, you need to implement Drop.
|
|
|
|
In the C code, this constant is only ever used in src/test/bench.c.
* FIXES part of #26245: https://bugs.torproject.org/26245
|
|
* FIXES part of #26245: https://bugs.torproject.org/26245
|
|
|
|
* FIXES #24659: https://bugs.torproject.org/24659
|
|
|
|
* FIXES #24660: https://bugs.torproject.org/24660
|
|
Requires the update/libc-0.2.39 branch from
https://github.com/isislovecruft/tor-rust-dependencies to be merged
first.
|
|
(Yes, I have Chelsea's permission.)
|
|
|
|
update documentation
missing check for null
|
|
|