summaryrefslogtreecommitdiff
path: root/crates/arti-rpc-client-core
diff options
context:
space:
mode:
Diffstat (limited to 'crates/arti-rpc-client-core')
-rw-r--r--crates/arti-rpc-client-core/arti-rpc-client-core.h3
-rw-r--r--crates/arti-rpc-client-core/cbindgen.toml12
2 files changed, 7 insertions, 8 deletions
diff --git a/crates/arti-rpc-client-core/arti-rpc-client-core.h b/crates/arti-rpc-client-core/arti-rpc-client-core.h
index a2d92b513..13dc713b2 100644
--- a/crates/arti-rpc-client-core/arti-rpc-client-core.h
+++ b/crates/arti-rpc-client-core/arti-rpc-client-core.h
@@ -96,6 +96,9 @@
* (This does not apply to functions that take an argument via a
* non-const pointer.)
*
+ * - Whenever a function returns an error, it returns no other newly allocated objects
+ * besides the error object itself.
+ *
* ## Correctness requirements
*
* If any correctness requirements stated here or elsewhere are violated,
diff --git a/crates/arti-rpc-client-core/cbindgen.toml b/crates/arti-rpc-client-core/cbindgen.toml
index cea4c41dc..77dae764a 100644
--- a/crates/arti-rpc-client-core/cbindgen.toml
+++ b/crates/arti-rpc-client-core/cbindgen.toml
@@ -105,6 +105,9 @@ header = """\
* (This does not apply to functions that take an argument via a
* non-const pointer.)
*
+ * - Whenever a function returns an error, it returns no other newly allocated objects
+ * besides the error object itself.
+ *
* ## Correctness requirements
*
* If any correctness requirements stated here or elsewhere are violated,
@@ -170,14 +173,7 @@ typedef int ArtiRpcRawSocket;
[export]
# These structs are not ones we want to expose under their actual names,
# or ones that we don't want to expose at all.
-exclude = [
- "FfiError",
- "RequestHandle",
- "RpcConn",
- "RpcErrorCode",
- "Utf8CString",
- "ArtiRpcRawSocket",
-]
+exclude = ["FfiError", "RequestHandle", "RpcConn", "RpcErrorCode", "Utf8CString", "ArtiRpcRawSocket"]
[export.rename]
# Having not declared these structs, we can give them new names in the