<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/arti-rpc-client-core/arti-rpc-client-core.h, branch arti-v1.2.6</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.6</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.6'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-07-31T17:57:03Z</updated>
<entry>
<title>ffi: Re-run cbindgen.</title>
<updated>2024-07-31T17:57:03Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-31T17:57:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4497317f07df7a0f13bddc4e7a7727dbe12532b9'/>
<id>urn:sha1:4497317f07df7a0f13bddc4e7a7727dbe12532b9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rpclib: Suggestions from @diziet for improving safety docs.</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-25T17:27:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dcea09531b9e4b5e272001a5ebd8592e9d47ab3f'/>
<id>urn:sha1:dcea09531b9e4b5e272001a5ebd8592e9d47ab3f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rpclib ffi: Grand identifier renaming</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-25T15:06:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=851cd0a7032b7bcc2689c36afed7a5ef1b820326'/>
<id>urn:sha1:851cd0a7032b7bcc2689c36afed7a5ef1b820326</id>
<content type='text'>
In brief: Everything now starts with ARTI_RPC, arti_rpc, or ArtiRpc.
</content>
</entry>
<entry>
<title>rpclib: Revise/condense "safety" docs for C functions</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-25T14:40:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a9334b3cb2a60387ede0c3a83bb348ecd25f5cc9'/>
<id>urn:sha1:a9334b3cb2a60387ede0c3a83bb348ecd25f5cc9</id>
<content type='text'>
These documents are no longer called "safety".  They are now mostly
collected as a big list of "correctness requirements" at the start
of the cbindgen header.  Because of these requirements, most
functions no longer need their own "safety" sections.

I am explicitly using `#[allow(clippy::missing_safety_doc)]` on each
function, rather than adding a blanket exception:
  - There are other unsafe functions in this code, to which we
    wouldn't want an exception to apply.
  - Documenting the safety^W correctness requirements of a function
    is important enough to make sure that we aren't skipping out on
    it unintentionally.
</content>
</entry>
<entry>
<title>rpclib: Grand error refactoring: outparam, not thread-local</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-25T13:52:56Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6b1f266a8405d7c07b10e5cf2b153c575e6f2288'/>
<id>urn:sha1:6b1f266a8405d7c07b10e5cf2b153c575e6f2288</id>
<content type='text'>
Per discussion, we'd rather have an optional output parameter for error
objects rather than mess with thread-local variables.

This is possibly less convenient for direct usage from C,
but likely more convenient for wrapper functions in other languages.
</content>
</entry>
<entry>
<title>rpclib: _Sketch_ of string API.</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-24T19:13:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5265d6c1aa3c14ef09d908c9695eb1f003253d33'/>
<id>urn:sha1:5265d6c1aa3c14ef09d908c9695eb1f003253d33</id>
<content type='text'>
In this API, borrowed strings are `const char *`, and owned strings
are `ArtiRpcStr *`.  You can get the former from the latter with
`arti_rpc_str_get()`, which returns a `const char *` in hopes that
you will neither modify nor free() that `const char *`

(Note that there are no places where string ownership needs to be
passed into this library; and at present, there is only one case
where it is passed out.  I do not anticipate that we will need to do
intake of owned strings.  We will probably need to return these in a
few more cases as we add more API surface.)
</content>
</entry>
<entry>
<title>rpclib: Add "STATUS" to status codes.</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-24T16:15:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dff5ea987108214fe2b5fd66aab2742a5167204d'/>
<id>urn:sha1:dff5ea987108214fe2b5fd66aab2742a5167204d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rpc: Improve documentation and strings for FFI status codes.</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-24T16:10:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ae026e5db079e595872bbab974b238aeb18b4945'/>
<id>urn:sha1:ae026e5db079e595872bbab974b238aeb18b4945</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rpclib: Tweaks from review to header documentation.</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-24T15:54:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d2ed3d0ad0ed5bf7c0a45f722798cd54ab02b200'/>
<id>urn:sha1:d2ed3d0ad0ed5bf7c0a45f722798cd54ab02b200</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rpc ffi: Try a more reference-driven approach to pointer handling.</title>
<updated>2024-07-31T17:54:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-07-17T18:49:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7e48f725dd665c5ff6eb07f16bd4957274767f6c'/>
<id>urn:sha1:7e48f725dd665c5ff6eb07f16bd4957274767f6c</id>
<content type='text'>
</content>
</entry>
</feed>
