浏览代码

Merge remote-tracking branch 'tor-github/pr/946' into maint-0.3.4

teor 5 年之前
父节点
当前提交
116970dda7
共有 2 个文件被更改,包括 13 次插入0 次删除
  1. 3 0
      changes/bug27199
  2. 10 0
      src/rust/Cargo.toml

+ 3 - 0
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.

+ 10 - 0
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"