diff options
author | teor <teor@torproject.org> | 2019-04-15 10:15:02 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-04-15 10:15:02 +1000 |
commit | 5ab5c8ec15de7a54c9196b9adcfda6042d4db5e4 (patch) | |
tree | 15ab5440aec147a8d3670fc52191097fec0b38bd | |
parent | 48e990359b05661f2dd0ae503143ee9b18442475 (diff) | |
parent | fecd583c0e7e580f07d81b24b1a3522c52938c61 (diff) | |
download | tor-5ab5c8ec15de7a54c9196b9adcfda6042d4db5e4.tar.gz tor-5ab5c8ec15de7a54c9196b9adcfda6042d4db5e4.zip |
Merge branch 'rust-panic1' into rust-panic1-034
-rw-r--r-- | changes/bug27199 | 3 | ||||
-rw-r--r-- | src/rust/Cargo.toml | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/changes/bug27199 b/changes/bug27199 new file mode 100644 index 0000000000..f9d2a422f9 --- /dev/null +++ b/changes/bug27199 @@ -0,0 +1,3 @@ + o Minor bugfixes (rust): + - Abort on panic in all build profiles, instead of potentially unwinding + into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha. diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml index c3e44d2a79..de8693ea33 100644 --- a/src/rust/Cargo.toml +++ b/src/rust/Cargo.toml @@ -10,7 +10,17 @@ members = [ "tor_util", ] +# Can remove panic="abort" when this issue is fixed: +# https://github.com/rust-lang/rust/issues/52652 +[profile.dev] +panic = "abort" + [profile.release] debug = true panic = "abort" +[profile.test] +panic = "abort" + +[profile.bench] +panic = "abort" |